new vault texture, out of stock messaged added back, lowered armor on
vault added damage handeler, Potential fix for for tag friendly option
on vehicles w/ player. New custom death screen, bulk trades with custom
supply crate model. Simlified dynamic vehicle system.
This commit is contained in:
vbawol
2013-01-30 13:29:48 -06:00
parent e24e30b15c
commit 13ca69a8fc
17 changed files with 139 additions and 55 deletions

View File

@@ -153,6 +153,15 @@ if (_hasPatient and !r_drag_sqf and !r_action and !_inVehicle and !r_player_unco
};
};
} forEach _magTypes;
} else {
// should only fire if cursor target is man and not vehicle
if ((isPlayer _unit) and !(_charID in _friendlies)) then {
r_action = true;
_action = _unit addAction ["Tag as friendly", "\z\addons\dayz_code\actions\player_tagFriendly.sqf", [], 0, false, true, "", ""];
r_player_actions set [count r_player_actions,_action];
};
};
//CAN CARRY BACKPACK
if ((_type in USEC_PackableObjects) and (_classbag == "")) then {
@@ -188,12 +197,7 @@ if (_hasPatient and !r_drag_sqf and !r_action and !_inVehicle and !r_player_unco
};
};
if ((isPlayer _unit) and !(_charID in _friendlies)) then {
r_action = true;
// TODO: prevent menu on vehicle, first attempt did not work "vehicle _unit == _unit"
_action = _unit addAction ["Tag as friendly", "\z\addons\dayz_code\actions\player_tagFriendly.sqf", [], 0, false, true, "", ""];
r_player_actions set [count r_player_actions,_action];
};
if (r_action) then {
r_action_targets = r_action_targets + [_unit];

View File

@@ -271,7 +271,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
// All Traders
if (_isMan and !_isPZombie and _traderType in serverTraders) then {
if(!isNil "s_last_trader" and s_player_parts_crtl == 1) then {
if((!isNil "s_last_trader") and s_player_parts_crtl == 1) then {
if(s_last_trader != _traderType) then {
s_player_parts_crtl -1;
};
@@ -281,7 +281,6 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
//diag_log ("TRADER = " + str(serverTraders));
_traderMenu = call compile format["menu_%1;",_traderType];
diag_log ("TRADER = " + str(_traderMenu));