Closed Kefta closed 4 years ago
Added ENTITY.IsCSEnt for clientside entities
Removed isnumber optimisation:
> local i = 0/0 print(i ~= nil and i == tonumber(i)) print(isnumber(i))...
false
true
Nice backdoor
This whole file should be removed honestly. Checking the type tag is the only accurate way of determining most types.
Remove the entire type lib, everything here is wrong with little performance gain.
The optimisations are not accurate in all cases. Also removed PhysObj functions since they aren't actually entities and thus don't inherit entity functions.