mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-22 20:31:11 +00:00
added support for akimbo animations
This commit is contained in:
parent
22020cba04
commit
8b9f87477f
2 changed files with 30 additions and 3 deletions
|
@ -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,7 +1708,10 @@ static void PM_BeginWeaponChange(int weapon)
|
|||
PM_StartWeaponAnim(WP_ANIM_DISARM);
|
||||
}
|
||||
|
||||
PM_StartTorsoAnim(TORSO_DROP);
|
||||
if ( pm->ps->weapon == WP_AKIMBO )
|
||||
PM_StartTorsoAnim(TORSO_DROP2);
|
||||
else
|
||||
PM_StartTorsoAnim(TORSO_DROP);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1787,7 +1793,10 @@ static void PM_FinishWeaponChange(void)
|
|||
else
|
||||
PM_StartWeaponAnim(WP_ANIM_ACTIVATE);
|
||||
|
||||
PM_StartTorsoAnim(TORSO_RAISE);
|
||||
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,7 +2410,12 @@ 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)) {
|
||||
PM_StartTorsoAnim(TORSO_ATTACK);
|
||||
|
||||
// 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
|
||||
// This should change pm->ps->generic1 so we can animate
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue