Page 1 of 1

run_command hook no longer triggers

Posted: Thu Nov 10, 2016 1:17 am
by quartata
I had a bunch of old code that had a hook like this

Syntax: Select all

@EntityPreHook(EntityCondition.is_player, "run_command")
def usercmd(stack):
...


However, this hook no longer seems to be triggering on every usercmd. Did something change here?

Re: run_command hook no longer triggers

Posted: Thu Nov 10, 2016 1:33 am
by L'In20Cible
What game? OS?

Re: run_command hook no longer triggers

Posted: Thu Nov 10, 2016 1:46 am
by quartata
TF2 on Linux.

Re: run_command hook no longer triggers

Posted: Thu Nov 10, 2016 1:55 am
by L'In20Cible

Re: run_command hook no longer triggers

Posted: Thu Nov 10, 2016 1:59 am
by L'In20Cible
Also, worth mentioning that OnPlayerRunCommand and OnButtonStateChanged listeners has recently been added.

Re: run_command hook no longer triggers

Posted: Thu Nov 10, 2016 5:18 pm
by quartata
L'In20Cible wrote:Offsets need updating: https://github.com/Source-Python-Dev-Te ... 5a957310c8


Works, thanks!