LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   JA Coding (http://www.lucasforums.com/forumdisplay.php?f=539)
-   -   A fast code (http://www.lucasforums.com/showthread.php?t=211179)

duster 10-04-2012 10:07 PM

A fast code
 
Hello.Does someone know how to bind with one key long jump?(forward+force speed+jump)?

I tryed
Code:

bind Y "+forward" ; wait ;"force_speed" ; wait ; "+moveup"
And i tryed without the "wait".
Help would be apreciated.:)

Tinny 10-08-2012 08:38 PM

I think wait needs a time period, like wait .5 or .05.

duster 10-08-2012 10:09 PM

Quote:

Originally Posted by Tinny (Post 2820782)
I think wait needs a time period, like wait .5 or .05.

Thanks for the help but it still doesn't work.I don't know will it help but when i execute my .cfg file the character automacly jumps as if im holding the jump button.And when i press the binded key the character mooves forward and nothing else.I also observed that when i press right CTRL the character again gumps the same way.Don't ask me why.There must be a way.

katanamaru 10-10-2012 02:13 PM

Try this:
bind Y "+forward; wait 1; force_speed; wait 1; +moveup"

Also try chaning the order. speed, forward, up; or speed, up, forward.

duster 10-10-2012 04:13 PM

Quote:

Originally Posted by katanamaru (Post 2820880)
Try this:
bind Y "+forward; wait 1; force_speed; wait 1; +moveup"

Didn't work.Same thing as above.

Quote:

Originally Posted by katanamaru (Post 2820880)
Try this:
Also try chaning the order. speed, forward, up

As soon as i pressed the buton it worked but i coudn't stop walking.And after that just swiched force speed i think.

Quote:

Originally Posted by katanamaru (Post 2820880)
or speed, up, forward.

Exactly as speed, forward, up.And again the same result.Ughhh.I'm not ready to give up.It has to be possible.

katanamaru 10-11-2012 03:28 PM

So one version made the character do the correct jump, but after the jump the character kept walking forward?

If that is the case put a [B]wait 1[B] after the +forward and +up.

duster 10-11-2012 05:19 PM

Quote:

Originally Posted by katanamaru (Post 2820964)
So one version made the character do the correct jump, but after the jump the character kept walking forward?

If that is the case put a [B]wait 1[B] after the +forward and +up.

Code:

"force_speed; wait 1; +moveup; [B]wait 1[B]; +forward; [B]wait 1[B]"

and

"force_speed; wait 1; +forward; [B]wait 1[B]; +moveup; [B]wait 1[B]"

Same result.I also tryed:
Code:

"force_speed; wait 1; +moveup; [B]wait 1[B]; +forward"
"force_speed; wait 1; +moveup; wait 1; +forward; [B]wait 1[B]"
"force_speed; wait 1; +forward; wait 1; +moveup; [B]wait 1[B]"
"force_speed; wait 1; +forward; [B]wait 1[B]; +moveup"

And like every time after the long jump is performed i began to walk and the crouch and meditate cheat turns into jump.Every time i press the binded key force speed turns on.

katanamaru 10-12-2012 01:56 PM

Okay the wait 1 command might be messing things up.

Does anybody know the command to release a button?

Fighter298 10-21-2012 01:03 AM

Quote:

Originally Posted by katanamaru (Post 2821018)
Okay the wait 1 command might be messing things up.

Does anybody know the command to release a button?

Do you mean something like
Code:

-forward
?

katanamaru 10-23-2012 04:40 PM

Okay. If "+" means push the button and "-" means release the button, then try this:

bind x "force_speed; +moveup; +forward; wait 5; -moveup; -forward"

duster 10-24-2012 10:31 AM

Quote:

Originally Posted by katanamaru (Post 2821647)
Okay. If "+" means push the button and "-" means release the button, then try this:

bind x "force_speed; +moveup; +forward; wait 5; -moveup; -forward"

Yeah!It worked!Thanks to all for helping.And specialy thanks to katanamaru for often helping me out and sticking here.

katanamaru 10-24-2012 01:50 PM

Glad it worked out for you!
Thanks Fighter298 for that piece of information!


All times are GMT -4. The time now is 07:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.