SERVER: Allow to check conversion paths

This commit is contained in:
cypress 2024-01-08 14:06:29 -05:00
parent f0bbed099f
commit 75cc18669f
2 changed files with 5 additions and 6 deletions

View file

@ -125,8 +125,9 @@ void() teddy_spawn =
precache_model ("models/props/teddy.mdl"); precache_model ("models/props/teddy.mdl");
self.movetype = MOVETYPE_NONE; // so it doesn't get pushed by anything self.movetype = MOVETYPE_NONE; // so it doesn't get pushed by anything
self.solid=SOLID_BBOX; self.solid = SOLID_BBOX;
self.classname = "teddy_spawn"; self.classname = "teddy_spawn";
self.noise = Compat_ConvertOldAssetPath(self.noise);
setmodel (self, "models/props/teddy.mdl"); setmodel (self, "models/props/teddy.mdl");
setsize (self, '-8 -8 -4', '8 8 4'); setsize (self, '-8 -8 -4', '8 8 4');
@ -134,11 +135,8 @@ void() teddy_spawn =
self.health = 0; self.health = 0;
self.th_die = teddy_react; self.th_die = teddy_react;
if (self.noise) { if (self.noise)
// FIXME: make a convert_old_sound_path function like we do for models.
if (self.noise == "misc/buy.wav") self.noise = "sounds/misc/buy.wav";
precache_sound (self.noise); precache_sound (self.noise);
}
}; };
/* ================== /* ==================

View file

@ -109,3 +109,4 @@ models/machines/hl_scale/packapunch/p_machine.mdl,models/machines/hl_scale/pap/p
models/machines/hl_scale/packapunch/p_roller.mdl,models/machines/hl_scale/pap/p_roller.mdl models/machines/hl_scale/packapunch/p_roller.mdl,models/machines/hl_scale/pap/p_roller.mdl
models/machines/hl_scale/packapunch/p_flag.mdl,models/machines/hl_scale/pap/p_flag.mdl models/machines/hl_scale/packapunch/p_flag.mdl,models/machines/hl_scale/pap/p_flag.mdl
progs/sprites/lamp_glow2.spr,models/sprites/lamp_glow2.spr progs/sprites/lamp_glow2.spr,models/sprites/lamp_glow2.spr
misc/buy.wav,sounds/misc/buy.wav
1 old_path current_path
109 models/machines/hl_scale/packapunch/p_roller.mdl models/machines/hl_scale/pap/p_roller.mdl
110 models/machines/hl_scale/packapunch/p_flag.mdl models/machines/hl_scale/pap/p_flag.mdl
111 progs/sprites/lamp_glow2.spr models/sprites/lamp_glow2.spr
112 misc/buy.wav sounds/misc/buy.wav