I'm trying to create a basic "Cover System" in my maps using Validators and Behaviours. My goal is to achieve this entirely in Data, because it seems to run more smoothly (especially considering that something that could happen whenever a weapon fires could be taxing if done in triggers).
My thinking is to do the following, but I cannot find how to make it work in the existing validators.
All units would have a Behavior (Buff) called Cover System. This buff would govern Damage Response and would reduce the damage taken by an attack if its Validators were passed.
The Validator would check the following:
The Distance Between Attacker and Defender
The Pathing Distance Between Attacker and Defender
Is the Pathing Distance Greater Than Distance?
My logic here is that if there is a greater pathing distance than a normal distance, then there is likely an obstacle between them. That obstacle is considered as providing cover.
I cannot figure out how to get Validators to make these checks. I have found the Location Range Validator, which can compare both, but each only to a set Value. I cannot compare these two distances to each other.
A few other questions:
Are the Values that Validators Compare to Integers or Constants? If they are integers then I may be able to try a convoluted workaround that checks both distances to a common Value at each range up to the maximum used in my map.
Validators all return Boolean values. At most you could have a series of validators that activate buff stacks which can be compared using a requirement. For cover systems triggers are probably best. Else use an Ennumerate Area validator that looks for an arc and set to use filters for the cover.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi Everyone,
I'm trying to create a basic "Cover System" in my maps using Validators and Behaviours. My goal is to achieve this entirely in Data, because it seems to run more smoothly (especially considering that something that could happen whenever a weapon fires could be taxing if done in triggers).
My thinking is to do the following, but I cannot find how to make it work in the existing validators.
My logic here is that if there is a greater pathing distance than a normal distance, then there is likely an obstacle between them. That obstacle is considered as providing cover.
I cannot figure out how to get Validators to make these checks. I have found the Location Range Validator, which can compare both, but each only to a set Value. I cannot compare these two distances to each other.
A few other questions:
Validators all return Boolean values. At most you could have a series of validators that activate buff stacks which can be compared using a requirement. For cover systems triggers are probably best. Else use an Ennumerate Area validator that looks for an arc and set to use filters for the cover.
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
Thanks for the response.
That is pretty reflective of what I've found. I've changed to a different approach.