]> icculus.org git repositories - divverent/nexuiz.git/blob - qcsrc/weaponanimations.qc
Fixed two minor bugs.
[divverent/nexuiz.git] / qcsrc / weaponanimations.qc
1 $frame fire fire2 idle run
2
3 // changes by LordHavoc on 03/30/04
4 // cleaned up code formatting a bit
5 // renamed to weapon_anim
6 void weapon_anim ()
7 {
8         if (self.attack_finished > time)
9                 self.weaponframe = $fire;
10         else if (self.movement_x || self.movement_y)
11                 self.weaponframe = $run;
12         else
13                 self.weaponframe = $idle;
14 }