mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Woopsie
This commit is contained in:
parent
f6f910fb8a
commit
58237751b0
42
addons/medical/functions/fnc_itemCheck.sqf
Normal file
42
addons/medical/functions/fnc_itemCheck.sqf
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Author: KoffeinFlummi
|
||||
* Replaces vanilla items with ACE ones.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The unit <OBJECT>
|
||||
*
|
||||
* ReturnValue:
|
||||
* nil
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
|
||||
while {({_x == "FirstAidKit"} count items _unit) > 0} do {
|
||||
_unit removeItem "FirstAidKit";
|
||||
if (GVAR(level) >= 2) then {
|
||||
// TODO
|
||||
} else {
|
||||
_unit addItem QGVAR(fieldDressing);
|
||||
_unit addItem QGVAR(fieldDressing);
|
||||
_unit addItem QGVAR(morphine);
|
||||
};
|
||||
};
|
||||
|
||||
while {({_x == "Medikit"} count items _unit) > 0} do {
|
||||
_unit removeItem "Medikit";
|
||||
if (GVAR(level) >= 2) then {
|
||||
// TODO
|
||||
} else {
|
||||
_unit addItemToBackpack QGVAR(epinephrine);
|
||||
_unit addItemToBackpack QGVAR(epinephrine);
|
||||
_unit addItemToBackpack QGVAR(epinephrine);
|
||||
_unit addItemToBackpack QGVAR(epinephrine);
|
||||
_unit addItemToBackpack QGVAR(bloodIV);
|
||||
_unit addItemToBackpack QGVAR(bloodIV);
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user