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

Method UpdateLiftBeam

scripts/AIGame3.cpp:5295–5309  ·  view source on GitHub ↗

Handles the healing effects

Source from the content-addressed store, hash-verified

5293
5294// Handles the healing effects
5295void Lifter::UpdateLiftBeam(int me) {
5296 // See if it's time to create the next energy effect
5297 if (memory->next_lift_beam_time <= Game_GetTime()) {
5298 float next_duration = LIFTER_LIFT_BEAM_UPDATE_TIME;
5299
5300 memory->next_lift_beam_time = Game_GetTime() + next_duration;
5301
5302 // See if we're carrying an object
5303 int attached_handle = Obj_GetAttachChildHandle(me, 0);
5304 if (attached_handle != OBJECT_HANDLE_NONE) {
5305 aLightningCreate(me, attached_handle, next_duration, 2.0f, 2, boss_heal_effect_id, next_duration, 1, 255, 255,
5306 255, false);
5307 }
5308 }
5309}
5310
5311// Processes incoming damage reports
5312void Lifter::DoDamage(int me, tOSIRISEVTDAMAGED *damage_data) {

Callers

nothing calls this directly

Calls 1

aLightningCreateFunction · 0.85

Tested by

no test coverage detected