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

Method OnDestroy

scripts/aigame2.cpp:637–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void aiSamirPest::OnDestroy(int me_handle, tOSIRISEVTDESTROY *evt) {
638 mprintf(0, "OnDestroy\n");
639
640 msafe_struct mstruct;
641
642 mstruct.objhandle = memory->tail_handle;
643 mstruct.killer_handle = OBJECT_HANDLE_NONE;
644 mstruct.damage_type = GD_SCRIPTED;
645 mstruct.amount = 1000.0f;
646
647 MSafe_CallFunction(MSAFE_OBJECT_DAMAGE_OBJECT, &mstruct);
648}
649
650void aiSamirPest::OnInterval(tOSIRISEventInfo *data) {
651 float frame;

Callers

nothing calls this directly

Calls 3

Obj_ValueFunction · 0.85
Obj_CreateFunction · 0.85
vm_VectorToMatrixFunction · 0.70

Tested by

no test coverage detected