Hello,
Recently I'm trying to reactivate the client's HUD with the player's pdata though It seems that the offsets I found for DoD's CBasePlayer aren't correct?
dod-offsets-cbaseplayer
When the player spawns in using a custom function, the client-side HUD seems to break and not function correctly. The weapons are in the players inventory though aren't switchable by selecting them with scroll wheel or numbers. plus, the ammo counter and weapon switch HUD aren't seen.
I thought maybe changing the player's pdata related to hiding the HUD will fix though it hasn't worked so far...
PHP Code:
set_pdata_int(id, 1060, 0, 20); //m_iHideHUD
set_pdata_int(id, 1072, 0, 20); //m_iClientHideHUD
set_pdata_int(id, 1024, 1, 20); //m_fInitHUD
I really can't seem to find any solutions without asking any experienced people about it...
Isn't there a way to catch these kind of pdata changes so debugging could be done?