HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Extra damage from higher ground

01-24-2007, 10:59 AM#1
lord_Turin
I was wondering if its posible to make archers deal extra damage when they shoot at enemies that are on a lower position, now im not talkin about heights with cliffs etc but with raise and lower. If someone can make this in JASS or anything, i'dd really like to have it for.. well every map i will make in the future cause it will add a lot more tactics to the game.

thanks already
01-24-2007, 12:37 PM#2
grim001
I would not recommend trying to use such a system in your map unless you want to learn a thing or two about JASS in order to modify or maintain it... you will probably need an AttackDetect-type system for this.
01-24-2007, 01:25 PM#3
Chuckle_Brother
Not to mention that this could be potentially unsafe when combined with the fact that it requires GetLocZ, and that can return startlingly different values from one player to another.

Meaning desyncs.
01-24-2007, 01:26 PM#4
grim001
I don't think GetLocationZ will ever desync unless you use local terrain deformations...
01-24-2007, 07:13 PM#5
lord_Turin
sounds like a whole lot of work that has a 80% chance to crash the game
nvrm :P
01-24-2007, 11:03 PM#6
Hydrolisk
Yeah, umm, I don't get how getting the Z location is hard/bad/anything negative. It seems perfect.
01-24-2007, 11:19 PM#7
Ammorth
GetLocationZ() is safe, except for local terrain deformations. It has been reported that thunderclap creates a local deformation, depending on the player's spell detail. As long as you make sure the terrain is the same for all players, it should work fine.