MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / VisEffectInitType

Function VisEffectInitType

Descent3/viseffect.cpp:551–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551int VisEffectInitType(vis_effect *vis) {
552 int ret = 1;
553
554 vis->size = Fireballs[vis->id].size;
555 vis->flags |= VF_USES_LIFELEFT;
556 vis->lifeleft = Fireballs[vis->id].total_life;
557 vis->lifetime = vis->lifeleft;
558
559 if (Fireballs[vis->id].type == FT_EXPLOSION && vis->id != CUSTOM_EXPLOSION_INDEX && vis->id != NAPALM_BALL_INDEX)
560 vis->lighting_color = OPAQUE_FLAG | GR_RGB16(255, 180, 20);
561
562 return ret;
563}
564
565// initialize a new viseffect. adds to the list for the given room
566// returns the vis number

Callers 1

VisEffectCreateFunction · 0.85

Calls 1

GR_RGB16Function · 0.85

Tested by

no test coverage detected