Files
DayZ-Epoch/SQF/dayz_code/system/BIS_Effects/fired.sqf
AirwavesMan 0b6df45690 Update BIS Effects and fix eject bug for Cessna
This commit fixes the cessna getOut bug. Sometimes if the cessna explodes and the player did not die he was trapped inside of the cessna wreck. Switching from getOut to eject fixes this problem.
Ive did a lot tests and it should be save to eject instead of getOut.
2020-10-31 10:19:27 +01:00

14 lines
407 B
Plaintext

if !(isDedicated) then {
private "_amm";
_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];
};
};