ACE3/addons/medical_engine/functions
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
..
fnc_damageBodyPart.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_getHitpointArmor.sqf Medical Engine - Apply damage to the correct hitpoint (#7415) 2020-02-28 17:54:53 +01:00
fnc_getItemArmor.sqf Medical Engine - Apply damage to the correct hitpoint (#7415) 2020-02-28 17:54:53 +01:00
fnc_handleDamage.sqf Medical Engine - Apply damage to the correct hitpoint (#7415) 2020-02-28 17:54:53 +01:00
fnc_setStructuralDamage.sqf revert a variable 2019-05-03 17:09:16 +02:00
fnc_setUnconsciousAnim.sqf Medical - Improve loading/unloading of unconc patients (#7109) 2019-09-05 15:56:53 -05:00
fnc_updateBodyPartVisuals.sqf Formatting. Lazy eval 2019-03-21 14:34:51 +01:00
fnc_updateDamageEffects.sqf Fixes typo in splint comparison (#7518) 2020-02-22 14:09:04 -06:00
script_component.hpp merge medical engine component into medical rewrite branch 2016-07-30 14:00:42 +02:00