Urban Terror Forums: Jump style switcher - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Jump style switcher Rate Topic: -----

alternate normal jump and crouch jump

#1 User is offline   redneck ita Icon

Posted 20 May 2014 - 12:28 PM

hi there,

i wish i could have a key that bind space to normal jump or to crouch jump, now i have this:

Quote

bind SPACE +moveup
bind v "+moveup ; wait 5 ; +movedown"


and this do the trick, but tapping v is a bit difficult;

So i like to have that behavior:

- space do normal jump
- press v
- space do the crouch jump
- press v another time
- space do normal jump again

Is it possibile?
thanks all in advance, cheers :)

#2 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 20 May 2014 - 03:54 PM

here you go:

//keys:
bind SPACE "vstr jump_a";
bind v "vstr jump_toggle";

//action cvars:
set jump_a "vstr jump_a_normal";
set jump_a_normal "+moveup; wait 2; -moveup";
set jump_a_crouch "vstr jump_a_normal; +movedown"

//toggle cvars;
set jump_toggle "vstr jump_t_normal"
set jump_t_normal "ut_echo Normal Jumps; set jump_toggle vstr jump_t_crouch; set jump_a vstr jump_a_normal"
set jump_t_crouch "ut_echo Crouch Jumps; set jump_toggle vstr jump_t_normal; set jump_a vstr jump_a_crouch"



notes: there is a more advanced approach using more +vstr, but one shouldnt trust +vstr. only for simple things, like the crouch key.(see below)
point for your problem is:
important note:
if you use the crouch jump, you will STAY crouched after you release space
therefor you either need a key to disable the crouch or change your crouch key to also do this in addition to normal crouch
therefor you need one of the following sollutions:

//important: rebind crouch to end crouch 
bind C "+vstr crouch1 crouch0" 
set crouch1 "+movedown";
 set crouch0 "-movedown"; 
// alt sollution, without //+vstr 
bind c "+movedown" // no //-movedown here
bind x "-movedown" //you only need this after you used the crouch jump.




a good ment advice
you can do pretty awesome things with scripts (check out my signature),
but seriously: crouch jump manually. more reliable and gets you a better feeling of your movement.

//edit Iye:
let me know if some stuff isnt shown due to the code blocks, i cant see half of the scripts on my samsung tablet. but i guess its the firedox for android...

This post has been edited by Iye: 20 May 2014 - 04:02 PM

Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#3 User is offline   redneck ita Icon

Posted 20 May 2014 - 10:17 PM

Thanks for reply,

i try to put this on autoexec, included the modified crouch bind to stand back, but it doesn't work, after the first jump the player keep crouching and is not possible to make multiple jump in a row cause the +moveup command make it stand, not jumping, and so i need to press c like the normal crouch jump technique to achieve strafe-crouch-jumping like what you just say;

also i cannot strafe-jump in "normal jump version" cause my player after the first jump goes running even if i press space when touching ground... maybe the wait time need to be tweaked?

btw i don't need this script to complete the crouch jumping, i can do it easily, i figured it out to do some freak movement on the battle ground :D

i'll take a look at your other scripts, thanks a lot for suggestion :D

about the code window, i can easily read on chrome for desktop and for android by sliding it :)

EDIT: was thinking if there's a way to bind a key that bind? like:

Quote

bind v "bind SPACE +moveup ; wait 2 ; +movedown"

This post has been edited by redneck ita: 20 May 2014 - 10:24 PM


#4 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 21 May 2014 - 12:04 PM

ok... i thought you would like go stay crouched after pressing space.
so i would recommend

set jump_a_crouch "+moveup; wait 5; -moveup; wait 2; +movedown; wait 5; -movedown";
set jump_a_normal "+moveup; wait 5; -moveup";



this will end crouching automatically after 5 ticks. you could use more, but that would i\deny any other input, but viewing around. (so dont)

also there is still the option with the +vstr. you might check out the stuff i did for the shift key in my script (main.cfg, search for shifted keys section)
Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#5 User is offline   redneck ita Icon

Posted 21 May 2014 - 12:41 PM

still don't working, it affect the jump "feeling" so i choose to do crouch jump manually, thanks for support and ofc i'll take a look at your scripts :D

cheers :)

bullet_loaderAdvertisement

#6 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 21 May 2014 - 05:55 PM

View Postredneck ita, on 21 May 2014 - 12:41 PM, said:

it affect the jump "feeling" so i choose to do crouch jump manually

told 'ya xP.
But yeah. you would have to test out the timing one by one to get it suit your needs. and still it might bug your game.

View Postredneck ita, on 21 May 2014 - 12:41 PM, said:

thanks for support and ofc i'll take a look at your scripts :D

awesome. there is actually a full documentation on it. so you should get an idea of what it does.... if you dont get lost inside those toggles that toggle toggles that change toggle keys....... o.0
Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#7 User is offline   redneck ita Icon

Posted 29 May 2014 - 10:54 AM

i find a solution for my question... even if it look a bit dumb XD

i put this in autoexec:


//=========== Jump Style Toggle ======= by black label
set crouch_jump "exec crouch_jump.cfg ; ut_echo ^6CROUCH JUMP ; set jump_toggle vstr normal_jump"
set normal_jump "exec normal_jump.cfg ; ut_echo ^6NORMAL JUMP ; set jump_toggle vstr crouch_jump"
set jump_toggle "vstr normal_jump"
bind v          "vstr jump_toggle"



and then i create a file named "crouch_jump.cfg" in the same directory of autoexec with this line:

// bind space to crouch jumping

bind SPACE "+moveup ; wait 10 ; +movedown"


and another file named "normal_jump.cfg" that contains this:

// bind space to normal jumping

bind SPACE "+moveup"


this way by pressing the v key we can crouch jump with space, and by pressing v another time we have normal jump back :D

however, as Iye said above learn to crouch jump in the "normal way" have a better felling than this script, i suggest to use it just for fun and ofc take a look at your stamina: the using of jump+crouch is like having a kevlar!

cheers all and thanks again to Iye :)

#8 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 01 June 2014 - 08:42 PM

I actually dont get why this line
bind SPACE "+moveup ; wait 10 ; +movedown"
doesnt bug you in a "jumped" and crouched state....
(normaly +cmds only dont "bug" you if they are the only thing in the bind (doesnt apply to CVARs since they are no binds; therefor this should actually set you crouched (and "jumped")...)
Must be related to the fact, that it is played in its own cfg, as the only line in it.
idk.

but if it works.......
Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#9 User is offline   redneck ita Icon

Posted 03 June 2014 - 01:53 PM

View PostIye, on 01 June 2014 - 08:42 PM, said:

I actually dont get why this line
bind SPACE "+moveup ; wait 10 ; +movedown"
doesnt bug you in a "jumped" and crouched state....
(normaly +cmds only dont "bug" you if they are the only thing in the bind (doesnt apply to CVARs since they are no binds; therefor this should actually set you crouched (and "jumped")...)
Must be related to the fact, that it is played in its own cfg, as the only line in it.
idk.

but if it works.......


sorry for long time taken to reply.

this line work for me even in another script as:

bind v "+moveup ; wait 10 ; +movedown"


that i found by googling "urban terror crouch jump bind" but with space is really great and allow multiple strafe jump without "bugging" and even walljump! too LOL to see :D

#10 User is offline   YAY5637 Icon

  • Account: yay5637
  • Main tag: <PWC>
  • Country:
  • Joined: 28-February 10
  • Posts: 633

Posted 11 June 2014 - 11:48 PM

instead of exec'ing a cfg you can just rebind your key in the script itself

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942