Weapons: Add player model animations for the hammer, shotgun and change the aim animation for the chainsaw to be that of the Egon
This commit is contained in:
parent
a82c6fd12d
commit
629a9c55aa
3 changed files with 32 additions and 12 deletions
|
@ -144,6 +144,11 @@ w_cannon_primary(void)
|
|||
Weapons_ViewAnimation(CANNON_FIREBOTH);
|
||||
pl.w_attack_next = 1.5f;
|
||||
pl.w_idle_next = 2.5f;
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
Animation_PlayerTop(pl, ANIM_CR_SHOOTSHOTGUN, 0.41f);
|
||||
else
|
||||
Animation_PlayerTop(pl, ANIM_SHOOTSHOTGUN, 0.5f);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -178,6 +183,11 @@ w_cannon_secondary(void)
|
|||
|
||||
pl.w_attack_next = 1.5f;
|
||||
pl.w_idle_next = 2.5f;
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
Animation_PlayerTop(pl, ANIM_CR_SHOOTSHOTGUN, 0.41f);
|
||||
else
|
||||
Animation_PlayerTop(pl, ANIM_SHOOTSHOTGUN, 0.5f);
|
||||
}
|
||||
void
|
||||
w_cannon_release(void)
|
||||
|
|
|
@ -160,7 +160,7 @@ void w_chainsaw_release(void)
|
|||
|
||||
float w_chainsaw_aimanim(void)
|
||||
{
|
||||
return self.flags & FL_CROUCHING ? ANIM_CR_AIMSQUEAK : ANIM_AIMSQUEAK;
|
||||
return self.flags & FL_CROUCHING ? ANIM_CR_AIMEGON : ANIM_AIMEGON;
|
||||
}
|
||||
|
||||
void w_chainsaw_hudpic(int s, vector pos, float a)
|
||||
|
|
|
@ -145,6 +145,11 @@ void w_hammer_release(void)
|
|||
#endif
|
||||
Weapons_ViewAnimation(HAMMER_ATTACK1);
|
||||
pl.w_attack_next = 1.0f;
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
Animation_PlayerTop(pl, ANIM_CR_SHOOTCROWBAR, 0.41f);
|
||||
else
|
||||
Animation_PlayerTop(pl, ANIM_SHOOTCROWBAR, 0.5f);
|
||||
} else if (pl.ammo_hammer_state == 2) {
|
||||
#ifdef SERVER
|
||||
if (trace_ent.takedamage) {
|
||||
|
@ -162,6 +167,11 @@ void w_hammer_release(void)
|
|||
#endif
|
||||
Weapons_ViewAnimation(HAMMER_ATTACK2);
|
||||
pl.w_attack_next = 0.75f;
|
||||
|
||||
if (self.flags & FL_CROUCHING)
|
||||
Animation_PlayerTop(pl, ANIM_CR_SHOOTCROWBAR, 0.41f);
|
||||
else
|
||||
Animation_PlayerTop(pl, ANIM_SHOOTCROWBAR, 0.5f);
|
||||
}
|
||||
|
||||
#ifdef SERVER
|
||||
|
|
Loading…
Reference in a new issue