2015-03-21 21:01:20 +00:00
|
|
|
/*
|
|
|
|
* Author: KoffeinFlummi
|
|
|
|
* Replaces vanilla items with ACE ones.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The unit <OBJECT>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Return Value:
|
2015-08-22 14:25:10 +00:00
|
|
|
* None
|
2015-03-21 21:01:20 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_medical_fnc_itemCheck
|
|
|
|
*
|
2015-03-21 21:01:20 +00:00
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_unit"];
|
2015-03-21 21:01:20 +00:00
|
|
|
|
|
|
|
while {({_x == "FirstAidKit"} count items _unit) > 0} do {
|
|
|
|
_unit removeItem "FirstAidKit";
|
|
|
|
if (GVAR(level) >= 2) then {
|
2015-03-21 21:22:28 +00:00
|
|
|
_unit addItem "ACE_fieldDressing";
|
|
|
|
_unit addItem "ACE_packingBandage";
|
|
|
|
_unit addItem "ACE_morphine";
|
|
|
|
_unit addItem "ACE_tourniquet";
|
2015-03-21 21:01:20 +00:00
|
|
|
} else {
|
2015-03-21 21:22:28 +00:00
|
|
|
_unit addItem "ACE_fieldDressing";
|
|
|
|
_unit addItem "ACE_fieldDressing";
|
|
|
|
_unit addItem "ACE_morphine";
|
2015-03-21 21:01:20 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
while {({_x == "Medikit"} count items _unit) > 0} do {
|
|
|
|
_unit removeItem "Medikit";
|
|
|
|
if (GVAR(level) >= 2) then {
|
2015-03-21 21:22:28 +00:00
|
|
|
_unit addItemToBackpack "ACE_fieldDressing";
|
|
|
|
_unit addItemToBackpack "ACE_packingBandage";
|
|
|
|
_unit addItemToBackpack "ACE_packingBandage";
|
|
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
|
|
_unit addItemToBackpack "ACE_morphine";
|
|
|
|
_unit addItemToBackpack "ACE_salineIV_250";
|
|
|
|
_unit addItemToBackpack "ACE_tourniquet";
|
2015-03-21 21:01:20 +00:00
|
|
|
} else {
|
2015-03-21 21:22:28 +00:00
|
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
|
|
_unit addItemToBackpack "ACE_epinephrine";
|
|
|
|
_unit addItemToBackpack "ACE_bloodIV";
|
|
|
|
_unit addItemToBackpack "ACE_bloodIV";
|
2015-03-21 21:01:20 +00:00
|
|
|
};
|
|
|
|
};
|