Jumppads or flippads possible ?
Moderator: Core Staff
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Jumppads or flippads possible ?
Hi Guys,
Starting on a new map and I was wondering if you can make jumppads. When triggered they shoot you across the room.
Tried this with the door script (brushmodel/hinge) and made the "door" open in 0.01 sec but that doesn't work you do not get launched from it.
Maybe if I change the gravity on the map ???
Anyone have an idea if this is even possible
Starting on a new map and I was wondering if you can make jumppads. When triggered they shoot you across the room.
Tried this with the door script (brushmodel/hinge) and made the "door" open in 0.01 sec but that doesn't work you do not get launched from it.
Maybe if I change the gravity on the map ???
Anyone have an idea if this is even possible
-
- Core Staff
- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: Jumppads or flippads possible ?
It's possible by damaging the player, lev made jumppads in his new upcoming map for cod2.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Jumppads or flippads possible ?
It's possible I am going to post my source code here when I am at home.
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Jumppads or flippads possible ?
aha, thx m8, looking forward to it.
*edit* I found and made a jumppad, but when I look in thirdperson view is stutters like crazy..
*edit* I found and made a jumppad, but when I look in thirdperson view is stutters like crazy..
-
- CJ Spammer!
- Posts: 641
- Joined: April 20th, 2009, 8:29 pm
- PSN ID: mooselflies
- Location: Reading :<
Re: Jumppads or flippads possible ?
u used these jump pads on ib_glass .
doesn´t look like a jump pad from quake.
Also you cant move while you´r flying :S
doesn´t look like a jump pad from quake.
Also you cant move while you´r flying :S






-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Jumppads or flippads possible ?
Here it comes!
Basically you have one way to simulate the quake style bounce pads. You can't use the same function as in quake because this would include to use a SP-only function. But we can use the push back of an damage like grenades or panzerfaust that comes directly from beneath(normal vector) the player. Either you use radiusDamage() or playerFinishDamage().
When the player hits the trigger he gets damaged from beneath and pushed up. The height depends on the fps and trigger rate of the trigger (and trigger size). Use a loop with a predefined count and it will be more controlled.
http://www.xfire.com/video/22e915/
http://www.xfire.com/video/22b474/
http://pastebin.com/sLV2ZThj
to thread use this:
I attached the original jump pad texture, the surrounding texture in dds format and the sound.
Basically you have one way to simulate the quake style bounce pads. You can't use the same function as in quake because this would include to use a SP-only function. But we can use the push back of an damage like grenades or panzerfaust that comes directly from beneath(normal vector) the player. Either you use radiusDamage() or playerFinishDamage().
When the player hits the trigger he gets damaged from beneath and pushed up. The height depends on the fps and trigger rate of the trigger (and trigger size). Use a loop with a predefined count and it will be more controlled.
http://www.xfire.com/video/22e915/
http://www.xfire.com/video/22b474/
Code: Select all
/* Quake-Like Bounce-Jump
* Will use the finishPlayerDamage function to boost you up with full
* air control. (only one won't work, needs about 10-20)
* How to use:
* Make a trigger_multiple and give it a targetname then thread the
* trigger with this function. E.g. in a loop target thread bounce_jump()
*
* How is it possible to control the bounce:
* In order to control the height of the bounce you can vary with the power
* but this won't work really good. Though the bounce height depends also
* on the used fps.
*
* Try to work with a loop (see comments) and a specific count for your
* jump height. I made an array(lookup table) for my entities.
* entityToPower(self) is this lookup-table with a simple (swith-case)
*/
bounce_jump(){
while(1){
self waittill("trigger", player);
// player playsound("jump_pad"); // original quake sound
/* for(i = 0; i < entityToPower(self); i++){ */
power = 150;
player.health = player.health + power;
eInflictor = player;
eAttacker = player;
iDamage = power;
iDFlags = 0;
sMeansOfDeath = "MOD_PROJECTILE";
sWeapon = "panzershreck_mp";
vPoint = ( player.origin + (0,0,-1) );
vDir = vectornormalize( player.origin - vPoint );
sHitLoc = "none";
psOffsetTime = 0;
player finishPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime );
/* } */
// wait(0.5); // adjust this to your needs
}
}
to thread use this:
Code: Select all
bjArray = getEntArray("YOURTARGETNAME", "targetname");
if(isdefined(bjArray)){
for(i = 0; i < bjArray.size; i++)
bjArray[i] thread bounce_jump();
}
You do not have the required permissions to view the files attached to this post.
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: Jumppads or flippads possible ?
I love you.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Jumppads or flippads possible ?
Simple yet awesome.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Jumppads or flippads possible ?
I made a jumppad that way but you can't move in midair and the movement is stuttering like crazy when looking in thirdperson.KillerSam wrote:Maybe so, but it looks like that method would work - as you are just essentially moving the player to a series of points to simulate being thrown in the air.
Lev!athan thx m8, I'll give it a try but I'm not very good at scripting (made a few but no difficult ones).
And Pedsdude, it's been a while... yes. But I was always checkeing the site and forums (just didn't log in

-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Jumppads or flippads possible ?
add me on xfire or just ask here I can do the scripting for ya 

THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Jumppads or flippads possible ?
I just went through my script and found even a better version so that you don't need the count for the height anymore.
You only need a trigger multiple and and script_origin as a target a little bit above where you want to land. Don't make it to high. Now the script looks if you are high enough and stops if so.
You only need a trigger multiple and and script_origin as a target a little bit above where you want to land. Don't make it to high. Now the script looks if you are high enough and stops if so.
Code: Select all
bounce_jump(){
while(1){
self waittill("trigger", player);
tar = self.target;
if(!isDefined(tar))
return;
target = getEnt(tar, "targetname");
height = 0;
count = 0;
player playsound("jump_pad");
// iprintln("height: "+(target.origin[2]-player.origin[2])); // debug lines
while((player.origin[2] < target.origin[2])){
power = 75;
player.health = player.health + power;
eInflictor = player;
eAttacker = player;
iDamage = power;
iDFlags = 0;
sMeansOfDeath = "MOD_PROJECTILE";
sWeapon = "panzershreck_mp";
vPoint = ( player.origin + (0,0,-1) );
vDir = vectornormalize( player.origin - vPoint );
sHitLoc = "none";
psOffsetTime = 0;
player finishPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime );
height = player.origin[2];
count++;
// iprintln(target.origin[2]+" : " + player.origin[2]); // debug lines
wait(0.01);
if(player.origin[2] >= target.origin[2]){
break;
}
}
wait(0.5);
}
}
You do not have the required permissions to view the files attached to this post.
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Re: Jumppads or flippads possible ?
If you want it to be more freeform, check out the SetMoveSpeedScale command. I used this a while back with some trigger_multiples on some ramps. When the player sprints up them they're launched forward as they touch the script, and with a little bit more code you can have it revert back over time with a for loop as they fly. It's not exactly a "jumppad", but it definitely launches the player and allows somewhat controlled flight.
Who is online
Users browsing this forum: No registered users and 7 guests