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

Function zPlatform_Mount

src/SB/Game/zPlatform.cpp:1109–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109void zPlatform_Mount(zPlatform* plat)
1110{
1111 if (plat->subType == ePlatformTypeBreakaway && plat->state == 0) {
1112 if ((plat->passet->ba.breakflags & 0x1) && zEntPlayer_IsSneaking()) {
1113 plat->state = 1;
1114 } else {
1115 plat->state = 2;
1116 if (plat->passet->ba.ba_delay) {
1117 zPlatform_Tremble(plat, 0.06f, 8*PI, 1.0f + plat->passet->ba.ba_delay);
1118 }
1119 }
1120 }
1121}
1122
1123void zPlatform_Dismount(zPlatform* ent)
1124{

Callers

nothing calls this directly

Calls 2

zEntPlayer_IsSneakingFunction · 0.85
zPlatform_TrembleFunction · 0.70

Tested by

no test coverage detected