Skip to content

Commit

Permalink
fix bots spawning as real players
Browse files Browse the repository at this point in the history
  • Loading branch information
wootguy committed Nov 10, 2024
1 parent fc3c82a commit 2b8a41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/CBasePlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b8a41f

Please sign in to comment.