HUD Breaks on spawn (DOD)
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:
Isn't there a way to catch these kind of pdata changes so debugging could be done? |
Re: HUD Breaks on spawn (DOD)
Windows or linux server?
Post the function here |
Re: HUD Breaks on spawn (DOD)
Here's the code that i am using on a windows server
PHP Code:
After spawning even without "fm_strip_user_weapons()" still the weapon HUD won't appear. (health, deathmsgs and chat still appears only weapon related HUD does not) |
Re: HUD Breaks on spawn (DOD)
I ran the original plugin that I gave you and it seems to work just fine. I see that you removed some of the things that were in the original plugin, namely the line that has the comment: "I found this is needed to use weapons for a forced spawn.". Seems like that might be important.
I'm running on Linux so I can't be sure it's not a Windows thing but if you can attach your full plugin (or a smaller working plugin that still exhibits the unwanted behavior) so that I can test on my Linux server and see if it happens on Linux also. |
Re: HUD Breaks on spawn (DOD)
1 Attachment(s)
Here's the source code
|
Re: HUD Breaks on spawn (DOD)
Nevermind! I've found a fix!
Sending a "HideWeapon" message post spawn with written byte as 0 will reset the hidden elements and will fix my issue! PHP Code:
|
| All times are GMT -4. The time now is 11:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.