0ad/source/simulation2
wraitii e916b8cc01 Improve splash damage falloff calculation to account for obstruction size.
Splash falloff was calculated using centre-to-point distance, where
nearest-edge to nearest-edge ought to have been used.
Use DistanceToPoint to correct for that.

Make sure the damage multiplier cannot go negative.
Remove GetUnitSize in favour of GetSize.

Reviewed By: bb
Differential Revision: https://code.wildfiregames.com/D2963
This was SVN commit r24010.
2020-08-31 15:01:04 +00:00
..
components Improve splash damage falloff calculation to account for obstruction size. 2020-08-31 15:01:04 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Implements correct distance to edges for the building snapping feature. 2020-08-17 20:13:18 +00:00
scripting Implements correct distance to edges for the building snapping feature. 2020-08-17 20:13:18 +00:00
serialization RangeManager: Grid for 2D array, enum cleanups. 2020-06-13 09:05:40 +00:00
system Add an interface for Reinforcement Learning. 2020-08-01 10:52:59 +00:00
tests RangeManager: Grid for 2D array, enum cleanups. 2020-06-13 09:05:40 +00:00
MessageTypes.h UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. 2019-07-22 18:07:24 +00:00
Simulation2.cpp Use victory conditions json's in Atlas 2020-07-18 17:39:59 +00:00
Simulation2.h Use victory conditions json's in Atlas 2020-07-18 17:39:59 +00:00
TypeList.h Add a C++ interface for CCmpAttack. 2020-04-21 21:44:05 +00:00