summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-25 22:52:39 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-25 22:52:39 +0200
commit6c7152aada204bfdfa6e39cdfea5e10440e0ed36 (patch)
tree1d2c8e17b47abc796de1f0e045abf3fb043d07df /src/game/bg_pmove.c
parent1b13c257a9759f0a40c79f0acd3a07bc079df120 (diff)
Bring back some Basilisk code as a base for Wraith.
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 3b36d9e..8ab7282 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -3482,6 +3482,15 @@ static void PM_Weapon( void )
// weapon.cfg
switch( pm->ps->weapon )
{
+ case WP_ALEVEL1:
+ if( attack1 )
+ {
+ num /= RAND_MAX / 6 + 1;
+ PM_ForceLegsAnim( NSPA_ATTACK1 );
+ PM_StartWeaponAnim( WANIM_ATTACK1 + num );
+ }
+ break;
+
case WP_ALEVEL2_UPG:
if( attack2 )
{