1 $frame fire fire2 idle run
3 // VorteX: static frame globals
4 float WFRAME_FIRE1 = 0;
5 float WFRAME_FIRE2 = 1;
9 // changes by LordHavoc on 03/30/04
10 // cleaned up code formatting a bit
11 // renamed to weapon_anim
14 if (self.attack_finished > time)
15 self.weaponframe = $fire;
16 else if (self.movement_x || self.movement_y)
17 self.weaponframe = $run;
19 self.weaponframe = $idle;
23 if (self.weaponentity)
24 self.weaponentity.frame = WFRAME_IDLE;