From 87f41473a0261a8391a246af7f26be868770dbab Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Thu, 27 Feb 2025 19:00:21 +0300 Subject: [PATCH] Ignore m_bUnableToFire in vehicle_drivable_apc --- sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp b/sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp index fba67d42db3..68d248bc252 100644 --- a/sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp +++ b/sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp @@ -842,11 +842,15 @@ void CPropDrivableAPC::AimGunAt( Vector *endPos, float flInterval ) //DevMsg("newTargetPitch: %f\n", newTargetPitch); + // EZ2: Invalid check, this always resolves to true + // m_bUnableToFire is unused, ignore block +#if 0 // If the angles have been clamped, we're looking outside of our valid range if ( fabs(newTargetYaw-targetYaw) > 1e-4 || fabs(newTargetPitch-targetPitch) > 1e-4 ) { m_bUnableToFire = true; } +#endif targetYaw = newTargetYaw; targetPitch = newTargetPitch;