Never mind, found the problem :)
Just my plain stupidity again

This
if ( (gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH | HIDEHUD_ALL) )

Should be

if ( (gHUD.m_iHideHUDDisplay & ( HIDEHUD_HEALTH | HIDEHUD_ALL) ) )

-Ron

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Yacketta,
Ronald
Sent: Sunday, March 03, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: [hlcoders] gEngfuncs.IsSpectateOnly()


Folks,

Now sure how or why but my health is not showing in the HUD, after
hitting the debugger I noticed that the if check in the Draw() of Health
is failing.

I is barfing on the gEngfuncs.IsSpectateOnly() check, I tracked the
function down to this

        // returns 1 if the client is a spectator only (connected to a
proxy), 0 otherwise or 2 if in dev_overview mode
        int                                                     (
*IsSpectateOnly ) ( void );

But do not see anything else client/server side relating to it. I know
the first condition "returns 1 if the client is a spectator only
(connected to a proxy)" is false, seeing I am connected to the game and
playing. Not sure about "2 if in dev_overview mode", what is
dev_overview? Is this the overview in HLTV? If so, then this is false as
well.

So, I am back to square one; wondering how that if check is failing.

Yes,
I have verified that HIDEHUD_ALL and HIDEHUD_HEALTH are not being set
server side etc.. m_iHideHUDDisplay is equal to 0 in debugger.

-Ron
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to