From 7baadb907db6d620823ed5564b2c5ee9010c0ddb Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Sun, 12 Mar 2023 12:40:48 -0400 Subject: [PATCH] SERVER: Add old Power Switch path to conver_old_asset_path --- source/server/clientfuncs.qc | 2 ++ source/server/main.qc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/server/clientfuncs.qc b/source/server/clientfuncs.qc index cc70612..a51ca7b 100644 --- a/source/server/clientfuncs.qc +++ b/source/server/clientfuncs.qc @@ -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); }; diff --git a/source/server/main.qc b/source/server/main.qc index b749f6b..d9f0060 100644 --- a/source/server/main.qc +++ b/source/server/main.qc @@ -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; }