From 2b8a41f4aef029867a8fe1b7ddd5195912b0ec0f Mon Sep 17 00:00:00 2001 From: wootguy Date: Sat, 9 Nov 2024 19:39:44 -0800 Subject: [PATCH] fix bots spawning as real players --- dlls/CBasePlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/CBasePlayer.cpp b/dlls/CBasePlayer.cpp index 35ca1fd6..1f285792 100644 --- a/dlls/CBasePlayer.cpp +++ b/dlls/CBasePlayer.cpp @@ -3203,7 +3203,7 @@ void CBasePlayer::Spawn( void ) pev->health = mp_starthealth.value; pev->armorvalue = mp_startarmor.value; pev->max_health = pev->health; - pev->flags &= FL_PROXY; // keep proxy flag sey by engine + pev->flags &= (FL_PROXY | FL_FAKECLIENT); // keep proxy flag sey by engine pev->flags |= FL_CLIENT; pev->air_finished = gpGlobals->time + 12; pev->dmg = 2; // initial water damage