private array updates + fixes

This commit is contained in:
vbawol
2013-05-26 12:23:31 -05:00
parent 04393b3383
commit 59905c1d18
123 changed files with 268 additions and 260 deletions

View File

@@ -1,6 +1,6 @@
private["_item"];
private ["_item","_onLadder","_classname","_text","_hastrapitem","_location","_object","_dir"];
_item = _this;
_config = configFile >> "CfgWeapons" >> _item;
// _config = configFile >> "CfgWeapons" >> _item;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]};
@@ -9,7 +9,7 @@ call gear_ui_init;
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
_consume = ([] + getArray (_config >> "magazines")) select 0;
//_consume = ([] + getArray (_config >> "magazines")) select 0;
_hastrapitem = _this in magazines player;
@@ -22,6 +22,7 @@ player playActionNow "PutDown";
sleep 1;
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_dir = getDir player;
_object setDir _dir;
player reveal _object;