s_PreserveEnts
(Redirected from Preserved entity)
Jump to navigation
Jump to search
In multiplayer Source games, all entities are set back to their defaults during a round reset by removing and immediately respawning them, unless their current classnames matches an entry in the s_PreserveEnts whitelist. Whitelisted entities either have special code to handle the reset process or none at all, and the entity is therefore considered not ideal for removal.
Some whitelisted entities may not properly account for round resets and are likely to carry their previous properties over to the next round, such as their origins.

Games | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Has Whitelist | Yes | No | No | No | Yes | Yes | No | No | Yes | Yes | Yes (Disassembly) | Yes | Yes | Yes |
Source Code
Half-Life 2: Deathmatch
Portal
Portal 2
Team Fortress 2
Counter-Strike: Source
Counter-Strike: Global Offensive
Day of Defeat: Source
Alien Swarm
Code Dumps
To find the S_PreserveEnts whitelist in the Left 4 Dead games in IDA:
- Search for the ai_network string reference.
- Bring up all applicable XREFs.
- Search for the list that includes survivor_bot and logic_versus_random.