Quote:
Originally Posted by psychonic
This is ambiguously named and requires extra effort to figure out what the difference between IsValidEntity and IsValidEnt are.
|
In the end I went with
Code:
/*
Is a valid entity, but guaranteed not to be the world, or a player.
"Entity, Non-Player"
*/
stock bool:IsValidEnp(iEnt)
{
return iEnt > MaxClients && IsValidEntity(iEnt);
}
For public release stuff.
Not really that great but it's still short (`・ω・´)
IsValidNonPlayer is annoying to type ;v
__________________