You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need intercept m_playerSaveData and store total fields number that passed as last argument
Now you can iterate through it and get name/offset/size of class variable if it contains in that list
This will also help to remove this ugliest hardcoded offsets for Linux game versions and thereby allow you to play without issues from both versions (Valve added a variable at the end of CBaseMonster for the NPC turn fix, which is also inherited for CBasePlayer):
SmileyAG
changed the title
Use save data to find offsets for the most of class variables
restructuring: use save data to find offsets for the most of class variables
Jul 29, 2024
BunnymodXT/HLSDK/engine/eiface.h
Lines 404 to 411 in 1196334
Save
orRestore
class function (e.g.CBasePlayer::Save
)CSave::WriteFields
orCRestore::ReadFields
depending on the function you choose:m_playerSaveData
and store total fields number that passed as last argumentThis will also help to remove this ugliest hardcoded offsets for Linux game versions and thereby allow you to play without issues from both versions (Valve added a variable at the end of
CBaseMonster
for the NPC turn fix, which is also inherited forCBasePlayer
):BunnymodXT/BunnymodXT/modules/ServerDLL.cpp
Lines 991 to 1003 in 1196334
The text was updated successfully, but these errors were encountered: