HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help, grenade spell

03-25-2004, 04:41 AM#1
Chryosmere
I need to know how i can make a spell so you pick where to throw the grenade then a grenade gets thrown out of the mountain kings hand with the throw animation then it lands and blows up with area of effect. :D
03-25-2004, 06:50 PM#2
ThyFlame
Get the demolitions pack out of downloads > spells, it contains a grenade spell. Add a simple play animation with a slight wait, et voila.
03-26-2004, 03:49 AM#3
Chryosmere
I can't find the demolitions pack under spells... Are you sure its there?
03-26-2004, 04:34 AM#4
sc_freek
make a summoning spell(sentry ward, serpent ward, tornado, etc) and make it summon an invisible unit(Invisible Unit1). Then make another invisible unit(Invisible Unit2) with a far ranged seige attack, a long cooldown(more than 2 seconds at least), and your grenade projectile for its missile art. Then change its area of effect damage stats(should be above regular attack stuff) For the triggers, do something like this:
Events
- Unit spawns a summoned unit
------------------------------------
Conditions
- (Unit type of(summoned unit)) equals Invisible Unit1
- (Unit type of(summoning unit)) equals (Your Unit)
------------------------------------
Actions
- Create 1 Invisible Unit2 at (position of (Summoning Unit)) facing (position of (Summoned Unit))
- Order (Last Created Unit) to Attack Ground (position of (Summoned Unit))
- Add a 2 second Generic expiration timer to (Last Created Unit)
03-26-2004, 06:11 AM#5
Chryosmere
k thanks :D

how do u think i can make a cool exploding effect though? i cant predict how far the grenade will go so i cant wait seconds
03-26-2004, 11:11 AM#6
Grater
Actually it's better to use like serpent ward, and actually summon the "grenade" unit, storing the target point in a variable. IE

Events
- Unit spawns a summoned unit
------------------------------------
Conditions
- (Unit type of(summoned unit)) equals Grenade Firing Unit
------------------------------------
Actions
- Set TempPoint = Location of (Summoned Unit)
- Hide (Summoned Unit)
- Move (Summoned Unit) to (Position of (Summoning Unit))
- Order (Summoned Unit) to Attack Ground (TempPoint)
- Add a 2 second Generic expiration timer to (Summoned Unit)

This way you only need one dummy unit :)

edit: Making a cool effect (like flamestrike) is a bit involved and requires the use of plauge ward, I might make a demo map tommorow and post it in the repository.
03-26-2004, 12:02 PM#7
Vexorian
I once made a grenade spell, it even had arc and that stuff, but it requires my caster system, if you are interested see the link in my sig.
03-26-2004, 01:03 PM#8
Kamux
Maby you can create some kind of loop to make the arc of the grenade by setting flying height.
03-26-2004, 10:45 PM#9
Chryosmere
cant download your caster system.. its a broken link
03-26-2004, 11:05 PM#10
Vexorian
It is fixed now
03-27-2004, 01:09 AM#11
sc_freek
Quote:
Originally Posted by Chryosmere
k thanks :D

how do u think i can make a cool exploding effect though? i cant predict how far the grenade will go so i cant wait seconds
make it so that when the invisible summoned unit dies, create the special effects and do the damage with triggers or with the AOE damage upon death spell.
03-28-2004, 05:35 AM#12
Chryosmere
Lord Vexorian, i opened the file but there is nothing in it...
03-28-2004, 02:20 PM#13
Vexorian
The downloads section is buggy at this time due to the mirroring with wc3c, sorry.