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:
AirwavesMan
2020-10-31 10:19:27 +01:00
parent 7851663842
commit 0b6df45690
3 changed files with 35 additions and 30 deletions

View File

@@ -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];
};
};