Missing Files

This commit is contained in:
icomrade
2016-02-29 00:55:29 -05:00
parent 64c251d95d
commit 84eb6f815a
75 changed files with 6780 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
private["_item","_onLadder","_hasmeditem","_config","_text","_id"];
//Old System
_item = _this;
//Other initail info
call gear_ui_init;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
//Get config info
_config = configFile >> "CfgMagazines" >> _item;
_removeWeapon = getText (_config >> "oringal");
_addWeapon = getText (_config >> "weapon");
_text = getText (_config >> "displayName");
//item checks
_hasitem = _item in magazines player;
//fail saves
if (!_hasitem) exitWith { cutText [localize "str_missingAttachment", "PLAIN DOWN"]};
if (_onLadder) exitWith { cutText [localize "str_player_21", "PLAIN DOWN"] };
if (_removeWeapon in (weapons player)) then {
player removeMagazine _item;
player removeWeapon _removeWeapon;
player addWeapon _addWeapon;
if (vehicle player != player) then {
_display = findDisplay 106;
_display closeDisplay 0;
};
} else {
closedialog 0;
sleep 0.2;
cutText [format[ localize "str_missingweapon", _text, _removeWeapon] , "PLAIN DOWN"]
};