remove cheat protection from r_drawFoliage?


(tjw) #1

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?


(bacon) #2

Put this wherever you want to turn it off:

trap_Cvar_Set( "r_drawFoliage", "0");

(Jaquboss) #3

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 …


([RW]FRED) #4

See the admin documentation on www.evenbalance.com to remove a watched cvar by punkbuster