Quote:
Originally Posted by joropito
not fake thing: there was a fake parachute module with slowhack to forward players to some server
FNullEnt: it just check for entity equal to null. I prefer to check for less or equal zero. It's just different opcode, and don't change anything at asm code level.
|
It's more easy for people to understand the code.
There is a different thing:
FNullEnt != 0 checks whether
g_engfuncs.pfnEntOffsetOfPEntity is not null.
ENTINDEX > 0 checks whether
g_engfuncs.pfnIndexOfEdict is higher than zero.
By the way,
FNullEnt works with entities from
-99999999 to
99999999 without crashing server.
__________________