There area few trigger-based leap abilities around, but I hate doing the math, so I fiddled around and came up with this data-only solution. One caveat: if the landing zone isn't completely clear, the leaping unit will be teleported to the nearest clear spot - I haven't taken the time to figure out a way around this yet.
The basic idea is that a missile is fired from the casting unit that looks like the unit itself. The casting unit's actor is hidden for the duration of the missile's flight, and then teleported and revealed at the impact point of the missile. I'm just going to stick with the necessary bits, assuming you know how to do things like set up damage and other effects of the leap.
Let's add leap to the zealot using a basic AoE knockback as the impact effect.
Not much to say, pretty standard stuff. (I also tacked a validator on there so that it doesn't make buildings jump - not important for the leap effect itself though)
Effect: Knocked Back (Apply Force) with type: Apply Force
Behavior: Knocked Back with type: Buff
Height Time: Start: 0.45, Stop: 0.45
Effect - Periodic:Knocked Back (Apply Force)
Effect: Knocked Back (Apply Behavior) with type: Apply Behavior
Effect: Leap Impact (Search) with type: Search Area
Effect:Knocked Back (Apply Behavior)
The clone is a basic missile, using the leaping unit's model.
No, but there may be a way to transfer damage from the dummy unit to the caster unit with a behavior. This is a pretty bare-bones example, just for the basics of doing a data-based leap. (I think there are still some issues to work out with a unit already under attack using the ability)
That's assuming your target location is clear to begin with. What you can do is make a behavior that suppresses collision and give this to the leaper and all units around the leap location right at the time of teleporting. They'll all be in their correct location and sort out the collision problem when the behavior wears off.
I tested this, and the teleport effect seems to ignore the collision suppression flag in the behavior and still looks for a clear landing spot. I did however manage to work around it by adding obscene speed bonuses to the behavior, and issuing a move order to the leaper. It's hacky, but it works in most cases, except for the occasional teleport quirk near cliffs, putting the leaper on a different cliff level from the target. I kept the teleport a part of the ability to maintain the ability to jump on/off cliffs, but if cliffs aren't an issue, it could easily be replaced completely with the move order.
That's strange, I have an ability that swaps the location of two units using that no collision thing and it seems to work for that. Eventually you'll find a full-fledged solution, I'm sure.
Edit: Actually, Riley might've been on to something. What if you teleport the invisible hero first and then send the leaper missile to the location of the hero instead of the target point of the ability? It may not still go exactly where you want it, but at least the missile won't land and spawn the hero somewhere else. You'd have to launch the missile from something else other than the hero and I don't have experience with that, but I imagine it's possible. Launch Location = Source Point instead of Source Unit? Not sure if the Source Point is where the ability was first cast from or if it's always where the caster is at.
I remember that, and having tested both I'd have to say this one's purtier. That's mostly because of the parabolic mover, but it's cool to see implemented nonetheless. Two things I noted, btw:
1) I made my own parabolic mover and copied the values you listed here into them. It had some strange results occasionally, so I copied the mover from your map exactly and plugged that in, worked much better. Not sure what the difference was, but I don't think it was input error. I checked doubly!
2) The suppress collision DOES work. I was so baffled that it wouldn't that I tried it myself. Make sure that you've applied it to the leaping unit and all units near the target area BEFORE the teleport happens. Other than that I'm not sure what could mess it up!
Again, thanks. This is a really cool and simple non-trigger leap solution.
Those are both kind of strange. It's quite possible that I missed out some values for the mover - I wrote this up after the fact, not during the process. I'll try the collision suppression again. I may have only been applying it to the leap unit. Glad you found it useful/interesting, and thanks for the input!
Awesome function, i added it into my map, and the jumping and everything work fine, but... my *missile* is a white orb instead of the model, i dont know where to add that in, i know it should be stupidly easy, but i cant figure it out haha *i am kinda tired atm >.<; and inexperienced... bad combo*
Also, like i said, i am new (this would be my 4th day with using ANY editor ever) how would i add an effect like:
Adds a buff that increases damage by 2x for 1 hit, and only lasts for like 1 second (so someone cant leap and just hold onto the charge)
If you can answer those 2 q's i'll subscribe to your newsletter! :P
Peace for now :)
PS/Edit; I sent you a copy of my map via PM as im sure that makes it easier to find out what specifically is missing wrong
Just a suggestion, but for the leap you could try altering Psionic Shockwave ability from Hybrid Maar to see if you can make that do what you want. It applies a force and has effects to alter height, it looks like a jump. It avoids the whole missile thing, not sure about other unintended effects.
Have you considered applying the force effect BEFORE the teleport? The collision buff doesn't do a lot for you given that you're still landing at locations other than where you clicked. You could toss the buff and change the missile impact to a persistent that searches as the initial effect and teleports as the periodic effect (0.1s delay). The result would be that the missile would clear out the area and THEN bring your unit to directly where you clicked.
I'm using this approach and have a problem... Sometimes the missile doesn't hit the target point. It simply disappears and the impact search is never executed. This often happens when you jump into a group of many enemies.
Rollback Post to RevisionRollBack
Frontline gameplay video - heroes & arenas.
Frontline review/commentary (not made by me).
Fringe map page - map file available to download.
Fringe class presentation, with awful voice commentary!