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

Method UpdateHealingEnergyBeams

scripts/AIGame3.cpp:5661–5678  ·  view source on GitHub ↗

Handles the healing effects

Source from the content-addressed store, hash-verified

5659
5660// Handles the healing effects
5661void AlienBoss::UpdateHealingEnergyBeams(int me) {
5662 // See if it's time to create the next energy effect
5663 if (memory->next_update_beam_time <= Game_GetTime()) {
5664 float next_duration = AB_BEAM_UPDATE_TIME;
5665
5666 memory->next_update_beam_time = Game_GetTime() + next_duration;
5667
5668 aLightningCreate(memory->tail_pos_handle, memory->nest_handle, next_duration, 1.0f, 2, boss_heal_effect_id,
5669 next_duration, 1, 255, 255, 255, false);
5670
5671 // Create healing sparks
5672 int room;
5673 vector pos;
5674 Obj_Value(memory->tail_pos_handle, VF_GET, OBJV_I_ROOMNUM, &room);
5675 Obj_Value(memory->tail_pos_handle, VF_GET, OBJV_V_POS, &pos);
5676 Game_CreateRandomSparks(5, &pos, room);
5677 }
5678}
5679
5680// Handles the healing effects
5681void AlienBoss::UpdateDamageEffect(int me) {

Callers

nothing calls this directly

Calls 3

aLightningCreateFunction · 0.85
Obj_ValueFunction · 0.85
Game_CreateRandomSparksFunction · 0.85

Tested by

no test coverage detected