From ccfd887e7caa4bb3160578d83d6d85292174086f Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sat, 23 Apr 2022 22:04:34 -0700 Subject: [PATCH] monster_scientist: Fix the Pain() calling animations post-death --- src/server/monster_scientist.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/monster_scientist.qc b/src/server/monster_scientist.qc index 802773a..94823e7 100644 --- a/src/server/monster_scientist.qc +++ b/src/server/monster_scientist.qc @@ -208,6 +208,9 @@ monster_scientist::TalkPanic(void) void monster_scientist::Pain(void) { + if (style == MONSTER_DEAD) + return; + if (autocvar_sh_sciattack) CBaseMonster::Pain();