SERVER: Add old Power Switch path to conver_old_asset_path

This commit is contained in:
Steam Deck User 2023-03-12 12:40:48 -04:00
parent c49f66904d
commit 7baadb907d
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,7 @@
Boston, MA 02111-1307, USA
*/
string(string asset) convert_old_asset_path;
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
{
modelname = convert_old_asset_path(modelname);
precache_model(modelname);
setmodel(self, modelname);
};

View file

@ -589,6 +589,8 @@ string(string asset) convert_old_asset_path =
return "models/sprites/lightning.spr";
case "models/Derped/Wall_lamp.mdl":
return "models/props/lamp_wall.mdl";
case "models/machines/power_switch.mdl":
return "models/machines/quake_scale/power_switch.mdl";
default: return asset;
}