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

Function zEntPlayerControlOff

src/SB/Game/zEntPlayer.cpp:363–383  ·  view source on GitHub ↗

83%, but floating point scheduling preventing match

Source from the content-addressed store, hash-verified

361
362// 83%, but floating point scheduling preventing match
363void zEntPlayerControlOff(zControlOwner owner)
364{
365 U32 originalValue = globals.player.ControlOff;
366
367 globals.player.ControlOff |= owner;
368 globals.player.ControlOffTimer = 1.0f;
369
370 if (originalValue != globals.player.ControlOff)
371 {
372 if (globals.player.ControlOff & 0x202)
373 {
374 xSndSelectListenerMode(SND_LISTENER_MODE_CAMERA);
375 }
376 else
377 {
378 xSndSelectListenerMode(SND_LISTENER_MODE_PLAYER);
379 }
380 }
381
382 zEntPlayerKillCarry();
383}
384
385void TellPlayerVillainIsNear(F32 visnear)
386{

Callers 13

zCutsceneMgrEventCBFunction · 0.70
GooDeathCBFunction · 0.70
zEntPlayerPreResetFunction · 0.70
startMethod · 0.70
EnterMethod · 0.70
zBusStop_UpdateFunction · 0.70
zCameraFlyStartFunction · 0.70
CheckPickupAgainstPlayerFunction · 0.70
zEntPickup_DoPickupFunction · 0.70
trigger_trapFunction · 0.70
start_talkMethod · 0.70
zTaxi_UpdateFunction · 0.70

Calls 2

xSndSelectListenerModeFunction · 0.85
zEntPlayerKillCarryFunction · 0.85

Tested by

no test coverage detected