Removed duplicate line in update_offsets script & added backwards compatibility and fixed how the name was been read from the player controller

This commit is contained in:
IMXNOOBX
2025-07-13 13:55:46 +02:00
parent 13cbfd1836
commit 692df9ac1b
2 changed files with 5 additions and 7 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ offsets_json["m_flTimerLength"] = client_json_base["C_PlantedC4"]["fields"]["m_f
offsets_json["m_hPlayerPawn"] = client_json_base["CCSPlayerController"]["fields"]["m_hPlayerPawn"]
offsets_json["m_iAccount"] = client_json_base["CCSPlayerController_InGameMoneyServices"]["fields"]["m_iAccount"]
offsets_json["m_pInGameMoneyServices"] = client_json_base["CCSPlayerController"]["fields"]["m_pInGameMoneyServices"]
offsets_json["m_hController"] = client_json_base["C_BasePlayerPawn"]["fields"]["m_hController"]
offsets_json["m_sSanitizedPlayerName"] = client_json_base["CCSPlayerController"]["fields"]["m_sSanitizedPlayerName"] # Added for backwards compatibility, this is the same as m_iszPlayerName
offsets_json["m_hController"] = client_json_base["C_BasePlayerPawn"]["fields"]["m_hController"]
offsets_json["m_iszPlayerName"] = client_json_base["C_BasePlayerController"]["fields"]["m_iszPlayerName"]