What you did should work fine. What errors did you get? The only issue I see with your example is a missing close parenthesis, but I assume that was an email mistake. There should be no issue mixing 'C' and 'C++' the SDK does it all the time.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Draco Sent: Saturday, April 23, 2005 5:32 AM To: [email protected] Subject: [hlcoders] (HL1 QUESTION) pm_shared.c and CVAR's? Today I was adding some options to my mod that users have requested and was looking to add a no jumping cvar for the server. I made the cvar, opened pm_shared and went if(CVAR_GET_FLOAT("pd_nojump") == 0 { //jump crap } well, I though I was pretty clever, putting this option in in under a minute, but then I hit a massive ERROR iceberg. I then realised the c code isn't going to like the cut of g_engfunc's jib at all. My question is, how would I get the cvar into the c code? do I have to somehow find where it gets changed, then make it a value c can understand outside of files that have C++ only code in it? is there a better way? -- Draco _______________________________________________ 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

