mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
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.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
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];
|
||||
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];
|
||||
};
|
||||
player setVariable["combattimeout", diag_tickTime + 30, false];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user