diff --git a/src/server/monster_scientist.qc b/src/server/monster_scientist.qc index a7b1bdd..12772d2 100644 --- a/src/server/monster_scientist.qc +++ b/src/server/monster_scientist.qc @@ -80,8 +80,17 @@ class monster_scientist:CBaseNPC virtual int(void) AttackMelee; virtual void(void) AttackNeedle; + + virtual void(void) FallNoise; }; +void +monster_scientist::FallNoise(void) +{ + float r = floor(random(3,8)) + 1.0f; + sound(this, CHAN_VOICE, sprintf("scientist/scream%02d.wav", r), 1.0, ATTN_NORM); +} + int monster_scientist::AttackMelee(void) { @@ -271,6 +280,12 @@ monster_scientist::monster_scientist(void) { spawnflags |= MSF_MULTIPLAYER; + precache_sound("scientist/scream04.wav"); + precache_sound("scientist/scream05.wav"); + precache_sound("scientist/scream06.wav"); + precache_sound("scientist/scream07.wav"); + precache_sound("scientist/scream08.wav"); + Sound_Precache("monster_scientist.die"); Sound_Precache("monster_scientist.pain");