I have a Doom Beam that shoots in a straight line damaging all units in the line. I have the line pretty think so I'm using a periodic search with the offsets on the Y setup similar to Raynors snipe ability. The problem I'm running into is if the unit is a fatter target, say a beefy structure, it gets hit with the damage multiple times. Let's say I want to cause 500 damage to all units that hit the beam, if the unit happens to be big enough, the search would pick it up multiple times. I've set my radius pretty low actually, but if its going in a straight line through a large structure or unit, its still going to hit it more then once.
I'm hoping there is a quick trick or flag / validator to fix this.
The idea is to use a marker validator to test if search targets have been hit already. When you deal damage to a search target you add the same marker link to it as the marker you test for. On top of those recommended examples there is also the penetration rounds from WoL, Kerrigan charge and various other abilities from Heart of the Swarm and the laser sweep from LotV. One can be sure coop commanders use this functionality a lot however those mods are restricted so hard to view.
I have a Doom Beam that shoots in a straight line damaging all units in the line. I have the line pretty think so I'm using a periodic search with the offsets on the Y setup similar to Raynors snipe ability. The problem I'm running into is if the unit is a fatter target, say a beefy structure, it gets hit with the damage multiple times. Let's say I want to cause 500 damage to all units that hit the beam, if the unit happens to be big enough, the search would pick it up multiple times. I've set my radius pretty low actually, but if its going in a straight line through a large structure or unit, its still going to hit it more then once.
I'm hoping there is a quick trick or flag / validator to fix this.
So you need markers like the hellion weapon or the colossus weapon uses.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
To expand on what DrSuperEvil has said.
The idea is to use a marker validator to test if search targets have been hit already. When you deal damage to a search target you add the same marker link to it as the marker you test for. On top of those recommended examples there is also the penetration rounds from WoL, Kerrigan charge and various other abilities from Heart of the Swarm and the laser sweep from LotV. One can be sure coop commanders use this functionality a lot however those mods are restricted so hard to view.
Okay cool,
So basically I just add the Validator "no markers" to the damage effect of the ability and that should do the trick?
BTW, its not a weapon its an ability so not sure if that matters or not.
It should not matter but make sure the marker fields of the Damage effect are set up.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I had to set the ID in the match marker flags to enabled on the create persistent effect as well. It works!