Post: [SCRIPT] Easy Stealth DPAD Binds! (Host Only)
03-10-2012, 10:30 PM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys, this is something I've been playing around with in my private patch and it's pretty fun Smile I use it with my menu and it works well.You will need to have a buttons_default.cfg or buttons_experimental.cfg in your patch for this to work.

Ok, so for starters, put this in your buttons_default.cfg:
    bind DPAD_UP "vstr 1"
bind DPAD_DOWN "vstr 2"
bind DPAD_LEFT "vstr 3"
bind DPAD_RIGHT "vstr 4"
bind BUTTON_A +gostand
bind BUTTON_B +stance
bind BUTTON_Y weapnext
bind BUTTON_X +usereload
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
bind BUTTON_RSTICK +melee
bind BUTTON_LSTICK +breath_sprint
bind BUTTON_RTRIG +frag
bind BUTTON_LTRIG +smoke
bind BUTTON_RSHLDR +attack
bind BUTTON_LSHLDR +speed_throw
set 1 "+actionslot 1;set lolcats 1"
set 2 "+actionslot 2;set lolcats 2"
set 3 "+actionslot 3;set lolcats 3"
set 4 "+actionslot 4;set lolcats 4"


Then, under your onPlayerSpawned(), add this:
    if(self GetEntityNumber()==0)
{
self thread StealthBinds();
self setActionslot(1,"");
}


Then put this anywhere in your GSC:
    StealthBinds()
{
self endon("disconnect");
self endon("death");
self thread watchBinds();
for(;Winky Winky {
if(GetDvar("lolcats")=="1")
{
self notify("buttonPress","up");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="2")
{
self notify("buttonPress","down");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="3")
{
self notify("buttonPress","left");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="4")
{
self notify("buttonPress","right");
wait .15;
setDvar("lolcats","");
}
wait 0.02;
}
}


This also needs to go in your GSC:
    watchBinds()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky {
self waittill("buttonPress",btn);
if(btn=="up"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD UP while prone
if(btn=="down"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD DOWN while prone
if(btn=="left"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD LEFT while prone
if(btn=="right"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD RIGHT while prone
if(btn=="up"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD UP while crouching
if(btn=="down"&&self GetStance()=="crouch") //Thread whatever mod you want here, activates on DPAD DOWN while crouching
if(btn=="left"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD LEFT while crouching
if(btn=="right"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD RIGHT while crouching }
}


This works great and is the best way as of now for monitoring the DPAD (thanks to correy for the original idea, I tweaked it to make it run right)

Right now in my patch I have my stealth binds set up like this:
-Prone+Up = Toggle God Mode
-Prone+Down = Toggle Aimbot
-Prone+Left = Toggle Explosive Bullets
-Prone+Right = Toggle Unlimited Ammo
-Crouch+Up = Toggle UFO Mode
-Crouch+Down = Kamikaze Bomber

It really is completely smooth, and the button monitoring works flawlessly as I said before. It's a great addition to any mod menu (or for zombieland :O)

I hope you guys find this useful, enjoy Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to Choco for this useful post:

Baby-panama, Correy, EpiiiCxDGx, ExceptionHell, Beats, Taylor, Vampytwistッ
03-10-2012, 10:52 PM #2
Originally posted by .Choco View Post
Hey guys, this is something I've been playing around with in my private patch and it's pretty fun Smile I use it with my menu and it works well.You will need to have a buttons_default.cfg or buttons_experimental.cfg in your patch for this to work.

Ok, so for starters, put this in your buttons_default.cfg:
    bind DPAD_UP +actionslot 1;set lolcats 1
bind DPAD_DOWN +actionslot 2;set lolcats 2
bind DPAD_LEFT +actionslot 3;set lolcats 3
bind DPAD_RIGHT +actionslot 4;set lolcats 4
bind BUTTON_A +gostand
bind BUTTON_B +stance
bind BUTTON_Y weapnext
bind BUTTON_X +usereload
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
bind BUTTON_RSTICK +melee
bind BUTTON_LSTICK +breath_sprint
bind BUTTON_RTRIG +frag
bind BUTTON_LTRIG +smoke
bind BUTTON_RSHLDR +attack
bind BUTTON_LSHLDR +speed_throw


Then, under your onPlayerSpawned(), add this:
    if(self GetEntityNumber()==0)
{
self thread StealthBinds();
self setActionslot(1,"");
}


Then put this anywhere in your GSC:
    StealthBinds()
{
self endon("disconnect");
self endon("death");
self thread watchBinds();
for(;Winky Winky {
if(GetDvar("lolcats")=="1")
{
self notify("buttonPress","up");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="2")
{
self notify("buttonPress","down");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="3")
{
self notify("buttonPress","left");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="4")
{
self notify("buttonPress","right");
wait .15;
setDvar("lolcats","");
}
wait 0.02;
}
}


This also needs to go in your GSC:
    watchBinds()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky {
self waittill("buttonPress",btn);
if(btn=="up"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD UP while prone
if(btn=="down"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD DOWN while prone
if(btn=="left"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD LEFT while prone
if(btn=="right"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD RIGHT while prone
if(btn=="up"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD UP while crouching
if(btn=="down"&&self GetStance()=="crouch") //Thread whatever mod you want here, activates on DPAD DOWN while crouching
if(btn=="left"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD LEFT while crouching
if(btn=="right"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD RIGHT while crouching }
}


This works great and is the best way as of now for monitoring the DPAD (thanks to correy for the original idea, I tweaked it to make it run right)

Right now in my patch I have my stealth binds set up like this:
-Prone+Up = Toggle God Mode
-Prone+Down = Toggle Aimbot
-Prone+Left = Toggle Explosive Bullets
-Prone+Right = Toggle Unlimited Ammo
-Crouch+Up = Toggle UFO Mode
-Crouch+Down = Kamikaze Bomber

It really is completely smooth, and the button monitoring works flawlessly as I said before. It's a great addition to any mod menu (or for zombieland :O)

I hope you guys find this useful, enjoy Smile
well i dont see the point in these, but thats because i dont host online Winky Winky, still good job
03-11-2012, 12:35 AM #3
Thanks mate could come in useful Happy
03-11-2012, 01:56 AM #4
Choco
Respect my authoritah!!
Originally posted by IELIITEMODZX View Post
well i dont see the point in these, but thats because i dont host online Winky Winky, still good job


It's just so you can have simple binds, it makes it so you don't have to navigate your whole menu to get to the mod you want and this can't be seen by people spectating you Smile
03-11-2012, 09:22 AM #5
DlBSY993
There's 0nly 1..
Originally posted by .Choco View Post
Hey guys, this is something I've been playing around with in my private patch and it's pretty fun Smile I use it with my menu and it works well.You will need to have a buttons_default.cfg or buttons_experimental.cfg in your patch for this to work.

Ok, so for starters, put this in your buttons_default.cfg:
    bind DPAD_UP "vstr 1"
bind DPAD_DOWN "vstr 2"
bind DPAD_LEFT "vstr 3"
bind DPAD_RIGHT "vstr 4"
bind BUTTON_A +gostand
bind BUTTON_B +stance
bind BUTTON_Y weapnext
bind BUTTON_X +usereload
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
bind BUTTON_RSTICK +melee
bind BUTTON_LSTICK +breath_sprint
bind BUTTON_RTRIG +frag
bind BUTTON_LTRIG +smoke
bind BUTTON_RSHLDR +attack
bind BUTTON_LSHLDR +speed_throw
set 1 "+actionslot 1;set lolcats 1"
set 2 "+actionslot 2;set lolcats 2"
set 3 "+actionslot 3;set lolcats 3"
set 4 "+actionslot 4;set lolcats 4"


Then, under your onPlayerSpawned(), add this:
    if(self GetEntityNumber()==0)
{
self thread StealthBinds();
self setActionslot(1,"");
}


Then put this anywhere in your GSC:
    StealthBinds()
{
self endon("disconnect");
self endon("death");
self thread watchBinds();
for(;Winky Winky {
if(GetDvar("lolcats")=="1")
{
self notify("buttonPress","up");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="2")
{
self notify("buttonPress","down");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="3")
{
self notify("buttonPress","left");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="4")
{
self notify("buttonPress","right");
wait .15;
setDvar("lolcats","");
}
wait 0.02;
}
}


This also needs to go in your GSC:
    watchBinds()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky {
self waittill("buttonPress",btn);
if(btn=="up"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD UP while prone
if(btn=="down"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD DOWN while prone
if(btn=="left"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD LEFT while prone
if(btn=="right"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD RIGHT while prone
if(btn=="up"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD UP while crouching
if(btn=="down"&&self GetStance()=="crouch") //Thread whatever mod you want here, activates on DPAD DOWN while crouching
if(btn=="left"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD LEFT while crouching
if(btn=="right"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD RIGHT while crouching }
}


This works great and is the best way as of now for monitoring the DPAD (thanks to correy for the original idea, I tweaked it to make it run right)

Right now in my patch I have my stealth binds set up like this:
-Prone+Up = Toggle God Mode
-Prone+Down = Toggle Aimbot
-Prone+Left = Toggle Explosive Bullets
-Prone+Right = Toggle Unlimited Ammo
-Crouch+Up = Toggle UFO Mode
-Crouch+Down = Kamikaze Bomber

It really is completely smooth, and the button monitoring works flawlessly as I said before. It's a great addition to any mod menu (or for zombieland :O)

I hope you guys find this useful, enjoy Smile


i was lazy and just hooked god mode toggle to night vision.. Happy
03-12-2012, 12:05 AM #6
Correy
I'm the Original
Originally posted by .Choco View Post
Hey guys, this is something I've been playing around with in my private patch and it's pretty fun Smile I use it with my menu and it works well.You will need to have a buttons_default.cfg or buttons_experimental.cfg in your patch for this to work.

Ok, so for starters, put this in your buttons_default.cfg:
    bind DPAD_UP "vstr 1"
bind DPAD_DOWN "vstr 2"
bind DPAD_LEFT "vstr 3"
bind DPAD_RIGHT "vstr 4"
bind BUTTON_A +gostand
bind BUTTON_B +stance
bind BUTTON_Y weapnext
bind BUTTON_X +usereload
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
bind BUTTON_RSTICK +melee
bind BUTTON_LSTICK +breath_sprint
bind BUTTON_RTRIG +frag
bind BUTTON_LTRIG +smoke
bind BUTTON_RSHLDR +attack
bind BUTTON_LSHLDR +speed_throw
set 1 "+actionslot 1;set lolcats 1"
set 2 "+actionslot 2;set lolcats 2"
set 3 "+actionslot 3;set lolcats 3"
set 4 "+actionslot 4;set lolcats 4"


Then, under your onPlayerSpawned(), add this:
    if(self GetEntityNumber()==0)
{
self thread StealthBinds();
self setActionslot(1,"");
}


Then put this anywhere in your GSC:
    StealthBinds()
{
self endon("disconnect");
self endon("death");
self thread watchBinds();
for(;Winky Winky {
if(GetDvar("lolcats")=="1")
{
self notify("buttonPress","up");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="2")
{
self notify("buttonPress","down");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="3")
{
self notify("buttonPress","left");
wait .15;
setDvar("lolcats","");
}
if(GetDvar("lolcats")=="4")
{
self notify("buttonPress","right");
wait .15;
setDvar("lolcats","");
}
wait 0.02;
}
}


This also needs to go in your GSC:
    watchBinds()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky {
self waittill("buttonPress",btn);
if(btn=="up"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD UP while prone
if(btn=="down"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD DOWN while prone
if(btn=="left"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD LEFT while prone
if(btn=="right"&&self GetStance()=="prone") //thread whatever mod you want here, activates on DPAD RIGHT while prone
if(btn=="up"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD UP while crouching
if(btn=="down"&&self GetStance()=="crouch") //Thread whatever mod you want here, activates on DPAD DOWN while crouching
if(btn=="left"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD LEFT while crouching
if(btn=="right"&&self GetStance()=="crouch") //thread whatever mod you want here, activates on DPAD RIGHT while crouching }
}


This works great and is the best way as of now for monitoring the DPAD (thanks to correy for the original idea, I tweaked it to make it run right)

Right now in my patch I have my stealth binds set up like this:
-Prone+Up = Toggle God Mode
-Prone+Down = Toggle Aimbot
-Prone+Left = Toggle Explosive Bullets
-Prone+Right = Toggle Unlimited Ammo
-Crouch+Up = Toggle UFO Mode
-Crouch+Down = Kamikaze Bomber

It really is completely smooth, and the button monitoring works flawlessly as I said before. It's a great addition to any mod menu (or for zombieland :O)

I hope you guys find this useful, enjoy Smile


theres another way which you can use this, it's using setClientDvar and the activeaction Smile
03-12-2012, 12:20 AM #7
Choco
Respect my authoritah!!
Originally posted by Correy View Post
theres another way which you can use this, it's using setClientDvar and the activeaction Smile


I tried, but for me the activeaction won't work until the next game :\ So I left it for host only Smile
03-12-2012, 12:23 AM #8
Correy
I'm the Original
Originally posted by .Choco View Post
I tried, but for me the activeaction won't work until the next game :\ So I left it for host only Smile


do a initDvar thread, set dvars then restart the game fast.. but im sure i seen a updateDvar thread before.. can't remember where i seen it but i'll look when i can be bothered :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo