Valve: WEAPON_HANDGRENADE gets even fancier idle animations.

This commit is contained in:
Marco Cawthorne 2020-03-24 11:19:09 +01:00
parent 3a33349047
commit d8af659dd8

View file

@ -207,6 +207,15 @@ void w_handgrenade_release(void)
pl.w_attack_next = 0.5f;
pl.w_idle_next = 0.5f;
pl.a_ammo3 = 0;
} else {
int r = (float)input_sequence % 8;
if (r == 1) {
Weapons_ViewAnimation(HANDGRENADE_FIDGET);
pl.w_idle_next = 2.5f;
} else {
Weapons_ViewAnimation(HANDGRENADE_IDLE);
pl.w_idle_next = 3.0f;
}
}
}