MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / check_anim_hit_to_death

Function check_anim_hit_to_death

src/SB/Game/zEntPlayerBungeeState.cpp:701–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699 return (shared.anim_state & 0x2a) == 0 && (shared.anim_state & 0x80) == 0;
700 }
701 U32 check_anim_hit_to_death(xAnimTransition*, xAnimSingle*, void*)
702 {
703 shared.anim_state &= ~0x40;
704 if (shared.anim_state & 0x80)
705 {
706 play_sound(SOUND_DEATH, 1.0f);
707 return 1;
708 }
709 return 0;
710 }
711 static S32 find_nearest_hook(const xVec3& loc)
712 {
713 S32 found = -1;

Callers

nothing calls this directly

Calls 1

play_soundFunction · 0.70

Tested by

no test coverage detected