mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-24 21:02:14 +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
|
@ -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);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ==================
|
/* ==================
|
||||||
|
|
|
@ -108,4 +108,5 @@ models/machines/power_switch.mdl,models/machines/quake_scale/power_switch.mdl
|
||||||
models/machines/hl_scale/packapunch/p_machine.mdl,models/machines/hl_scale/pap/p_machine.mdl
|
models/machines/hl_scale/packapunch/p_machine.mdl,models/machines/hl_scale/pap/p_machine.mdl
|
||||||
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
|
|
Loading…
Reference in a new issue