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

Function zCameraReset

src/SB/Game/zCamera.cpp:108–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106} // namespace
107
108void zCameraReset(xCamera* cam)
109{
110 // classic multiple float assign non match
111 // float assigns should f0 everytime instead of f1, f2, ...
112 zcam_mode = 0;
113 zcam_bbounce = 0;
114 zcam_lbbounce = 0;
115 zcam_lconvers = 0;
116 zcam_longbounce = 0;
117 zcam_highbounce = 0;
118 zcam_convers = 0;
119 zcam_fly = 0;
120 zcam_flypaused = 0;
121 zcam_cutscene = 0;
122 zcam_reward = 0;
123 zcam_fovcurr = 75.0f;
124 zcam_overrot_tmr = 0.0f;
125
126 wall_jump_enabled = WJVS_DISABLED;
127 lassocam_enabled = false;
128 stop_track = 0;
129 zcam_mintgtheight = -1.0e38;
130
131 xCameraSetFOV(cam, 75.0f);
132 zCameraTweakGlobal_Update(0.0f);
133 xCameraReset(cam, ::GetCurrentD(), ::GetCurrentH(), ::GetCurrentPitch());
134
135 input_enabled = true;
136 dMultiplier = 1.0f;
137 dOffset = 0.0f;
138 hMultiplier = 1.0f;
139 hOffset = 0.0f;
140}
141
142namespace
143{

Callers 6

zSceneSwitchFunction · 0.85
zSceneResetFunction · 0.85
zGameInitFunction · 0.85
zGameSetupPlayerFunction · 0.85
zMenuInitFunction · 0.85

Calls 6

xCameraSetFOVFunction · 0.85
GetCurrentDFunction · 0.85
GetCurrentHFunction · 0.85
GetCurrentPitchFunction · 0.85
xCameraResetFunction · 0.50

Tested by

no test coverage detected