From 987a967193136f4e917f16058d74a676b41b8c1c Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 2 Sep 2013 09:58:10 +1000 Subject: [PATCH] Precache in the correct VM --- qcsrc/common/monsters/monster/brute.qc | 7 +++---- qcsrc/common/monsters/monster/knight.qc | 3 +-- qcsrc/common/monsters/monster/mage.qc | 7 +++---- qcsrc/common/monsters/monster/slime.qc | 3 +-- qcsrc/common/monsters/monster/spider.qc | 5 ++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/qcsrc/common/monsters/monster/brute.qc b/qcsrc/common/monsters/monster/brute.qc index 7d747457af..91a307bdff 100644 --- a/qcsrc/common/monsters/monster/brute.qc +++ b/qcsrc/common/monsters/monster/brute.qc @@ -230,7 +230,9 @@ float m_brute(float req) } case MR_INIT: { - // nothing + precache_sound ("weapons/uzi_fire.wav"); + precache_sound ("weapons/grenade_impact.wav"); + precache_sound ("weapons/grenade_fire.wav"); return TRUE; } case MR_CONFIG: @@ -257,9 +259,6 @@ float m_brute(float req) case MR_INIT: { precache_model ("models/monsters/ogre.dpm"); - precache_sound ("weapons/uzi_fire.wav"); - precache_sound ("weapons/grenade_impact.wav"); - precache_sound ("weapons/grenade_fire.wav"); return TRUE; } } diff --git a/qcsrc/common/monsters/monster/knight.qc b/qcsrc/common/monsters/monster/knight.qc index ab7422df7e..37dee43df8 100644 --- a/qcsrc/common/monsters/monster/knight.qc +++ b/qcsrc/common/monsters/monster/knight.qc @@ -301,6 +301,7 @@ float m_knight(float req) case MR_INIT: { precache_sound ("player/lava.wav"); + precache_sound ("weapons/fireball2.wav"); return TRUE; } case MR_CONFIG: @@ -327,8 +328,6 @@ float m_knight(float req) case MR_INIT: { precache_model ("models/monsters/hknight.mdl"); - precache_sound ("player/lava.wav"); - precache_sound ("weapons/fireball2.wav"); return TRUE; } } diff --git a/qcsrc/common/monsters/monster/mage.qc b/qcsrc/common/monsters/monster/mage.qc index e308b618e6..9b527b76a5 100644 --- a/qcsrc/common/monsters/monster/mage.qc +++ b/qcsrc/common/monsters/monster/mage.qc @@ -448,7 +448,9 @@ float m_mage(float req) } case MR_INIT: { - // nothing + precache_model ("models/items/g_h50.md3"); + precache_model ("models/ctf/shield.md3"); + precache_sound ("weapons/grenade_impact.wav"); return TRUE; } case MR_CONFIG: @@ -475,9 +477,6 @@ float m_mage(float req) case MR_INIT: { precache_model ("models/monsters/mage.dpm"); - precache_model ("models/items/g_h50.md3"); - precache_model ("models/ctf/shield.md3"); - precache_sound ("weapons/grenade_impact.wav"); return TRUE; } } diff --git a/qcsrc/common/monsters/monster/slime.qc b/qcsrc/common/monsters/monster/slime.qc index f322d9a2fc..ffda3b99fe 100644 --- a/qcsrc/common/monsters/monster/slime.qc +++ b/qcsrc/common/monsters/monster/slime.qc @@ -131,7 +131,7 @@ float m_slime(float req) } case MR_INIT: { - // nothing + precache_sound ("weapons/rocket_impact.wav"); return TRUE; } case MR_CONFIG: @@ -158,7 +158,6 @@ float m_slime(float req) case MR_INIT: { precache_model ("models/monsters/slime.dpm"); - precache_sound ("weapons/rocket_impact.wav"); return TRUE; } } diff --git a/qcsrc/common/monsters/monster/spider.qc b/qcsrc/common/monsters/monster/spider.qc index b7678a7cf7..612affd0ce 100644 --- a/qcsrc/common/monsters/monster/spider.qc +++ b/qcsrc/common/monsters/monster/spider.qc @@ -201,7 +201,8 @@ float m_spider(float req) } case MR_INIT: { - // nothing + precache_sound ("weapons/electro_fire2.wav"); + precache_sound ("weapons/fireball_fire.wav"); return TRUE; } case MR_CONFIG: @@ -228,8 +229,6 @@ float m_spider(float req) case MR_INIT: { precache_model ("models/monsters/spider.dpm"); - precache_sound ("weapons/electro_fire2.wav"); - precache_sound ("weapons/fireball_fire.wav"); return TRUE; } } -- 2.39.2