Skip to content

Commit

Permalink
Fix Client.SetModelListPos
Browse files Browse the repository at this point in the history
  • Loading branch information
sazonische committed May 4, 2023
1 parent 4a52730 commit 7471227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/sourcemod/scripting/csgo_models/methods.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7471227

Please sign in to comment.