Speed boost lua
For the purposes of my new map, I want to create a boost/lift that shoots people from the corners of my map upwards and towards the center. So a 45 degree angle horizontally and depending on what works best, somewhere between 45-75 degrees vertically.
I've been using this code until now: Code:
base_jump = trigger_ff_script:new({ pushz = 0, pushx = 0 }) |
There are many ways to approach this. Here are two:
1) Give each trigger a different name. This is what I do in my ricochet map: Code:
base_jump = trigger_ff_script:new({ pushx = 0, pushy = 0, pushz = 0 }) Code:
local base_launch_towards_target = trigger_ff_script:new({ horiz_push = 0, vert_push = 0, target = "" }) EDIT: Didn't think the target code through; made some minor adjustments so that the vertical push is constant rather than influenced by the difference in height between the player and the target |
awesome! thanks
|
mmm or use a trigger_push brush and set angles/speed ?
new map moto ? :thumbsup: |
That doesn't seem to work Headz. Plus, then I have to deal with the speed clamping errors (which can be removed via a plugin, but still)
|
All times are GMT. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.