How do I remove cheat protection from r_drawFoliage? It’s tricky since it’s a renderer cvar so it’s not referenced in the released source code.
Can I just call trap_Cvar_Register() on it with different flags? Anyone done this?
How do I remove cheat protection from r_drawFoliage? It’s tricky since it’s a renderer cvar so it’s not referenced in the released source code.
Can I just call trap_Cvar_Register() on it with different flags? Anyone done this?
nah, bad , make a cvar cg_drawFoliage , then make some func when it is 0 then call what bacon wrote
eg
if (cg_drawFoliage.integer == 0) { trap_Cvar_Set ( "r_drawFoilage" , "0"); } else { trap_Cvar_Set( "r_drawFoliage", "1");}
but i hate turning of foilage , so i havent maked this to game , this should go to cg_main.c probably …
See the admin documentation on www.evenbalance.com to remove a watched cvar by punkbuster