Home
last modified time | relevance | path

Searched refs:angDif (Results 1 – 8 of 8) sorted by relevance

/dports/games/openjk/OpenJK-07675e2/codemp/game/
H A DFighterNPC.c1015 angDif *= 0.5f; in FighterRollAdjust()
1018 angDif *= angDif; in FighterRollAdjust()
1022 angDif *= -angDif; in FighterRollAdjust()
1069 angDif = 0.0f; in FighterYawAdjust()
1080 angDif *= 0.5f; in FighterYawAdjust()
1083 angDif *= angDif; in FighterYawAdjust()
1087 angDif *= -angDif; in FighterYawAdjust()
1134 angDif = 0.0f; in FighterPitchAdjust()
1145 angDif *= 0.5f; in FighterPitchAdjust()
1148 angDif *= angDif; in FighterPitchAdjust()
[all …]
H A DWalkerNPC.c195 float angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in WalkerYawAdjust() local
206 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in WalkerYawAdjust()
207 if (angDif > maxDif) in WalkerYawAdjust()
209 angDif = maxDif; in WalkerYawAdjust()
211 else if (angDif < -maxDif) in WalkerYawAdjust()
213 angDif = -maxDif; in WalkerYawAdjust()
215 …pVeh->m_vOrientation[YAW] = AngleNormalize180(pVeh->m_vOrientation[YAW] - angDif*(pVeh->m_fTimeMod… in WalkerYawAdjust()
H A DAnimalNPC.c276 float angDif; in ProcessOrientCommands() local
278 angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in ProcessOrientCommands()
287 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in ProcessOrientCommands()
288 if (angDif > maxDif) in ProcessOrientCommands()
290 angDif = maxDif; in ProcessOrientCommands()
292 else if (angDif < -maxDif) in ProcessOrientCommands()
294 angDif = -maxDif; in ProcessOrientCommands()
296 …pVeh->m_vOrientation[YAW] = AngleNormalize180(pVeh->m_vOrientation[YAW] - angDif*(pVeh->m_fTimeMod… in ProcessOrientCommands()
H A DSpeederNPC.c290 float angDif; in ProcessOrientCommands() local
303 angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in ProcessOrientCommands()
312 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in ProcessOrientCommands()
313 if (angDif > maxDif) in ProcessOrientCommands()
315 angDif = maxDif; in ProcessOrientCommands()
317 else if (angDif < -maxDif) in ProcessOrientCommands()
319 angDif = -maxDif; in ProcessOrientCommands()
321 …pVeh->m_vOrientation[YAW] = AngleNormalize180(pVeh->m_vOrientation[YAW] - angDif*(pVeh->m_fTimeMod… in ProcessOrientCommands()
H A Dg_main.c3203 vec3_t angDif; in G_RunFrame() local
3205 VectorSubtract(ent->client->ps.viewangles, ent->client->hackingAngles, angDif); in G_RunFrame()
3233 else if (VectorLength(angDif) > 10.0f) in G_RunFrame()
/dports/games/openjk/OpenJK-07675e2/code/game/
H A DFighterNPC.cpp1123 float angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in FighterYawAdjust() local
1134 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in FighterYawAdjust()
1135 if (angDif > maxDif) in FighterYawAdjust()
1137 angDif = maxDif; in FighterYawAdjust()
1139 else if (angDif < -maxDif) in FighterYawAdjust()
1141 angDif = -maxDif; in FighterYawAdjust()
1160 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in FighterPitchAdjust()
1161 if (angDif > maxDif) in FighterPitchAdjust()
1163 angDif = maxDif; in FighterPitchAdjust()
1165 else if (angDif < -maxDif) in FighterPitchAdjust()
[all …]
H A DAnimalNPC.cpp408 float angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in ProcessOrientCommands() local
417 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in ProcessOrientCommands()
418 if (angDif > maxDif) in ProcessOrientCommands()
420 angDif = maxDif; in ProcessOrientCommands()
422 else if (angDif < -maxDif) in ProcessOrientCommands()
424 angDif = -maxDif; in ProcessOrientCommands()
426 …pVeh->m_vOrientation[YAW] = AngleNormalize180(pVeh->m_vOrientation[YAW] - angDif*(pVeh->m_fTimeMod… in ProcessOrientCommands()
H A DSpeederNPC.cpp564 float angDif; in ProcessOrientCommands() local
577 angDif = AngleSubtract(pVeh->m_vOrientation[YAW], riderPS->viewangles[YAW]); in ProcessOrientCommands()
586 angDif *= s/pVeh->m_pVehicleInfo->speedMax; in ProcessOrientCommands()
587 if (angDif > maxDif) in ProcessOrientCommands()
589 angDif = maxDif; in ProcessOrientCommands()
591 else if (angDif < -maxDif) in ProcessOrientCommands()
593 angDif = -maxDif; in ProcessOrientCommands()
595 …pVeh->m_vOrientation[YAW] = AngleNormalize180(pVeh->m_vOrientation[YAW] - angDif*(pVeh->m_fTimeMod… in ProcessOrientCommands()