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

Function zEntPlayerControlOn

src/SB/Game/zEntPlayer.cpp:344–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void zEntPlayerControlOn(zControlOwner owner)
345{
346 U32 originalValue = globals.player.ControlOff;
347 globals.player.ControlOff &= ~owner;
348
349 if (originalValue != globals.player.ControlOff)
350 {
351 if (globals.player.ControlOff & 0x202)
352 {
353 xSndSelectListenerMode(SND_LISTENER_MODE_CAMERA);
354 }
355 else
356 {
357 xSndSelectListenerMode(SND_LISTENER_MODE_PLAYER);
358 }
359 }
360}
361
362// 83%, but floating point scheduling preventing match
363void zEntPlayerControlOff(zControlOwner owner)

Callers 15

zCutsceneMgrResetFunction · 0.70
zCutsceneMgrEventCBFunction · 0.70
SpatulaGrabStopCBFunction · 0.70
zEntPlayer_DamageFunction · 0.70
zEntPlayerJumpLandFunction · 0.70
stopMethod · 0.70
ExitMethod · 0.70
zBusStop_UpdateFunction · 0.70
ResetMethod · 0.70
ProcessMethod · 0.70
startFunction · 0.70
trigger_trapFunction · 0.70

Calls 1

xSndSelectListenerModeFunction · 0.85

Tested by

no test coverage detected