twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
372 stars 147 forks source link

HUD not drawing when item_suit picked up #230

Closed DirtyBlue929 closed 9 months ago

DirtyBlue929 commented 9 months ago

I may just be very stupid and thus apologize in advance if this is entirely my fault due to missing something obvious, but the HUD does not appear when item_suit is equipped. It otherwise works perfectly; plays the scripted sentences for startup and all, but weapon switching doesn't work and no HUD elements appear except the crosshair if a weapon is added to the player inventory.

The draw_hud console command does nothing, either. Doesn't appear to be affected by screen size since I tried it on multiple widescreen and standard resolutions. Happens whether I'm running the game on the "legacy" beta build or the anniversary build. The only edits I've done, at least that I'm aware of (there is a small possibility that I fumblingly changed something in the .dll while figuring out the tools, again I'm very stupid), are creating three new guard entities that use custom models and sounds, each fully-functional in my playtesting.

EDIT: If it helps, this error (?) appears in the console when equipping item_suit or any weapons with "developer 2" enabled:

UserMsg: No pfn Weapons 98

SamVanheer commented 9 months ago

This usually happens when you only use a custom server dll (hl.dll) but not a matching client dll.

Make sure you have both the client and server dlls that are part of the project compiled and placed in your mod directory. They need to match for everything to work.

DirtyBlue929 commented 9 months ago

Ahh, yup. I did have the client dll but had thoughtlessly renamed it to match my custom server dll. Thanks for pointing me in the right direction, sorry to bother ya XD