Files
ACE3/addons
SilentSpike 11547d7ff8 Fix environmental damage sources (#6515)
* 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).
2018-08-15 07:57:11 +01:00
..
2018-06-27 14:16:11 -05:00
2018-08-02 15:02:10 +01:00
2017-08-29 17:47:01 -05:00
2018-06-27 14:16:11 -05:00
2018-05-31 17:57:40 -05:00
2018-04-15 16:58:00 +01:00
2018-08-14 21:34:35 +01:00
2018-08-14 21:34:35 +01:00
2018-08-14 21:34:35 +01:00
2017-08-29 17:47:01 -05:00
2017-08-29 17:47:01 -05:00
2018-07-11 10:17:13 -05:00
2018-04-11 08:53:23 -05:00
2018-07-11 10:17:13 -05:00
2018-06-27 14:16:11 -05:00
2017-08-29 17:47:01 -05:00
2017-12-12 17:17:51 +01:00
2017-12-16 11:51:15 -06:00
2018-01-28 15:42:32 -06:00