Fix broken shock roach death.

Fix hwgrunt not spinning down the minigun.
Other misc. fixes.
This commit is contained in:
Giegue
2023-03-04 17:24:01 -03:00
parent 62063e34da
commit bd02a95260
7 changed files with 40 additions and 10 deletions

View File

@@ -700,7 +700,18 @@ void CMHWGrunt :: SetActivity ( Activity NewActivity )
case ACT_RUN:
case ACT_WALK:
default:
iSequence = LookupActivity ( NewActivity );
if ( m_flMinigunSpinTime != 0 )
{
// if the hwgrunt used his minigun but became unable to attack
// then spin it down before doing anything else
refreshActivity = FALSE;
EMIT_SOUND(ENT(pev), CHAN_WEAPON, "hassault/hw_spindown.wav", 0.8, ATTN_NORM);
m_flMinigunSpinTime = gpGlobals->time + 1.40;
iSequence = LookupSequence( "spindown" );
}
else
iSequence = LookupActivity ( NewActivity );
break;
}