Returns whether this entity has the specified spawnflags bits set.
As seen in sandbox's PhysgunPickup hook.