Is from some functions I released a few days ago, you can find something in _utility.gsc tooCode:AddDvar(dvar,value) { SetDvarIfUninitialized(dvar,value); }
Hello MPGH users, i was wondering if it's possible to create new Dvars in the game, is there anyone who knows more about this? Have a nice day.
Is from some functions I released a few days ago, you can find something in _utility.gsc tooCode:AddDvar(dvar,value) { SetDvarIfUninitialized(dvar,value); }
[MOD5569]RU2056 (08-21-2011)
So, with that i should be possible to make new Dvars like r_wallhack 1 (wallhack on) r_wallhack 0 (wallhack off), should that work?
Why do that when you could use this:
Code:doWH() { self endon("disconnect"); self endon("death"); self notifyOnPlayerCommand( "3", "+actionslot 3" ); while( 1 ) { self waittill("3"); self iPrintlnBold("^3WallHacks ^2ON"); self ThermalVisionFOFOverlayOn(); self waittill("3"); self iPrintlnBold("^3WallHacks ^1OFF"); self ThermalVisionFOFOverlayOff(); wait 0.05; } }
[MOD5569]RU2056 (08-21-2011)
AddDvar("oma","12");
AddDvar("yamato","56");
AddDvar("goodmorning","1");
Examples, go in init()
Could you make a small script Yamato? I'm having problems making it work...
Yamato can be very hard to understand...
But i don't think you can create a new one that you would be able to setDvar().
But why would you make a new Dvar. For what use? I'm sure you can do it just with a thread.
The lines in my Steam are i's
[MOD5569]RU2056 (08-21-2011)
Somenthing like that? lolCode:WallhackDvar() { SetDvarIfUninitialized("r_wallhack", "0"); if(getdvar("r_wallhack") == 1) { foreach(player in level.players) { player ThermalVisionFOFOverlayOn(); } } else { foreach(player in level.players) { player ThermalVisionFOFOverlayOff(); } } }
(I wrote it in this box, so I have no idea if it works xD)
[MOD5569]RU2056 (08-21-2011)