Fix handleDamage not working

This commit is contained in:
Glowbal 2016-09-18 14:05:05 +02:00
parent 7691af47f3
commit 9263cb0f7d
3 changed files with 6 additions and 3 deletions

View File

@ -162,7 +162,10 @@ private _selectionSpecific = getNumber(_damageTypesConfig >> "selectionSpecific"
{ {
_x params ["_classID", "_selections", "_bloodLoss", "_pain", "_damage", "_causesArray", "_classDisplayName"]; _x params ["_classID", "_selections", "_bloodLoss", "_pain", "_damage", "_causesArray", "_classDisplayName"];
_damage params ["_minDamage", "_maxDamage"]; _damage params ["_minDamage", "_maxDamage"];
private _className = GVAR(woundClassNames) select _forEachIndex; private _className = GVAR(woundClassNames) select _forEachIndex;
if (_classDisplayName == "") then {_classDisplayName = _className; }; // fall back
private _allowedSelections = ""; private _allowedSelections = "";
{ {
_allowedSelections = _allowedSelections + _x; _allowedSelections = _allowedSelections + _x;

View File

@ -4,7 +4,7 @@ ADDON = false;
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"
[QGVAR(woundReceived), { [QEGVAR(medical_engine,woundReceived), {
params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"]; params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"];
private _selectionName = EGVAR(medical,SELECTIONS) param [EGVAR(medical,HITPOINTS) find _woundedHitPoint]; // @todo private _selectionName = EGVAR(medical,SELECTIONS) param [EGVAR(medical,HITPOINTS) find _woundedHitPoint]; // @todo

View File

@ -29,9 +29,9 @@
#define NAMESPACE_NULL locationNull #define NAMESPACE_NULL locationNull
#define PRELOAD_CLASS(class) \ #define PRELOAD_CLASS(class) \
LOG_1("Starting preload for ""%1""",class);\ diag_log format["Starting preload for ""%1""",class];\
[{\ [{\
1 preloadObject _this;\ 1 preloadObject _this;\
}, {\ }, {\
LOG_1("Preload done for ""%1""",_this);\ diag_log format ["Preload done for ""%1""",_this];\
}, class] call CBA_fnc_waitUntilAndExecute }, class] call CBA_fnc_waitUntilAndExecute