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

Reply via email to