1. 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
  2. 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
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

Hardened Skin Ignored By Dying Units

Discussion in 'World Editor Help Zone' started by Wazzz, Sep 4, 2015.

  1. Wazzz

    Wazzz

    Joined:
    Feb 5, 2009
    Messages:
    2,760
    Resources:
    5
    Maps:
    4
    Tutorials:
    1
    Resources:
    5
    I've been using a Hardened Skin to replicate how armor functions in Starcraft (1 armor reduces damage from attacks by 1, that sort of thing), but I have recently found that if a unit fires a shot just before it dies, its attack seems to ignore Hardened Skin.

    Is this normal, or is there a way around it? Thanks in advance, I'm hoping to find a workable solution to this.
     
  2. PublishedShadow

    PublishedShadow

    Joined:
    Jun 2, 2013
    Messages:
    599
    Resources:
    2
    Maps:
    2
    Resources:
    2
    So two quick thoughts, It sounds like a generic hard coded bug, but...

    1) There may be a setting in the gameplay constants to change so that units never miss or something like that. Kind of like the units on cliffs etc..

    2) You'd have to use a missile system.

    3) See if it's related to a certain type of attack or affects all attack types: Melee, Instant, Ranged etc.
     
  3. Ezekiel12

    Ezekiel12

    Joined:
    Mar 13, 2012
    Messages:
    1,053
    Resources:
    0
    Resources:
    0
    The easy solution is to add "Alive" and "Dead" to the allowed target list of your hardened skin ability.

    However there is an issue you did not encounter yet. If a projectile of a unit which is removed from the game hits your hardened skin unit, hardened skin will never work. So make sure you don't let that happen.
     
  4. DEE-BOO

    DEE-BOO

    Joined:
    Apr 4, 2010
    Messages:
    505
    Resources:
    1
    Icons:
    1
    Resources:
    1
    I just tested and it's a a real easy fix.

    Just set Targets Allowed to Alive, Allied, Dead, Enemy

    EDIT: Dangit I'm too slow.
     
  5. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,716
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Do be careful when using a SC2 like armor system that you do not allow over-inflated amounts of it. Nothing is worse than doing 1 damage to units with 300,000 HP. This is why many RTS games use percentage armor (or EHP armor like WC3) since damage is then unrelated to how much damage an attack has but rather how much of that type of damage you inflict.
     
  6. Wazzz

    Wazzz

    Joined:
    Feb 5, 2009
    Messages:
    2,760
    Resources:
    5
    Maps:
    4
    Tutorials:
    1
    Resources:
    5
    I believe it to only affect ranged units as they are dying, but I could be wrong.

    I have previously tried having Alive and Dead in the check for Hardened Skin, but I didn't set it for Enemy, so that may be it :p

    I agree, an SC2 like armor system can be very interesting in terms of balance and the likes, it's a lot of fun to play around with, too :p

    Thanks for the help guys, I'll try changing the targets allowed when I can and I'll let you know how it goes when I do ^_^