fnc_bandageAllWounds.sqf 749 B

123456789101112131415161718192021222324252627
  1. #include "../../ace_medical_macros.hpp"
  2. /*
  3. * Author: M3ales
  4. *
  5. * Arguments:
  6. * Healer
  7. * Patient
  8. * Return Value:
  9. * Nothing
  10. *
  11. * Example:
  12. * [player, cursorTarget] call rd501_fnc_bandageAllWounds
  13. *
  14. * Public: No
  15. */
  16. params ["_healer", "_patient"];
  17. private _openWounds = (_patient getVariable ["ace_medical_openWounds", []]);
  18. if (_openWounds isEqualTo []) exitWith {};
  19. _patient setVariable ["ace_medical_openWounds", [], true];
  20. [_patient] call ace_medical_status_fnc_updateWoundBloodLoss;
  21. [_patient] call ace_medical_engine_fnc_updateDamageEffects;
  22. private _nearPlayers = (_patient nearEntities ["CAManBase", 6]) select {_x call ace_common_fnc_isPlayer};
  23. ["ace_interact_menu_clearConditionCaches", [], _nearPlayers] call CBA_fnc_targetEvent;