From a131bf42a6b539cdaf5cfc6f131dc1364a1d341f Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Fri, 24 Nov 2023 10:46:45 -0600 Subject: [PATCH] Fix unarmed citizens not picking up weapons from racks --- sp/src/game/server/basecombatcharacter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/server/basecombatcharacter.cpp b/sp/src/game/server/basecombatcharacter.cpp index 5d2c692c..a1033586 100644 --- a/sp/src/game/server/basecombatcharacter.cpp +++ b/sp/src/game/server/basecombatcharacter.cpp @@ -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