Commit Graph

42 Commits

Author SHA1 Message Date
c46b2d09cf Heal hitpoint after bandage sets bodyPartStatus 2016-08-07 13:58:09 -05:00
82cf18575c Minor tweaks to medical
- decrease needed blood loss on selection to turn icon red. (Largest
wound bleedingRate is only 0.1)
- Don't print warning for basic medical bandage not having sub configs
2016-08-03 13:14:12 -05:00
6657bde921 Change basic medical to use advanced medical injury system 2016-06-13 12:18:56 +02:00
73bd684b65 Change formatting and private keywords in medical 2016-06-13 02:34:56 +02:00
c4b75160a4 Run event renaming script 2016-05-24 14:13:11 +01:00
108ff4f644 Replace ACE event system calls with CBA counterparts
Regex used:

\[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\)
[$1,$3,$2] call CBA_fnc_targetEvent

E?FUNC\((common,)?(server|global|local)Event\)
CBA_fnc_$2Event

E?FUNC\((common,)?(add|remove)EventHandler\)
CBA_fnc_$2EventHandler
2016-05-22 16:47:39 +01:00
3232654e13 Close #3565 -Fix spelling of local var _woundEffectiveness 2016-03-08 11:02:54 -06:00
5a1aae6028 manual merge 2015-11-30 17:44:15 +01:00
a9ebcf8543 fix setVariable and getVariable capitalization 2015-11-30 17:27:09 +01:00
b3950bd7f0 fix forEach capitalization 2015-11-30 17:23:48 +01:00
34d351c652 fix exitWith capitalization 2015-11-30 17:14:05 +01:00
6031eb8c6e Add all wound types to bandage treatment configs
Fix by adding all config entries;
instead of trying to modify classname
2015-11-27 14:19:26 -06:00
e51f658ce0 Try base wound class in bandage treatment configs
Gets the correct wound for the bandage treatment config
Used for selecting most effective bandage and reopening
_className was something like "velocityWoundMedium"
but configs only had base class "velocityWound"
2015-11-26 23:18:39 -06:00
f9352de489 Clarified comment slightly. 2015-09-30 20:34:51 -04:00
0a788a282e Improved efficiency of wound counting.
Using a switch/case conditional since it offers early termination if a
matching condition is found before all conditions are checked. It also
unnecessary to use a conditional to confirm whether a limb is wounded or
not. Number of Wounds multiplied by Blood loss will return zero for
a fully bandaged body part, not incrementing the wound counter; or it will
return some other number which will increment the wound counter.
2015-09-30 20:27:40 -04:00
f69f4066e9 Fix capitalization on forEach and getVariable. 2015-09-30 06:17:54 -04:00
2824009317 Incorrectly retrieving list of current wounds.
Used the wrong method to retrieve the target's current wounds and was
getting an empty array. This caused bandaging any wound even once to
completely heal the target on the Arma side.
2015-09-29 17:00:49 -04:00
8d05214eb0 Resolve merge conflict from upstream pull. 2015-09-29 16:24:17 -04:00
954fad615a Reformatted to follow ACE3 coding guidelines. 2015-09-29 06:36:36 -04:00
8619f02538 Take into account wounds that do no cause blood loss. 2015-09-29 06:19:49 -04:00
a864a3411c Clarified a comment. 2015-09-28 21:32:04 -04:00
488541bba6 Fix for Arma wounds not being healed with healHitPointAfterAdvBandage. 2015-09-28 20:08:07 -04:00
17ad7ecb8c replaced diag_logs by trace 2015-09-05 12:59:09 +02:00
b291141d11 Should Be a better fix for #2298 2015-08-29 22:51:42 +02:00
183e872f1f Possible fix for #2298 2015-08-29 22:44:52 +02:00
0cfb492916 Fixes and removal of duplicate code 2015-08-26 10:04:51 +02:00
19dd55147a Code Cleanup Medical Module (Part 4). 2015-08-22 19:47:23 +02:00
eb5af0cd89 Medical Private Variables 2015-04-30 01:17:26 -05:00
842bfe0b98 enabled advanced wounds setting 2015-04-20 22:00:11 +02:00
17899db086 added some missing privates 2015-04-19 19:49:56 +02:00
c88479d54d staged work 2015-04-15 19:45:42 +02:00
ffbe9f0c71 Setting for getting rid of hitpoint damage after adv medical damage 2015-04-07 21:06:48 +02:00
dca75c5557 Implemented bandaged wounds setting (adv) 2015-04-05 19:26:33 +02:00
08e1949078 Improved patient unconscious animation 2015-04-04 18:08:41 +02:00
7252966a78 Replaced advanced wounds event sync by regular setvariable public 2015-04-01 20:03:44 +02:00
6b91cefb90 Minor fixes and added pain status 2015-03-09 22:23:37 +01:00
f6fbef980a Added support for bandaging a specific injury class on a selection 2015-03-09 20:03:17 +01:00
3fc29673bb More fixes and improvements for wounds 2015-03-03 23:26:54 +01:00
e4756efaa0 Optimization for new wound system 2015-03-03 22:13:22 +01:00
18998bb619 Split up the openWounds through the ACE event system
Based upon the suggestions from Jaynus
2015-02-28 20:48:34 +01:00
49e04ae7bb Added more treatment options and variables to init 2015-02-28 11:41:27 +01:00
ead5f2ee79 Added new injury and treatment systems for advanced medical 2015-02-21 21:10:57 +01:00