Sorry I’m an absolute newbie in scripting…
Can anyone tell me if its possible to somehow make it such that sprint is on everytime I press the strafe keys?
Thanks!
Sorry I’m an absolute newbie in scripting…
Can anyone tell me if its possible to somehow make it such that sprint is on everytime I press the strafe keys?
Thanks!
well the strafe keys are really just left right and forward, you could bind thopse 3 keys to also +sprint when they are pressed BUTTT it would mean even if you werent strafign you would be using up stamina so its best really just to bind an easy to reach sprint key like MOUSE4 then you can click it easy enough when strafin …
LOL WTF? Since when is forward STRAFING? :???: Strafing = moving left and right ( as opposed to turning left or right ).
Apocalypse, ATM you’ll have something like this in your config ( or you can just type these into the console, with a ‘/’ at the start )::
bind a “+moveleft”
bind d “+moveright”
bind SHIFT “+sprint”
( assuming you’re using WASD and Shift is your sprint key )
To have it so that you auto-sprint whenever you strafe, just change those first two lines to:
bind a “+moveleft;+sprint”
bind d “+moveright;+sprint”
…note the ‘;’ character allows you to stack commands on one key press. That should do it :).
also your gonna need to press sprint as soon as you want to start strafing anyway, as you cant just press W then do the enitial jump without using sprint then each time you press left and right you sprint, doubt it would work everyone knows you have to keep sprint held down for the whole time
No it won’t, as when you assign more than one “+” command to a key it doesn’t automatically execute the “-” version when you release it (as is the case if you bind a single “+” command to a key). In other words, with those binds pressing “a” would make you move left, but you’ll continue moving left even when you release the key (until you hit a wall or the side of the map etc.)
The correct way to do it is this:-
set leftdn “+moveleft; +sprint”
set leftup “-moveleft; -sprint”
set ritedn “+moveright; +sprint”
set riteup “-moveright; -sprint”
bind a “+vstr leftdn leftup”
bind d “+vstr ritedn riteup”
But I wouldn’t recommend it as you’ll use your stamina bar just in everyday movement when you don’t need to and find you don’t have any when you do need it.
He’s not talking about strafe-JUMPING dude. He’s talking about STRAFING.
sigh
Interesting, cheers - amazing I never came across that limitation in any of my scripts :o.
Maybe it’s different in ET.
The +vstr command was introduced in the OSP mod for RTCW at version 0.8x because bind x “+command1; +command2” doesn’t work in vanilla RTCW. I assumed the same was true for ET.
If ET now supports automatic execution of the -command variant when more than one +command is bound to a key, then your original version will work. However I have written some scripts for ET using +attack with additional commands bound to a key, and releasing the key doesn’t stop the gun firing.
Think I’ll have to test this sometime as it would make certain types of script a damn sight simpler to write.
No, you’re right, Kendle. I just happened to be messing with a script 2 minutes ago to give me a little squirt of sprint every time I jump, just to see if I liked it, and I can verify that as of this writing, ET needs you to -command if multiple +commands are done in the same key bind. In fact, I usually also need a short wait command in between stuff. That’s why the vstr method is best, like you said.
No I didn’t. I simply verified that he is correct in that multiple commands in a single bind must be “turned off” if they are “turned on”. Kendle said that “if” the previous poster was correct (which he was not), then his method would work. I was telling Kendle that there is no need to concede the possibility that he is wrong, because he is not.
Get it? Got it? Good.
Hehe, it would work well… but there’s a bug. Look at Kendle’s post - his version fixes the bug.
Please excuse me while i totally piss off some peopele!
bind a “+moveleft;+sprint”
bind d “+moveright;+sprint”
that WILL NOT WORK!!! If you were to press “a” after you execed a config with that in it you would lock it moving left and sprinting.
Atleast i think thats right. Its just easier to make a sprint toggle or somthing…like this
bind space vstr sprinttog
set sprinttog vstr sprinton
set sprinton “+sprint; set sprinttog vstr sprintoff; echo Sprinting”
set sprintoff “-sprint; set sprinttog vstr sprinton; echo Running”
That should work fine
Kendle, btw, there is now keydown and keyup commands like there was in Q1 HL and q3f
Tis a real shame! I wanted them :’(
bandit5K, do you not read posts?
We’ve already established that KingJackeLs script wouldn’t work,
and why
and I’ve already posted a version that would
and there is a kind of keydown / keyup construct in ET (which you’d know if you’d read the previous posts). It’s called +vstr and I demonstrate how it’s used earlier in this thread.
(<-- in case you think I’m being deliberately pedantic)
bind a “+moveleft;+sprint”
bind d “+moveright;+sprint”
that won’t work!!! because when you…
lol only joking =P
ffs use yer fingers, never did understand or use these stoopid scripts fikin 4ward+left or right+ sprint, whats so fekin hard aboot that eh ?
the guys obviously pissed cos he cant jump the wall on oasis ffs get a life
LOL, niether can I, but I only tried it for 5 minutes and got tired of running back around to the stairs to get back on the roof. I’m too lazy for all that crap. I can get on the roof of the second Axis spawn on Radar, and I can jump onto the Allies command post garage on Fuel Dump, but that’s about the extent of my trickjumping patience.
If you want to practice stuff like this, start up the map locally and you can muck about with the settings to get to places quickly.
Example:
[ol][li]Start ET, drop console & type /devmap the_map_name
[/li][li]Go and try your trick jump
[/li][li]type in /g_gravity 100 to the console and low-grav jump back to the starting position
[/li][li]type /g_gravity 800 to get back to normal
[/li][li]repeat[/ol]
[/li]
You can also fart about with g_speed to the same effect. Bind some of those to keys for faster toggling
NOTE: if you type in the command on it’s own (e.g. /g speed) without any values ET will tell you the current and default values, so you can get back to normal (the default).