Update player_fired.sqf

Vanilla commits:

70fc007062

f327c99b02
This commit is contained in:
ebayShopper
2017-11-22 12:49:06 -05:00
parent c671cf9661
commit 90487cde10
3 changed files with 14 additions and 3 deletions

View File

@@ -30,3 +30,12 @@
shortcut = "";\
condition = "(['PushPlane',this] call userActionConditions)";\
statement = "this call player_pushPlane;"
#define ACTION_REARM priority = 3;\
radius = 3;\
position = "camera";\
showWindow = 0;\
onlyForPlayer = 1;\
shortcut = "reloadMagazine";\
condition = "(['AddAmmo',this] call userActionConditions)";\
hideOnUse = 1

View File

@@ -26,6 +26,8 @@ _show = switch _action do {
//case "ObjectUpgrade": {CAN_DO && !IN_VEHICLE && !(_object getVariable["BuildLock",false])};
//case "ObjectMaintenance": {CAN_DO && !IN_VEHICLE && (_object getVariable["Maintenance",false] or IS_DAMAGED)};
//case "ObjectDisassembly": {CAN_DO && !IN_VEHICLE && HAS_TOOLBOX && !(_object getVariable["BuildLock",false]) && (((getPlayerUID player) in (_object getVariable["ownerArray",[]])) or (count (_object getVariable["ownerArray",[]]) == 0) or (typeOf _object in ["WoodenFence_1_foundation","WoodenGate_foundation"]))};
//Turrets
//case "AddAmmo": {IS_ALIVE && CAN_DO && IN_VEHICLE && (((assignedVehicleRole player) select 0) == 'Turret')};
default {false};
};

View File

@@ -1,4 +1,4 @@
private ["_projectile","_unit","_ammo"];
private ["_projectile","_unit","_ammo","_audible","_caliber","_distance"];
//[unit, weapon, muzzle, mode, ammo, magazine, projectile]
_unit = _this select 0;