1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. 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.

[System] MissileRecycler

Discussion in 'JASS Resources' started by Bribe, Oct 27, 2011.

  1. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,364
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    No indexer needed. The dummy is supposed to have a raven form ability in Object Editor. The Object Merger statement will set all that up automatically.
     
  2. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    The unit indexer is just for catching one of those to be disabled when creating the dummy units.
     
  3. Kazeon

    Kazeon

    Joined:
    Oct 12, 2011
    Messages:
    3,296
    Resources:
    38
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    3
    JASS:
    4
    Resources:
    38
    I thought the ability should be removed before we can modify the fly height.
    Btw, what do you think about adding delay parameter to RecycleMissile function? So that we can choose to remove the dummy immediately or not.
     
  4. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    then why not use Flux' DummyRecycler ;)

    or why not turn the Vertex ARGB of the dummy to 0, 0, 0, 0, since the appearance only resets when getting the recycled dummy
     
  5. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,364
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    Removing the ability is only done for units who you can click on so their command card isn't weird. The only reason to remove it from a dummy is if the dummy has another ability sharing that order string. Likely never happened in all WC3 history.

    The DEATH_TIME is a constant. It allows all standard missile death animations to pass in that span.
     
  6. Kazeon

    Kazeon

    Joined:
    Oct 12, 2011
    Messages:
    3,296
    Resources:
    38
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    3
    JASS:
    4
    Resources:
    38
    I'm having fps drop problem since the dummy units never reset to their original position (map edge). Guess I will have to do it manually. :(
     
  7. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,364
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    How many dummy units?
     
  8. Kazeon

    Kazeon

    Joined:
    Oct 12, 2011
    Messages:
    3,296
    Resources:
    38
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    3
    JASS:
    4
    Resources:
    38
    This is the spell. It fires a lot of missiles. So I'm sure there are a lot of dummy units as well. I tried to replace the dummy's model with abomination and yes, there were indeed a lot of dummy units. :p But it's anticipated now.
     
  9. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,364
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    I've updated the constant for the Dummy owner to be identical between 1.29 and legacy versions, though this is kind of pointless in 1.29 with the ability to modify a special effect without needing to attach it.
     
  10. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    This is still not obsolete since DummyCasters need insta-facing.
     
  11. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,364
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    Not rly. If you remove the 'Amov' ability from them they don't have to turn to cast. I've used this technique in some of the spells I fixed up for some members, though credit goes to either Maker or PurgeAndFire.
     
  12. Almia

    Almia

    Joined:
    Apr 24, 2012
    Messages:
    4,842
    Resources:
    35
    Spells:
    30
    Tutorials:
    4
    JASS:
    1
    Resources:
    35
    I was about to drop a reply in regards with Dummy Caster system using MissileRecycler, but then I saw Bribe's last reply. Gonna try that weird stuff.