monster_scientist: Don't trigger pain sound when we're already dead.

This commit is contained in:
Marco Cawthorne 2021-09-12 00:19:47 +02:00
parent d959313700
commit 3ddf61988f
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -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;