Add new combat function

This commit is contained in:
A Man
2022-05-05 17:58:09 +02:00
parent 38f7e1d1c3
commit effb78fe13
5 changed files with 17 additions and 16 deletions

View File

@@ -1,13 +1,8 @@
if !(isDedicated) then {
private "_amm";
_amm = _this select 4;
local _amm = _this select 4;
_this call (call compile GetText (configFile >> "CfgAmmo" >> _amm >> "muzzleEffect"));
//Handle combat in vehicle
if (player in (crew (_this select 0))) then {
if !(player getVariable ["inCombat",false]) then {
player setVariable ["inCombat",true,true];
};
player setVariable["combattimeout", diag_tickTime + 30, false];
[player,true] call fnc_setCombat;
};
};