sp0rky
02-07-2005, 11:36 PM
ConVar spinhack( "spinhack", "1", CVAR_FLAGS, "Turn spinhack on or off." );
ConVar norecoil( "norecoil", "1", CVAR_FLAGS, "Turn norecoil on or off." );
ConVar bhop( "bhop", "1", CVAR_FLAGS, "Turn bunnyhopping on or off." );
// Here we link in all cvars to the engine list
void LinkCvars( void )
{
// You must SetNext(0) or it will not link to the engine list
spinhack.SetNext(0);
norecoil.SetNext(0);
bhop.SetNext(0);
// Here we link in each cvar
cvar->RegisterConCommandBase(&spinhack);
cvar->RegisterConCommandBase(&norecoil);
cvar->RegisterConCommandBase(&bhop);
}
Credits: Source SDK
This may not appear elsewhere without permission, but may be linked to.
ConVar norecoil( "norecoil", "1", CVAR_FLAGS, "Turn norecoil on or off." );
ConVar bhop( "bhop", "1", CVAR_FLAGS, "Turn bunnyhopping on or off." );
// Here we link in all cvars to the engine list
void LinkCvars( void )
{
// You must SetNext(0) or it will not link to the engine list
spinhack.SetNext(0);
norecoil.SetNext(0);
bhop.SetNext(0);
// Here we link in each cvar
cvar->RegisterConCommandBase(&spinhack);
cvar->RegisterConCommandBase(&norecoil);
cvar->RegisterConCommandBase(&bhop);
}
Credits: Source SDK
This may not appear elsewhere without permission, but may be linked to.