-
Notifications
You must be signed in to change notification settings - Fork 33
Partial resistance to KillDriver=yes warheads
GraionDilach edited this page Nov 30, 2012
·
2 revisions
This specification to add a possibility to further specify unit resistance to driver killing, and thus, improve the Killing Drivers feature.
Currently, we have only two options how when using KillDriver=yes warheads on units: either make the units completely immune to it, or fully resistant. While not a bad thing on its own, the problem arises when someone wants to add a unit with KillDriver=yes warhead, but wants to make the heaviest units (such as Apocalypse tank or MCVs) not completely resistant to having their drivers killed, only harder to have such thing to happen.
- Possibility to specify how hard it is to get the unit's driver killed.
- Possibility to still have the current KillDriver=yes behavior on those warheads the user sees appropriate.
- The value that specifies how hard it is to kill the driver could be either a percentage of the unit's strength under which the driver will be always killed by the kill-driver warhead (like: strength drops down to 25% and KillDriver=yes weapon can now kill the driver), or a threshold value of damage that needs to be dealt to the unit (like: deal 100 damage to the vehicle with a KillDriver=yes weapon, and the driver dies). Either of those behaviors, no need for both.
- The boolean variable of ProtectedDriver= could be modified into an integer or float value that specifies the resistance to the KillDriver=yes weapons. If a percentage value, then 100% would have the same behavior as current "yes". If a threshold for the KillDriver weapon, then -1 would be an equivalent of current "yes". ProtectedDriver=0 or 0% would mean no threshold/protection, and would be equivalent of current boolean "no".
- A warhead could have an additional tag, like KillDriver.AbsoluteKiller=yes, to ignore the percentage or threshold resistance to KillDriver=yes the unit has, thus, always killing the driver as long as the vehicle doesn't have ProtectedDriver=yes, just like the logic works currently. This, or KillDriver= tag could accept an additional, third value, making it "no" for no driver-killing, "yes" for instantly killing the driver (as long as the unit doesn't have ProtectedDriver=yes), and an in-between value, to specify that the warhead fully respects the unit's resistance to driver-killing.
specifies the percentage of the target's stregth, if the target has a lower percentage, the driver is killed. Part of the gd03 branch.