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

Method DoCollide

scripts/AIGame.cpp:2836–2843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2834}
2835
2836void JoshBell::DoCollide(int me) {
2837 int child_handle = Obj_GetAttachChildHandle(me, 0);
2838
2839 if (child_handle == OBJECT_HANDLE_NONE /* && memory->last_play_time + 2.0f < Game_GetTime()*/) {
2840 memory->last_play_time = Game_GetTime();
2841 Sound_Play3d(me, memory->bell_sound);
2842 }
2843}
2844
2845int16_t JoshBell::CallEvent(int event, tOSIRISEventInfo *data) {
2846 switch (event) {

Callers

nothing calls this directly

Calls 4

Sound_Play3dFunction · 0.85
Obj_ValueFunction · 0.85
Obj_CreateFunction · 0.85
GetObjectParentFunction · 0.85

Tested by

no test coverage detected