HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Exploding ball, flying needles

02-20-2007, 11:47 PM#1
Tiku
Im not sure how i would do this but, I need a way to make it so that a catapult launches a rock or cannon and once the rock or cannon hits the ground it explodes and 8 needles fly out in each direction,

So basically i need a trigger, Jass or Gui I dont care, or i need an idea of how to make it work...

I need this for my map, id really apreciate it! and ill include you in my map! =]

-Tiku
02-21-2007, 05:10 AM#2
ixmike88
You could use a regular catapult unit and have it play it's attack animation, then have a ball (with locust ability) with the animation as the model accelerate and deaccelerate until it hits floor (with height checks, roughly 128-110), then proceed to your needle stuff.

If you need a better explanation or a trigger let me know.
02-21-2007, 06:18 AM#3
Pyrogasm
Will the catapult's attack speed be changing at all?

If not, you could rig up a time check and see how long it takes for the catapult's projectile to reach the ground. Then, use a wait command (GUI) to wait the correct time, and do your 'create needles' at the point of attacking (which would be stored to a varible depending on what type of event fired).

However, I think ixmike88's solution would be more accurate.
02-21-2007, 02:17 PM#4
Tiku
Alright, thanks! both of you =] I have to go to school right now.. so once i get home ima try it out =]

But one more thing do you know how to make needles that will fly off to the sides?
02-21-2007, 02:27 PM#5
Falitian
create dummy casters at every x angles and have them fire off like a modified shockwave or something for simplicity.
02-21-2007, 09:59 PM#6
Pyrogasm
Use Impale. Because of the stun, a unit may only be hit by 1 impale at a time, which shockwaves overlap. Thus, if you had 2 shockwaves spawn at 90? and 135? that each did 100 damage, a unit at 105? would take 200 damage instead of 100. This does not happen with shockwave.
02-21-2007, 10:00 PM#7
Rising_Dusk
You could always trigger the whole thing.
But that might be out of the scope of what you wanted to do.

In any case, triggering the 'shockwaves' and just adding struck units to a group and only dealing damage if a unit isn't part of the group would work.
02-21-2007, 11:47 PM#8
Tiku
Well its going to be kinda difficult... because im not that advanced in Jass triggering yet, BUT im still going to attept this.. So, I should use impale instead of shockwave? And also, would it be better to make a unit instead? and just have the unit move towards an area and kill it if it collides into any other unit/wall? and i can damage the unit that the locust unit collided into?

Or should i just use triggering? Whatever you guys think would be much better, and have less lagg (if any)
02-22-2007, 12:04 AM#9
Pyrogasm
Triggering it would be cleaner, more accurate, and more flexible.

Using impales and some simple GUI-friendly triggers is unimaginably more easy.
02-22-2007, 12:17 AM#10
Rising_Dusk
Impales also flings units into the air. :P
Although, if the extra AOE damage at point blank isn't a *real* problem, seriously consider the carrion swarm approach.
02-22-2007, 12:21 AM#11
Tiku
Okay, i think ima try to go with the triggering, but ima have problems, if possible, can you guys help me out if my code isnt working? thanks =] oh and one more thing, for the trigger, do i use unit with the locust ability?
02-23-2007, 03:45 AM#12
Falitian
Quote:
Originally Posted by Tiku
Okay, i think ima try to go with the triggering, but ima have problems, if possible, can you guys help me out if my code isnt working? thanks =] oh and one more thing, for the trigger, do i use unit with the locust ability?

Yes and Yes