1 (edited by powachill4 2011-11-17 19:56:34)

Topic: [SOLVED] Jump more than 2 times?

Hello folks,

i was just looking in the teeworlds source for my own
interesting (or interestening? i dont know how to write this^^).

I just cant find the part handling the player input (server side), so i could
look where it handles the jump.
(is that correct at all?)

Well, i found something with events in... character.cpp and there is ResetInput(),
there it will reset the inputs as the name says.
And then there is something about an event (TickDefered()):
But that only creates the sound.

Is there any soloution for this?

And:
Please tell me if i went wrong somewhere^^


Greeez,
powachill4



#EDIT
After activating my brain, i just searched for input and after a short time i just found gamecore.cpp
I came on the idea to look there because i saw m_Core.Input and things like this and well...
I just searched for "core" in the directory and found this smile

#EDIT2
And uhm.. for everyone who wanted to know how i solved it:
Keep the m_Jumped = ~3 (this makes the client thinking that double jump is available).
Just put that into character.cpp in Tick():
m_Core.m_Jumped = ~3;
So, this will cause that you "cant jump from the ground", it will be like you "do a doublejump in the air".
So there is a little "more" boost when jumping from gound, this will be "removed" then.

SOLVED