1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  5. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  6. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  7. The results are out! Check them out.
    Dismiss Notice
  8. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  9. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Homing Missle v1.1

Submitted by hell gate
This bundle is marked as approved. It works and satisfies the submission rules.
The caster shoot a missile the way he faces. This missile will start homing any enemy unit that comes into a 750 range. If the missile collides with an enemy unit it will explode and deal 50/100/150 damage in a small AOE. The missile can travel up to 4000 units.

v1.1 added some comments. moved some things from HM init to HM loop

Update 31.8.14: Updated Hive description

Keywords:
homing; missle; MUI; hell gate; explode; tank
Contents

Map template (Map)

Reviews
Moderator
12:17, 29th Dec 2009 TriggerHappy: The coding was fine and all, but in the demo map triggers why did you convert them to Jass without making any modifications?
  1. 12:17, 29th Dec 2009
    TriggerHappy:

    The coding was fine and all, but in the demo map triggers why did you convert them to Jass without making any modifications?
     
  2. Deuterium

    Deuterium

    Joined:
    Mar 17, 2009
    Messages:
    1,301
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    Seems well done! Nice idea and creative...
    Use comments in the triggers so that you can read it easier when you try to update, and so that we users dont have to fully read it to understand what's going on, but go through the comments. At least use the as dividers.
    (look at the spell in my signature and you'll understand what I mean).
     
  3. HaniBon

    HaniBon

    Joined:
    Apr 25, 2009
    Messages:
    464
    Resources:
    0
    Resources:
    0
    This is really good :) +rep
     
  4. kroasana

    kroasana

    Joined:
    Jun 27, 2009
    Messages:
    10
    Resources:
    0
    Resources:
    0
    its hard to read :S but i like the spell :) keep it up
     
  5. Deuterium

    Deuterium

    Joined:
    Mar 17, 2009
    Messages:
    1,301
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    As I said, he just needs some Comments...
     
  6. Septimus

    Septimus

    Joined:
    May 3, 2008
    Messages:
    4,175
    Resources:
    49
    Packs:
    1
    Maps:
    35
    Spells:
    8
    Tutorials:
    5
    Resources:
    49
    I don't understand why people still continue to make GUI spells despite the new patch.
     
  7. Rmx

    Rmx

    Joined:
    Aug 27, 2007
    Messages:
    1,088
    Resources:
    18
    Icons:
    3
    Spells:
    15
    Resources:
    18
    Hashtable have the same importance as indexing they are some how EQUAL ..

    If indexing gets recycled it's even better and = hashtable ..

    So it doesn't matter if they did indexing or hashtable :)
     
  8. Deuterium

    Deuterium

    Joined:
    Mar 17, 2009
    Messages:
    1,301
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    + Indexing is faster than hashtables in a way and it's not wrong to use indexing... and for those who know indexing it's way too easy.
     
  9. Rmx

    Rmx

    Joined:
    Aug 27, 2007
    Messages:
    1,088
    Resources:
    18
    Icons:
    3
    Spells:
    15
    Resources:
    18
    Truth is spoken +Rep ^^

    Edit : Damn must spread some :p
     
    Last edited: Jul 13, 2009
  10. Kingz

    Kingz

    Joined:
    Jun 5, 2008
    Messages:
    2,470
    Resources:
    6
    Spells:
    5
    Tutorials:
    1
    Resources:
    6
    Hashtables won't use arrays like indexes and therefore there won't be a possibility to go exceed the max array number.
    At that point and the fact it will drasticaly change the look of GUI spells you should know that it is much better than indexing.
     
  11. Rmx

    Rmx

    Joined:
    Aug 27, 2007
    Messages:
    1,088
    Resources:
    18
    Icons:
    3
    Spells:
    15
    Resources:
    18
    And recycling the indexes won't have a chance to exceed the max array number either :O
     
  12. Deuterium

    Deuterium

    Joined:
    Mar 17, 2009
    Messages:
    1,301
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    off-topic @ Kingz:
    No one here is saying that hashTables shouldn't be used. But I mean, if I don't need the arrays to loop through them, using Indexing is as fine as using hashTables.
    What's more, Indexing is slightly faster - so I've heard - but who cares about some picoseconds? :p
    And we know how to Index, so it only takes us a minute.
    For those who don't, well hashTables are more convenient.
     
  13. baassee

    baassee

    Joined:
    Nov 14, 2008
    Messages:
    3,220
    Resources:
    17
    Spells:
    14
    Tutorials:
    3
    Resources:
    17
    wrong topic to argue about hashtables and indexings ... still I have to join this fight for sure! :)

    indexings = faster

    dunno if this is true but ive heard that hashtables takes less space then arrays ... thought its like a few bytes
     
  14. hell gate

    hell gate

    Joined:
    Nov 23, 2008
    Messages:
    477
    Resources:
    10
    Models:
    1
    Spells:
    9
    Resources:
    10
    ooop. now i know what i forgott :)

    will add it soon
     
  15. kms333

    kms333

    Joined:
    Jul 13, 2009
    Messages:
    13
    Resources:
    0
    Resources:
    0
    ummmm isent there an option to add homing to a missle?
     
  16. Kingz

    Kingz

    Joined:
    Jun 5, 2008
    Messages:
    2,470
    Resources:
    6
    Spells:
    5
    Tutorials:
    1
    Resources:
    6
    Hmm how to put this...

    Arrays won't be used anymore cause arrays are generaly slower than Hashtables.

    Still indexing is fine if it contains index recycling :p
     
  17. S.W.I.N.E

    S.W.I.N.E

    Joined:
    Dec 22, 2009
    Messages:
    182
    Resources:
    0
    Resources:
    0
    triggers please =/
     
  18. Itachi009

    Itachi009

    Joined:
    Dec 8, 2008
    Messages:
    97
    Resources:
    0
    Resources:
    0
    my benchmark tests showed that using indexing is 2x faster than hashtables, but hashtables are 2x better because:
    1) you cant reach the max index
    2) hundreds of globals will take A LOT of memory and you simply cant remove them, just recycle
     
  19. baassee

    baassee

    Joined:
    Nov 14, 2008
    Messages:
    3,220
    Resources:
    17
    Spells:
    14
    Tutorials:
    3
    Resources:
    17
    1. Why should you reach max index.
    2. Why should you remove them when you can reuse them (recycle).