SERVER: Make ching.wav precache global

It's used in too many places to precache on a per-entity basis reliably.
This commit is contained in:
cypress 2024-04-17 19:36:32 -07:00
parent a6f1223b01
commit 3dffb7f245
3 changed files with 1 additions and 3 deletions

View file

@ -663,7 +663,6 @@ void() func_door_nzp =
if (!roundinit) {
if (self.cost) {
self.classname = "door_nzp_cost";
precache_sound("sounds/misc/ching.wav");
switch(self.sounds)
{
case 1: precache_sound("sounds/misc/wood_door.wav"); break;

View file

@ -445,6 +445,4 @@ void() buy_weapon =
self.nextthink = time + 0.2;
ach_tracker_col2++;
precache_sound("sounds/misc/ching.wav");
};

View file

@ -272,6 +272,7 @@ void() precaches =
precache_sound("sounds/music/end.wav");
// purchasing
precache_sound("sounds/misc/ching.wav");
precache_sound("sounds/misc/buy.wav");
precache_sound("sounds/misc/denybuy.wav");