Idle animation event.

I am having problems with my weapon not idling.
The code in the qc file is

It is a custom weapon for Trouble In Terrorist Town. After buying the weapon, it does not play the idle animation after the equip sequence.