View Single Post
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 10-02-2015 , 11:10   Re: [TF2] Accurately get a weapon's max clip/ammo.
Reply With Quote #12

Quote:
Originally Posted by psychonic View Post
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
__________________

Last edited by Chdata; 10-02-2015 at 11:11.
Chdata is offline