mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
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.
14 lines
407 B
Plaintext
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];
|
|
};
|
|
};
|