shoot and sprint bind

Show-off with your scripting skills, and share configs.

shoot and sprint bind

Postby knock you out! on Thu Jul 22, 2010 8:34 pm

can somebody tell me how to bind sprint and shoot on mouse1 as i have tried but i also sprint when i just walk which i dont want been trying to get this for hours now .
User avatar
knock you out!
 
Posts: 2
Joined: Thu Jul 22, 2010 8:31 pm

Re: shoot and sprint bind

Postby txtr on Thu Jul 22, 2010 8:42 pm

    set AT2 "-attack; -sprint"
    set AT1 "+attack; +sprint"
    bind MOUSE1 "+vstr AT1 AT2"
              Image
User avatar
txtr
 
Posts: 64
Joined: Wed Mar 31, 2010 10:40 pm
Location: 0010101001010-01-10-11-00

Re: shoot and sprint bind

Postby knock you out! on Thu Jul 22, 2010 8:58 pm

now i cant shoot lol
User avatar
knock you out!
 
Posts: 2
Joined: Thu Jul 22, 2010 8:31 pm

Re: shoot and sprint bind

Postby suckinsyn on Thu Jul 22, 2010 9:39 pm

Code: Select all
seta x1 "+sprint; +attack"
seta x2 "-sprint; -sprint; -attack; -attack"
seta x3 "bind mouse1 +attack;-attack; bind capslock vstr x4"
seta x4 "bind mouse1 +vstr x1 x2; bind capslock vstr x3"
bind capslock "vstr x3"
User avatar
suckinsyn
 
Posts: 5
Joined: Mon May 03, 2010 12:40 pm

Re: shoot and sprint bind

Postby Suomi94 on Mon Jul 26, 2010 8:23 pm

txtr wrote:
    set AT2 "-attack; -sprint"
    set AT1 "+attack; +sprint"
    bind MOUSE1 "+vstr AT1 AT2"

just change "bind MOUSE1 "+vstr AT1 AT2" to "bind MOUSE1 "+vstr AT2 AT1" and it should work. the plus (+) in front of the command means it will activate it :p and minus (-) means it will disable it :>
User avatar
Suomi94
 
Posts: 8
Joined: Fri Dec 11, 2009 11:02 pm

Re: shoot and sprint bind

Postby txtr on Mon Jul 26, 2010 9:37 pm

change "bind MOUSE1 "+vstr AT1 AT2" to "bind MOUSE1 "+vstr AT2 AT1"


that would result in -attack (stop shooting) while holding mouse1 .. the script i posted was correct but this shithole is just too stupid . .
              Image
User avatar
txtr
 
Posts: 64
Joined: Wed Mar 31, 2010 10:40 pm
Location: 0010101001010-01-10-11-00

Re: shoot and sprint bind

Postby Guybrush on Tue Jul 27, 2010 7:04 am

/Mouse
//Attack///////////////////////////
bind MOUSE1 "+vstr mouse_a mouse_b"
set mouse_a "+attack; +sprint"
set mouse_b "-attack; -sprint"
///////////////////////////////////

Works fine. Copy & Paste it to your CFG.
User avatar
Guybrush
 
Posts: 40
Joined: Tue Jan 26, 2010 8:41 pm

Re: shoot and sprint bind

Postby Lukesor on Mon Aug 09, 2010 3:12 am

Suomi94 wrote:just change "bind MOUSE1 "+vstr AT1 AT2" to "bind MOUSE1 "+vstr AT2 AT1" and it should work. the plus (+) in front of the command means it will activate it :p and minus (-) means it will disable it :>


Moron, you put it backwards.
txtr was right, the first code given should have worked, the bit you need to look at is the mouse bind.

set AT2 "-attack; -sprint"
set AT1 "+attack; +sprint"
bind MOUSE1 "+vstr AT1 AT2"


Maybe put out differently you retards may be able to understand the simplest of codes.

set AT1 "+attack; +sprint" ///START ATTACK & START SPRINT///CLICK
set AT2 "-attack; -sprint" ///STOP ATTACK & STOP SPRINT///RELEASE
bind MOUSE1 "+vstr AT1 AT2" ///THE BIT YOU RETARDS DIDN'T LOOK AT >_<


vstr AT1 AT2
AT1 = START
AT2 = STOP

So how can AT2 AT1 possibly be the correct order? It's like landing a backflip before you jump.
Was that really so hard to understand?
Now, if you retards still don't understand, pm me, if I ever get the message I'll probably be happy to troll you.
User avatar
Lukesor
 
Posts: 29
Joined: Mon Apr 19, 2010 4:54 pm
Location: England, UK


Return to Scripts / Configs


Who is online

Users browsing this forum: No registered users and 2 guests