added support for akimbo animations

This commit is contained in:
Bryce Hutchings 2003-02-05 04:29:14 +00:00
parent 22020cba04
commit 8b9f87477f
2 changed files with 30 additions and 3 deletions

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.92 2003/02/05 04:29:14 niceass
// added support for akimbo animations
//
// Revision 1.91 2002/10/26 00:37:18 jbravo
// New multiple item code and added PB support to the UI
//
@ -1705,6 +1708,9 @@ static void PM_BeginWeaponChange(int weapon)
PM_StartWeaponAnim(WP_ANIM_DISARM);
}
if ( pm->ps->weapon == WP_AKIMBO )
PM_StartTorsoAnim(TORSO_DROP2);
else
PM_StartTorsoAnim(TORSO_DROP);
}
@ -1787,6 +1793,9 @@ static void PM_FinishWeaponChange(void)
else
PM_StartWeaponAnim(WP_ANIM_ACTIVATE);
if ( pm->ps->weapon == WP_AKIMBO )
PM_StartTorsoAnim(TORSO_RAISE2);
else
PM_StartTorsoAnim(TORSO_RAISE);
}
@ -1801,6 +1810,8 @@ static void PM_TorsoAnimation(void)
if (pm->ps->weaponstate == WEAPON_READY) {
if (pm->ps->weapon == WP_KNIFE) {
PM_ContinueTorsoAnim(TORSO_STAND2);
} else if ( pm->ps->weapon == WP_AKIMBO) {
PM_ContinueTorsoAnim(TORSO_STAND3);
} else {
PM_ContinueTorsoAnim(TORSO_STAND);
}
@ -2276,6 +2287,9 @@ static void PM_Weapon(void)
pm->ps->weaponstate = WEAPON_READY;
if (pm->ps->weapon == WP_KNIFE) {
PM_StartTorsoAnim(TORSO_STAND2);
// NiceAss: Support for special akimbo torso animations
} else if ( pm->ps->weapon == WP_AKIMBO ) {
PM_StartTorsoAnim(TORSO_STAND3);
} else {
PM_StartTorsoAnim(TORSO_STAND);
}
@ -2396,6 +2410,11 @@ static void PM_Weapon(void)
if (!(pm->ps->weapon == WP_PISTOL && pm->ps->stats[STAT_BURST]) ||
!(pm->ps->weapon == WP_M4 && pm->ps->stats[STAT_BURST] > 2) ||
!(pm->ps->weapon == WP_MP5 && pm->ps->stats[STAT_BURST] > 2)) {
// NiceAss: Support for akimbo torso attack animations
if ( pm->ps->weapon == WP_AKIMBO )
PM_StartTorsoAnim(TORSO_ATTACK3);
else
PM_StartTorsoAnim(TORSO_ATTACK);
// QUARANTINE - Weapon animations

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.100 2003/02/05 04:26:54 niceass
// added support for akimbo animations
//
// Revision 1.99 2002/12/09 00:58:48 makro
// Items are now disabled from the weapon/item menus in teamplay
// games if they are banned from the server
@ -1201,12 +1204,17 @@ typedef enum {
TORSO_ATTACK,
TORSO_ATTACK2,
TORSO_ATTACK3,
TORSO_DROP,
TORSO_RAISE,
TORSO_DROP2,
TORSO_RAISE2,
TORSO_STAND,
TORSO_STAND2,
TORSO_STAND3,
LEGS_WALKCR,
LEGS_WALK,