How to use Cheat CVAR Without cheats enabled?


(D- Eagle) #1

How i can use Cheat CVAR Without cheats enabled?
(this is for my mod)
I’m kinda sure hat i have to edit source code, but what in it?


(fretn) #2

remove the CVAR_CHEAT flag in the cvar declaration


(D- Eagle) #3

No… doesn’t work…


(Jaquboss) #4

then you are doing it wrong…


(D- Eagle) #5

Hmm… What did i do wron now? It lloks like this now:
{ &cg_thirdPersonRange, “cg_thirdPersonRange”, “80”},
{ &cg_thirdPersonAngle, “cg_thirdPersonAngle”, “0”},
{ &cg_thirdPerson, “cg_thirdPerson”, “1”},
and it was:
{ &cg_thirdPersonRange, “cg_thirdPersonRange”, “80” , CVAR_CHEAT },
{ &cg_thirdPersonAngle, “cg_thirdPersonAngle”, “0”, CVAR_CHEAT },
{ &cg_thirdPerson, “cg_thirdPerson”, “1”, CVAR_CHEAT },


(D- Eagle) #6

Ok i got it work, thanks.


([RW]FRED) #7

The 3rd person view code in ET is not so good to be used as is, and if u adapt the code to make it more viewable, it will be better to clamp the cvars cg_thirdperson[range|angle]