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.

Jumppad question

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
|uB|Travis
Member
Member
Posts: 5
Joined: February 26th, 2010, 6:07 pm
Name: Travis

Jumppad question

Post by |uB|Travis »

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
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Jumppad question

Post by Hirato »

the code is in src/fpsgame/entities.cpp - have fun :)
This is not a url, clicking it is pointless
|uB|Travis
Member
Member
Posts: 5
Joined: February 26th, 2010, 6:07 pm
Name: Travis

Re: Jumppad question

Post by |uB|Travis »

I dont really get it, im really new to this. Could you explain to me what it is line by line? Heres the code


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
User avatar
Obsidian
Former Staff
Posts: 454
Joined: May 24th, 2009, 1:52 pm
IRC Username: Katana
Contact:

Re: Jumppad question

Post by Obsidian »

Topic moved
Reason: Moved to Sandbox Support as this is a support request.
うるさいうるさいうるさい!

github: https://github.com/damianb/
Locked