simplify blood splatter by using woundReceived event

This commit is contained in:
commy2 2016-10-02 19:13:56 +02:00
parent 6082020056
commit bad01c3126
3 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
PREP(hit);
PREP(handleWoundReceived);
PREP(isBleeding);
PREP(onBleeding);
PREP(createBlood);

View File

@ -36,5 +36,5 @@ if (isServer) then {
private _stateMachine = [_listcode, true] call CBA_statemachine_fnc_create;
[_stateMachine, {call FUNC(onBleeding)}, {}, {}, "Bleeding"] call CBA_statemachine_fnc_addState;
[QEGVAR(medical_engine,woundReceived), FUNC(woundReceived)] call CBA_fnc_addEventHandler;
[QEGVAR(medical_engine,woundReceived), FUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
}] call CBA_fnc_addEventHandler;