Fix unarmed citizens not picking up weapons from racks

This commit is contained in:
ALLEN-PC\acj30 2023-11-24 10:46:45 -06:00
parent 6a0a0154c6
commit a131bf42a6

View File

@ -3615,7 +3615,7 @@ CBaseEntity *CBaseCombatCharacter::Weapon_FindUsable( const Vector &range )
else if (hl2_episodic.GetBool() && !GetActiveWeapon())
{
// Unarmed citizens are conservative in their weapon finding...in Episode One
if (Classify() != CLASS_PLAYER_ALLY_VITAL && Q_strncmp(STRING(gpGlobals->mapname), "ep1_", 4))
if (Classify() != CLASS_PLAYER_ALLY_VITAL && Q_strncmp(STRING(gpGlobals->mapname), "ep1_", 4) == 0)
bConservative = true;
}
#endif