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

Method HurtThePlayer

src/SB/Game/zNPCHazard.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void NPCHazard::HurtThePlayer()
300{
301 if (this->npc_owner == NULL)
302 {
303 zEntPlayer_Damage(NULL, 1);
304 }
305 else if (zEntPlayer_DamageNPCKnockBack((xBase*)this->npc_owner, 1, &this->pos_hazard))
306 {
307 this->npc_owner->Vibrate(NPC_VIBE_NORM, _1041_Hazard);
308 }
309}
310
311void NPCHazard::TypData_RotMatSet(xMat3x3* mat)
312{

Callers

nothing calls this directly

Calls 3

VibrateMethod · 0.80
zEntPlayer_DamageFunction · 0.70

Tested by

no test coverage detected