Is there a way to make a jumppad give more height if you hit it from higher up? also if you hit it faster you fly farther?
Thanks
Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
Jumppad question
Re: Jumppad question
the code is in src/fpsgame/entities.cpp - have fun 

This is not a url, clicking it is pointless
-
- Member
- Posts: 5
- Joined: February 26th, 2010, 6:07 pm
- Name: Travis
Re: Jumppad question
I dont really get it, im really new to this. Could you explain to me what it is line by line? Heres the code
Thanks in Advance
Code: Select all
case JUMPPAD:
{
if(d->lastpickup==ents[n]->type && lastmillis-d->lastpickupmillis<300) break;
d->lastpickup = ents[n]->type;
d->lastpickupmillis = lastmillis;
vec v((int)(char)ents[n]->attr3*10.0f, (int)(char)ents[n]->attr2*10.0f, ents[n]->attr1*12.5f);
d->timeinair = 0;
if(d->ai) d->ai->becareful = true;
d->falling = vec(0, 0, 0);
// d->vel = v;
d->vel.z = 0;
d->vel.add(v);
msgsound(S_JUMPPAD, d);
break;
}
Thanks in Advance
Last edited by Obsidian on March 10th, 2010, 4:03 pm, edited 1 time in total.
Reason: added [code] tags
Reason: added [code] tags
Re: Jumppad question

Reason: Moved to Sandbox Support as this is a support request.
うるさいうるさいうるさい!
github: https://github.com/damianb/
github: https://github.com/damianb/