HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Homing Missile Problem

10-18-2007, 06:06 AM#1
Dil999
(Don't worry about the spell request thread, it has not been forgotten)
I set to work about an hour ago on a homing missile system, as a companion for my Chain Lightning System on the Hive. Anyways, the missiles, when using a formula to decide weather to move the missiles either left or right, go crazy. I'm not exactly sure how to describe it - they home towards the target, but then will circle around after reaching him, and if they go at 0 degrees, they go straight and do not change their angle. Attached is the map, because I don't think my description will do.
Attached Files
File type: w3xMissile System.w3x (38.0 KB)
10-19-2007, 10:24 PM#2
Dil999
Er.. bump?
10-19-2007, 11:51 PM#3
TaintedReality
Posting the code instead of the map = more replies :).
10-20-2007, 12:37 AM#4
Dil999
Its impossible for me to describe the problems that are occurring without posting the map...
10-21-2007, 11:10 PM#5
Blackroot
Then post both .
10-21-2007, 11:48 PM#6
legend_tisman
Expand JASS:
so far it seems the problem has been solved so ill give up trying to fix it ><
10-22-2007, 12:59 AM#7
Ammorth
Fixed your problem. Not sure what you were doing, but its working now. Changed the code to work with angles between -180 and 180. I find these angles easier to use. You are welcome to change it as you like, just keep in mind the GetAngleDifference() function returns between -180 and 180.

You still have a problem where a hero can stand inside the missiles max turn "circle" and not get hit, not sure how you want to deal with this.

I would personally convert to vector math, since it should be faster, and easier to use.
Attached Files
File type: w3xMissile System.w3x (38.8 KB)
10-22-2007, 08:29 PM#8
Dil999
Thanks ammorth, +rep