From 17648739ddcf77dc4e7eb3164fc0545b5ad3f40e Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sat, 5 Sep 2015 12:37:01 +0200 Subject: [PATCH] Removed more deprecated wound sync code --- .../functions/fnc_handleDamage_woundsOld.sqf | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/addons/medical/functions/fnc_handleDamage_woundsOld.sqf b/addons/medical/functions/fnc_handleDamage_woundsOld.sqf index 0c08d1e884..0a37952d12 100644 --- a/addons/medical/functions/fnc_handleDamage_woundsOld.sqf +++ b/addons/medical/functions/fnc_handleDamage_woundsOld.sqf @@ -121,19 +121,7 @@ _woundsCreated = []; }; } foreach (_injuryTypeInfo select 0); // foreach damage thresholds -_unit setvariable [QGVAR(openWounds), _openWounds, !USE_WOUND_EVENT_SYNC]; - -// Only update if new wounds have been created -if (count _woundsCreated > 0) then { -// _unit setvariable [QGVAR(lastUniqueWoundID), _woundID, true]; -}; - -if (USE_WOUND_EVENT_SYNC) then { - // Broadcast the new injuries across the net in parts. One broadcast per injury. Prevents having to broadcast one massive array of injuries. - { - // ["medical_propagateWound", [_unit, _x]] call EFUNC(common,globalEvent); - }foreach _woundsCreated; -}; +_unit setvariable [QGVAR(openWounds), _openWounds, true]; _painLevel = _unit getvariable [QGVAR(pain), 0]; _unit setvariable [QGVAR(pain), _painLevel + _painToAdd];