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

Function MultiAnnounceEffect

Descent3/multi.cpp:2137–2149  ·  view source on GitHub ↗

Does a cool vis effect to announce a player or powerup

Source from the content-addressed store, hash-verified

2135
2136// Does a cool vis effect to announce a player or powerup
2137void MultiAnnounceEffect(object *obj, float size, float time) {
2138 int visnum = VisEffectCreate(VIS_FIREBALL, BLAST_RING_INDEX, obj->roomnum, &obj->pos);
2139 if (visnum >= 0) {
2140 vector norm = {0, 1, 0};
2141 vis_effect *vis = &VisEffects[visnum];
2142 vis->size = size;
2143 vis->lifetime = time;
2144 vis->lifeleft = time;
2145 vis->custom_handle = Fireballs[BLUE_BLAST_RING_INDEX].bm_handle;
2146 vis->flags |= VF_PLANAR | VF_REVERSE;
2147 vis->end_pos = norm;
2148 }
2149}
2150
2151// MultiProcessIncoming reads incoming data off the unreliable and reliable ports and sends
2152// the data to process_big_data

Callers 4

MultiDoPlayerEnteredGameFunction · 0.85
MultiDoRenewPlayerFunction · 0.85
MultiDoObjectFunction · 0.85
MultiSendObjectFunction · 0.85

Calls 1

VisEffectCreateFunction · 0.85

Tested by

no test coverage detected