Jump Height Modifier
I just meshed up this lil code to increase the players jump height when he jumps,
I was wondering if this would work (cant test it myself for the moment). (raising the players jump height with lowering the gravity for him is not an option.) PHP Code:
|
Re: Jump Height Modifier
You have the right idea by increasing velocity. Your code will need more work, though.
|
Re: Jump Height Modifier
velocity[2] = velocity[2] * (0.1 * levelvariable)
that will actually decrease the jump height if levelvariable < 10 :D |
Re: Jump Height Modifier
Quote:
and its been a while since i've seen you, sup? :) Quote:
did the first test yesterday too and i noticed that when you jump once, by the time you press the jump button again while still going upward from previous jump, the velocity is already set as a downard velocity ^^ so i just killed myself when i jumped and jump again :wink: pretty strange physics :) |
Re: Jump Height Modifier
Quote:
|
Re: Jump Height Modifier
Quote:
anyway to get back to the topic, this is what i have now, (it's going to be an rpgx upgrade) The jumps height are not modified, when i used client_prints to debug none of the prints came up so i think its not working, as how it is coded now only the jumps after the first jumps should increase the jump height, but i dont think its working and the first jump should aslo be modified, any help? tryed with fakemeta, didnt work now with engine and it still doesnt work :s http://pastebin.com/YCMEp8ft |
| All times are GMT -4. The time now is 08:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.