pterolatypus
c949a07c83
Medical Engine - Apply damage to the correct hitpoint ( #7415 )
...
* HandleDamage uses armour values to determine which hitpoint was damaged
* Tidied up comments
* Newlines
* Tabs? In MY code?!
* Added uniform caching and option to force disable caching
* Review suggestions
* Review suggestions/code style
* Spelling and select
* Removed unnecessary validity check
* Apply suggestions from code review
Co-Authored-By: commy2 <commy-2@gmx.de>
* Tweaks and optimisations, removed _noCache
Also fixed cache nil vs empty
* Different approach with fewer loops
Lookup is now done per-hitpoint and default values cached
fnc_getItemArmor made a helper function as it's now only a few lines
* Tabs & newlines
* Moved uniform logic inside helper function
* Optimisations
* Tweaks & optimisations, improved formatting
* Ignore explosionShielding
* Moved getArmor back to separate func, add per-unit caching
* Formatting
* Review suggestions
Co-authored-by: commy2 <commy-2@gmx.de>
2020-02-28 17:54:53 +01:00
..
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2019-09-29 19:51:00 +02:00
2020-02-22 22:26:55 +01:00
2020-02-22 21:53:35 +01:00
2020-02-28 10:13:59 +01:00
2020-01-16 21:14:23 -06:00
2018-09-17 14:19:29 -05:00
2020-02-28 11:08:40 +01:00
2020-01-16 21:14:23 -06:00
2020-02-12 17:28:10 +01:00
2020-01-16 21:14:23 -06:00
2020-02-22 17:07:32 -05:00
2019-12-19 11:08:31 -06:00
2020-02-07 21:33:09 -06:00
2020-02-22 22:15:28 +01:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-02-20 00:48:03 -05:00
2019-12-19 11:08:31 -06:00
2020-01-11 10:08:35 -06:00
2020-01-11 10:08:35 -06:00
2020-01-05 18:37:48 +01:00
2017-08-29 17:47:01 -05:00
2020-01-28 19:12:11 -06:00
2020-01-16 21:14:23 -06:00
2020-01-11 10:08:35 -06:00
2020-02-22 21:53:35 +01:00
2020-02-22 21:53:35 +01:00
2020-02-22 21:53:35 +01:00
2020-01-13 18:34:42 +01:00
2020-02-22 21:53:35 +01:00
2020-02-14 00:28:57 +01:00
2020-02-22 21:53:35 +01:00
2020-01-11 10:08:35 -06:00
2020-02-23 11:59:14 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-02-23 02:11:20 +01:00
2020-02-12 17:28:41 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2019-12-28 09:58:52 -06:00
2020-02-22 21:31:14 +01:00
2020-02-12 13:27:58 -06:00
2020-02-07 13:24:41 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-23 09:26:51 -06:00
2020-01-28 19:12:38 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:48:40 +01:00
2020-02-28 17:54:53 +01:00
2020-02-23 09:26:51 -06:00
2020-01-16 21:30:40 -06:00
2020-02-22 22:15:28 +01:00
2020-02-19 10:05:05 -06:00
2020-02-23 09:26:51 -06:00
2020-01-07 20:35:22 +01:00
2019-12-16 20:01:30 -06:00
2020-02-22 22:15:28 +01:00
2020-02-22 22:09:10 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2018-09-17 14:19:29 -05:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-02-24 12:13:24 -06:00
2020-01-16 21:14:23 -06:00
2017-08-29 17:47:01 -05:00
2020-01-05 18:37:48 +01:00
2017-08-29 17:47:01 -05:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-01-18 11:40:41 -06:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00
2020-02-23 02:11:20 +01:00
2020-01-16 21:14:23 -06:00
2019-04-26 23:31:56 +02:00
2020-02-12 17:29:04 +01:00
2019-03-21 08:52:32 -05:00
2020-01-16 21:14:23 -06:00
2020-02-22 14:09:15 -06:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00
2020-01-05 18:37:48 +01:00
2020-01-05 18:37:48 +01:00
2020-01-16 21:14:23 -06:00
2020-02-12 17:29:17 +01:00
2020-01-05 18:37:48 +01:00
2019-12-24 15:18:59 +01:00
2020-02-22 21:53:35 +01:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00
2017-08-29 17:47:01 -05:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-01-05 18:37:48 +01:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00
2020-01-16 21:14:23 -06:00
2020-01-16 21:14:23 -06:00
2020-02-22 21:53:35 +01:00