• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Making skill launch projectile directly forward + other related Qs

Status
Not open for further replies.
Level 10
Joined
Jun 7, 2008
Messages
420
Hi, I need to make a shockwave-like skill. Preferably the arrow should arc a little bit, say .12 or something.
I also need one for melee, to hit the unit directly in front of the character.
Need it to work such that when I press the hotkey for skill, projectile launches forward. Something like Shockwave but without having to target, just having it automatically fire in front of the caster.
Also, it needs to be obstructed by trees, doodads and other stuff. Don't want to be able to shoot through walls.

So these two are almost identical, one with about 1000 range and one with 150.
Also, they need to be reduced by armor, shockwave currently isn't.

Thanks!!
 
Level 6
Joined
Jul 24, 2008
Messages
180
I would suggest using the template 'Channel' skill under Hero abilities. Make it No Target, set it to visible, add your data (etc.). You would need to trigger your projectile. Hashtables or variables can be used, but the way to go would be move your projectile every 'X' seconds away from the caster at the angle he was facing. you can detect the if the projectile is in range of destructibles or units. (Not at my house now so can't make you an example.).
Here's something similar I wrote -http://www.hiveworkshop.com/forums/triggers-scripts-269/pull-spell-help-154625/#post1435211- but for the distance, dont divide by 10.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Allright, have no idea what you're talking about, are you talking dummy units? But then how to make the projectile work?
I will be out of town for a few days so I can wait, please get me an example will be great. Thanks.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Then... what about base armor? Anyways, shockwave. But problem is I want it to shoot forward without having to select a target/direction like normal shockwave does. To be more precise, I want fan of knives, where you click/press hotkey and its activated. However instead of everywhere, to just have shockwave fire straight instead. So fan of knives style activation, effect of an arrow hittin in a straight line. If thats not possible, I do have another combat system thats less twitch based but still quite prepared.
Any dummy skill method that doesnt lag up the whole map to do this?

Another even bigger problem, (its already apparent I'm making some sort of shooter) is to just have normal rightclicking attacks auto attack ground. In 3rd person view thats twitchbased enough for me. However how do I make the hero fire at any location thats rightclicked? I want to replace movement with an order to attackground. Also, no auto fire, to stop firing after each shot (though a stop order will do that I guess).

Thanks, thats about all the mechanics I need to iron out. If this works out it will be epic.
 
Status
Not open for further replies.
Top