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

Method CallEvent

scripts/clutter.cpp:293–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293int16_t FragCrate::CallEvent(int event, tOSIRISEventInfo *data) {
294 switch (event) {
295 case EVT_DESTROY:
296 vector pos;
297 float mag;
298 int weapon_id;
299 int handle;
300 int i;
301 int room;
302
303 Obj_Value(data->me_handle, VF_GET, OBJV_I_ROOMNUM, &room);
304 Obj_Value(data->me_handle, VF_GET, OBJV_V_POS, &pos);
305 weapon_id = Wpn_FindID("fragbarrel");
306
307 handle = Obj_Create(OBJ_WEAPON, weapon_id, room, &pos, NULL, data->me_handle);
308
309 break;
310 }
311 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
312}
313
314int16_t NapalmBarrel::CallEvent(int event, tOSIRISEventInfo *data) {
315 switch (event) {

Callers 1

CallInstanceEventFunction · 0.45

Calls 8

Obj_ValueFunction · 0.85
Obj_CreateFunction · 0.85
vm_MakeZeroFunction · 0.85
AI_GetNearbyObjsFunction · 0.85
vm_VectorNormalizeFunction · 0.70
vm_GetMagnitudeFunction · 0.70
GetObjectTypeFunction · 0.70
GetObjectIDFunction · 0.70

Tested by

no test coverage detected