I only get classname outputs limited to - func_brush, player, func_breakable and some others.
Syntax: Select all
@EntityPreHook(EntityCondition.is_not_player, 'set_transmit')
def pre_set_transmit(args):
entity = make_object(Entity, args[0])
edict = make_object(CheckTransmitInfo, args[1]).client
player = Player(index_from_edict(edict))
if entity.classname != "func_wall_toggle":
return
# We always transmit the player to himself. If we don't, bad things happen.
if player.index == entity.index:
return None
return None if transmit_filter(entity, player) else False