Raised This Month: $ Target: $400
 0% 

Solved HUD Breaks on spawn (DOD)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cmndrfello
Junior Member
Join Date: Jan 2022
Old 01-06-2022 , 16:54   HUD Breaks on spawn (DOD)
Reply With Quote #1

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(id1060020); //m_iHideHUD
set_pdata_int(id1072020); //m_iClientHideHUD
set_pdata_int(id1024120); //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?

Last edited by cmndrfello; 01-07-2022 at 14:05.
cmndrfello is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode