nightvision and lasterforce
thread in in the doDvars in a other thread you like.
Code:
self thread Nightvision();
self thread Laserforce();
nightvision
Code:
Nightvision()
{
self endon("disconnect");
self endon("death");
while(1) //loop
{
self notifyOnPlayerCommand("N", "+actionslot 1"); //actionslot
self waittill("N");
self VisionSetNakedForPlayer( "default_night_mp", 0 ); // nightvision
self iPrintlnBold("Night vision on"); // text shows nightvision on
self waittill("N");
self VisionSetNakedForPlayer( "default", 0 ); // normal vision
self iPrintlnBold("Night vision off"); //text shows nightvision off
}
}
Code:
Laserforce()
{
self endon("disconnect");
self endon("death");
while(1) //loop
{
self notifyOnPlayerCommand("3", "+actionslot 3""); //actionslot
self waittill("3");
self setclientdvar("laserForceOn", 1); // laserforce on
self iPrintlnBold("Laser force on"); // text shows if laser force on
self waittill("3");
self setclientdvar("laserForceOn", 0); //laserforce of
self iPrintlnBold("Laser force off"); // text shows if turned off
}
}
keybinds you can use:
Code:
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+gostand"
bind 3 "+actionslot 3"
bind 4 "+actionslot 4"
bind 5 "+actionslot 2"
bind A "+moveleft"
bind C "toggleprone"
bind D "+moveright"
bind E "+activate"
bind F "+melee"
bind N "+actionslot 1"
bind Q "+smoke"
bind R "+reload"
bind S "+back"
bind U "chatmodeteam"
bind V "+talk"
bind W "+forward"
bind Y "chatmodepublic"
bind CTRL "togglecrouch"
bind SHIFT "+breath_sprint"
bind MOUSE1 "+attack"
bind MOUSE2 "+speed_throw"
bind MOUSE3 "+frag"
bind MWHEELDOWN "weapnext"
bind MWHEELUP "weapnext"