mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
11547d7ff8
* Tidy handle damage code * Fix environmental damage conditions - Vehicle damage would never occur because it doesn't fire all the hitpoints - Missing sanity check on fall damage to check that unit isn't in a vehicle - Getting hit by a vehicle while on foot can be detected by checking for a shooter * Improve collision handling - All collisions have a `_shooter` so we simply first check for that because burning doesn't and it could happen at any velocity - We don't actually care what caused the collision because they should all cause the same type of wounding - The exception is fall damage because we want to prioritise wounding the legs, we assume if the `_unit` had downward velocity and `_shooter == _unit` that it was fall damage (not necessarily always true, but almost always is and there doesn't look to be a more specific way to check). |
||
---|---|---|
.. | ||
fnc_damageBodyPart.sqf | ||
fnc_handleDamage.sqf | ||
fnc_setLimping.sqf | ||
fnc_setStructuralDamage.sqf | ||
fnc_setUnconsciousAnim.sqf | ||
fnc_updateBodyPartVisuals.sqf | ||
script_component.hpp |