[Tutorial] Edit Dvars in-game
5 posters
Page 1 of 1
[Tutorial] Edit Dvars in-game
You can change the dvar and the value you want to increase or decrease to whatever you want
You need to add
Ninja'd From http://www.se7ensins.com
You need to add
- Code:
self thread increaseDvar()
;self thread decreaseDvar();
- Code:
increaseDvar(){
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self waittill( "dpad_up" );
value = getDvarInt( "g_speed" ); //gets dvar value
value = value + 20; //increases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value ); //sets dvar
self iPrintlnBold( "g_speed = ", value );
self thread increaseDvar();}decreaseDvar(){ self endon ( "disconnect" ); self endon ( "death" ); self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); self waittill( "dpad_down" ); value = getDvarInt( "g_speed" ); value = value - 20; //decreases dvar value by 20(change 20 to whatever you want) setDvar( "g_speed", value ); self iPrintlnBold( "g_speed = ", value );
self thread decreaseDvar();
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self waittill( "dpad_down" ); value = getDvarInt( "g_speed" );
value = value - 20; //decreases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value );
self iPrintlnBold( "g_speed = ", value );
self thread decreaseDvar();}
Ninja'd From http://www.se7ensins.com
Sir Jake- Admin
- Posts : 467
Join date : 2010-01-29
Age : 29
Re: [Tutorial] Edit Dvars in-game
Why would you copy and paste from a rival site?No Ginger GirIs wrote:You can change the dvar and the value you want to increase or decrease to whatever you want
You need to addto onPlayerSpawned() or where ever you want to call it from
- Code:
self thread increaseDvar()
;self thread decreaseDvar();
- Code:
increaseDvar(){
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self waittill( "dpad_up" );
value = getDvarInt( "g_speed" ); //gets dvar value
value = value + 20; //increases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value ); //sets dvar
self iPrintlnBold( "g_speed = ", value );
self thread increaseDvar();}decreaseDvar(){ self endon ( "disconnect" ); self endon ( "death" ); self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); self waittill( "dpad_down" ); value = getDvarInt( "g_speed" ); value = value - 20; //decreases dvar value by 20(change 20 to whatever you want) setDvar( "g_speed", value ); self iPrintlnBold( "g_speed = ", value );
self thread decreaseDvar();
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self waittill( "dpad_down" ); value = getDvarInt( "g_speed" );
value = value - 20; //decreases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value );
self iPrintlnBold( "g_speed = ", value );
self thread decreaseDvar();}
Ninja'd From http://www.se7ensins.com
DJ Flipper- Rookie
- Posts : 18
Join date : 2010-02-16
Age : 32
Location : Outside the paradox of reality
Re: [Tutorial] Edit Dvars in-game
Because thats the point of being a ninja
Sir Jake- Admin
- Posts : 467
Join date : 2010-01-29
Age : 29
Re: [Tutorial] Edit Dvars in-game
does this work online or only split screen?
rwddrifter18- Come here often?
- Posts : 91
Join date : 2010-01-23
Age : 33
Location : califorina
Re: [Tutorial] Edit Dvars in-game
Online with a Jtag
Sir Jake- Admin
- Posts : 467
Join date : 2010-01-29
Age : 29
Re: [Tutorial] Edit Dvars in-game
can u teech meee plzzzzzzzzzzz GT Mattyyy I
natznutz- Newbie
- Posts : 1
Join date : 2010-03-14
Re: [Tutorial] Edit Dvars in-game
Dont even kno wat a D-var is kinds confused
Sir SW@GG@- Mod
- Posts : 286
Join date : 2010-03-14
Age : 30
Location : ChinaTown
Re: [Tutorial] Edit Dvars in-game
haha like the commands of what u want to do
Sir Jake- Admin
- Posts : 467
Join date : 2010-01-29
Age : 29
Re: [Tutorial] Edit Dvars in-game
Yo Ginger do u kno how to fo the teleport mod cuz ifu can inv Chillax DC. It would be much appreciated
Sir SW@GG@- Mod
- Posts : 286
Join date : 2010-03-14
Age : 30
Location : ChinaTown
Re: [Tutorial] Edit Dvars in-game
Nah i dont bro sorry
Sir Jake- Admin
- Posts : 467
Join date : 2010-01-29
Age : 29
Similar topics
» all about me
» Edit Any Webpage(EvEn Tastymods)
» If you want to get into a game!
» The new game type V.I.P
» Game Adder!
» Edit Any Webpage(EvEn Tastymods)
» If you want to get into a game!
» The new game type V.I.P
» Game Adder!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|