monster_scientist: Don't trigger pain sound when we're already dead.
This commit is contained in:
parent
d959313700
commit
3ddf61988f
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ monster_scientist::Pain(void)
|
|||
return;
|
||||
}
|
||||
|
||||
Sound_Speak(this, "monster_scientist.pain");
|
||||
if (style != MONSTER_DEAD)
|
||||
Sound_Speak(this, "monster_scientist.pain");
|
||||
|
||||
frame = SCIA_FLINCH + floor(random(0, 6));
|
||||
m_flAnimTime = time + 0.25f;
|
||||
|
|
Loading…
Reference in a new issue