From 7471227162bec77e3a678742ef10874175c0ea92 Mon Sep 17 00:00:00 2001 From: SAZONISCHE Date: Fri, 5 May 2023 00:16:05 +0300 Subject: [PATCH] Fix Client.SetModelListPos --- addons/sourcemod/scripting/csgo_models/methods.sp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/csgo_models/methods.sp b/addons/sourcemod/scripting/csgo_models/methods.sp index 37de1f1..a9a1ddc 100644 --- a/addons/sourcemod/scripting/csgo_models/methods.sp +++ b/addons/sourcemod/scripting/csgo_models/methods.sp @@ -29,7 +29,11 @@ methodmap Client { ClientModelCacheMask data; IntToString(GetSteamAccountID(client), steamId, sizeof steamId); g_clientModelSettings.modelsCache.GetArray(steamId, data, sizeof ClientModelCacheMask); - team == CS_TEAM_CT ? data.ctModelPos = iPos : data.tModelPos = iPos; + if (team == CS_TEAM_CT) { + data.ctModelPos = iPos; + } else { + data.tModelPos = iPos; + } g_clientModelSettings.modelsCache.SetArray(steamId, data, sizeof ClientModelCacheMask); }