mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 06:31:44 +00:00
SERVER: Allow to check conversion paths
This commit is contained in:
parent
f0bbed099f
commit
75cc18669f
2 changed files with 5 additions and 6 deletions
|
@ -127,6 +127,7 @@ void() teddy_spawn =
|
|||
self.movetype = MOVETYPE_NONE; // so it doesn't get pushed by anything
|
||||
self.solid = SOLID_BBOX;
|
||||
self.classname = "teddy_spawn";
|
||||
self.noise = Compat_ConvertOldAssetPath(self.noise);
|
||||
setmodel (self, "models/props/teddy.mdl");
|
||||
setsize (self, '-8 -8 -4', '8 8 4');
|
||||
|
||||
|
@ -134,11 +135,8 @@ void() teddy_spawn =
|
|||
self.health = 0;
|
||||
self.th_die = teddy_react;
|
||||
|
||||
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";
|
||||
if (self.noise)
|
||||
precache_sound (self.noise);
|
||||
}
|
||||
};
|
||||
|
||||
/* ==================
|
||||
|
|
|
@ -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_flag.mdl,models/machines/hl_scale/pap/p_flag.mdl
|
||||
progs/sprites/lamp_glow2.spr,models/sprites/lamp_glow2.spr
|
||||
misc/buy.wav,sounds/misc/buy.wav
|
|
Loading…
Reference in a new issue