| 1107 | } |
| 1108 | |
| 1109 | void 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 | |
| 1123 | void zPlatform_Dismount(zPlatform* ent) |
| 1124 | { |
nothing calls this directly
no test coverage detected