mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-18 09:51:41 +00:00
SERVER: Add old Power Switch path to conver_old_asset_path
This commit is contained in:
parent
c49f66904d
commit
7baadb907d
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
Boston, MA 02111-1307, USA
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
string(string asset) convert_old_asset_path;
|
||||||
|
|
||||||
void SetUpdate(entity client, float type, float val1, float val2, float val3)
|
void SetUpdate(entity client, float type, float val1, float val2, float val3)
|
||||||
{
|
{
|
||||||
|
@ -561,6 +562,7 @@ void (float achievement_id, float progress_value, optional entity who) UpdateAch
|
||||||
|
|
||||||
void(string modelname) Precache_Set = // Precache model, and set myself to it
|
void(string modelname) Precache_Set = // Precache model, and set myself to it
|
||||||
{
|
{
|
||||||
|
modelname = convert_old_asset_path(modelname);
|
||||||
precache_model(modelname);
|
precache_model(modelname);
|
||||||
setmodel(self, modelname);
|
setmodel(self, modelname);
|
||||||
};
|
};
|
||||||
|
|
|
@ -589,6 +589,8 @@ string(string asset) convert_old_asset_path =
|
||||||
return "models/sprites/lightning.spr";
|
return "models/sprites/lightning.spr";
|
||||||
case "models/Derped/Wall_lamp.mdl":
|
case "models/Derped/Wall_lamp.mdl":
|
||||||
return "models/props/lamp_wall.mdl";
|
return "models/props/lamp_wall.mdl";
|
||||||
|
case "models/machines/power_switch.mdl":
|
||||||
|
return "models/machines/quake_scale/power_switch.mdl";
|
||||||
default: return asset;
|
default: return asset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue