From KyleS's comment on the
API page for GetEntityCount:
Quote:
This isn't what you think it is. This function will return the highest edict index in use on the server, not the true number of active entities.
|
Another discussion where this came up
https://forums.alliedmods.net/showpo...68&postcount=6
EDIT: I know this is an old thread but it's also the first search result for "sourcemod GetEntityCount" and I was also wondering about the behavior of GetEntityCount, because I often see code that loops through all entities using GetEntityCount as an upper bound.