Help with mod?

Post Reply
User avatar
brigadesoft
Posts: 54
Joined: Sun Nov 28, 2010 8:27 pm

Help with mod?

Post by brigadesoft » Wed Nov 09, 2011 6:27 pm

I've been messing around with aschar and aircontrols, and I've got some semblance of flight going on. Not all of the variables are commented, though, and after several hours, I'm having trouble getting it all to my liking.

As it stands, one has nigh unlimited jump fuel. I eliminated a check for y-velocity, so you can re-engage the jump even after you begin to fall, but I can't get any additional altitude out of it, just a glide. Does anyone know what I'm missing?

User avatar
Korban3
Posts: 4146
Joined: Tue May 31, 2011 9:14 pm
Location: 42nd St E, Hell

Re: Help with mod?

Post by Korban3 » Wed Nov 09, 2011 8:38 pm

Hmm, you would need to nullify the effects of gravity while flying. Something like applying a force upwards to balance gravity while you are airborne.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: Help with mod?

Post by Endoperez » Sat Nov 12, 2011 5:08 am

I think jump works like this:

1) when you press the jump key while you're on the ground, apply a force to push you up
2) if the jump key is kept pressed down, ignore gravity -> the same force pushes you farther than it would with gravity
3) once jump fuel runs out or jump key is released, gravity starts affecting the character, slowing his ascent and then turning it into a descent

If it works like that (it's been a while though, I might remeber it wrong), you need to apply upwards force to the character in addition to nullifying gravity.

User avatar
brigadesoft
Posts: 54
Joined: Sun Nov 28, 2010 8:27 pm

Re: Help with mod?

Post by brigadesoft » Sun Nov 13, 2011 6:12 pm

Thanks for the replies, guys!

Post Reply