From c022c2554963d05a0b60e105a47a41ce8e7258c1 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 4 Mar 2012 01:27:33 +0200 Subject: [PATCH] Properly precache macro walking sounds --- data/qcsrc/server/miscfunctions.qc | 6 ++++-- docs/TODO.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index 17e98678..0d3837ee 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -1405,8 +1405,8 @@ void precache() { PrecacheGlobalSound((globalsound_step = "misc/footstep0 6")); PrecacheGlobalSound((globalsound_metalstep = "misc/metalfootstep0 6")); - - precache_sound("misc/macro_footstep.wav"); + if(cvar("g_healthsize")) + precache_sound("misc/macro_footstep.wav"); } // gore and miscellaneous sounds @@ -1427,6 +1427,8 @@ void precache() precache_sound ("misc/beep.wav"); PrecacheGlobalSound((globalsound_fall = "misc/hitground 4")); PrecacheGlobalSound((globalsound_metalfall = "misc/metalhitground 4")); + if(cvar("g_healthsize")) + precache_sound("misc/macro_hitground.wav"); precache_sound ("misc/null.wav"); precache_sound ("misc/spawn.wav"); precache_sound ("misc/talk.wav"); diff --git a/docs/TODO.txt b/docs/TODO.txt index f89bd569..815c730c 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -138,4 +138,4 @@ - 0.7 | 0.8: Make display digits red when ammo or load are too low -- 0.7: Precache macro hitground sound (make sure footstep one is precached too) \ No newline at end of file +- 0.7 | 0.8: The stomach gurgle sound duration does not match the pitch properly \ No newline at end of file -- 2.39.2