|
06-17-2009, 09:52 PM | #1 |
Pub Allstar!
Beta Tester
Join Date: Aug 2008
Class/Position: under en kvinna Gametype: Capture the Flag Affiliations: Eternal Order, Must be h4x, Mono's happy funtime. Posts Rated Helpful 0 Times
|
bounce/jump pad question
I'm trying to create a jump pad for my latest map, and I can't seem to get it to function how I like.
I have a cylindrical brush textured with tools/trigger, and tied to a trigger_push. The brush is the full height of the jump I'd like the player to make. push direction is "up" and push force is 1000u/s Technically, it works, but not how I expect it to. I would like it to function like the pads at the entrances to the bases in ff_aardvark, where you touch it and you're off. At the moment, it requires a jump to get going, like the fan shaft in ff_bases. Can anyone point me in the right direction? Thanks. |
|
06-17-2009, 10:28 PM | #2 |
[DGAF]
Join Date: Apr 2009
Posts Rated Helpful 1 Times
|
heh, put a sign that says JUMP!!
|
|
06-17-2009, 10:43 PM | #3 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
You could use SetVelocity rather than a trigger_push for precision pushing.
Code:
------------------------------------------ -- jump triggers ------------------------------------------ base_jump = trigger_ff_script:new({ pushx = 0, pushy = 0, pushz = 0 }) -- push people when they touch the trigger function base_jump:ontouch( trigger_entity ) if IsPlayer( trigger_entity ) then local player = CastToPlayer( trigger_entity ) player:SetVelocity( Vector( self.pushx, self.pushy, self.pushz ) ) end end -- up push jump_up = base_jump:new({ pushx = 0, pushy = 0, pushz = 1000 })
__________________
#FF.Pickup ยค Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington Last edited by squeek.; 06-17-2009 at 10:43 PM. |
|
06-18-2009, 02:07 AM | #4 |
Community Member
Server Owner
Beta Tester Forum Moderator Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout Gametype: AvD Affiliations: :e0:Eternal Order Leader Posts Rated Helpful 12 Times
|
SetVelocity ftw...
__________________
|
|
06-19-2009, 02:27 PM | #5 |
Pub Allstar!
Beta Tester
Join Date: Aug 2008
Class/Position: under en kvinna Gametype: Capture the Flag Affiliations: Eternal Order, Must be h4x, Mono's happy funtime. Posts Rated Helpful 0 Times
|
Used a func_door to raise my person off the ground, at which point the push takes over!
|
|
06-20-2009, 03:58 PM | #6 |
Sniper Fodder
Join Date: May 2009
Location: Canada
Class/Position: Engineer - Defense/Medic - Offense Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Put it slightly below ground.
The player will drop onto it at which point they will get "pushed" in the direction you want. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|