i made a custom cvar “works” and im try’n to use it in game/bg_pmove.c in “PM_CheckJump”, my code:
static qboolean PM_CheckJump( void ) {
.....
if ( g_hatstraft.integer == 0 ) {
if (pm->cmd.serverTime - pm->ps->jumpTime < 850) // Arnout: NOTE : TEMP DEBUG
return qfalse;
}
.....
but i this error:
error C2065: 'g_hatstraft' : undeclared identifier
anyone know a way around this? or correct way?

