mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +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,18 +1,17 @@
|
||||
private ["_v","_int","_t","_b"];
|
||||
_v=_this select 0;
|
||||
private ["_v","_int","_isVeh","_b"];
|
||||
_v = _this select 0;
|
||||
|
||||
if (!DZE_NoVehicleExplosions) then {
|
||||
if (_v iskindof "helicopter" || _v iskindof "plane") then {
|
||||
["AirDestruction", _v] call BIS_Effects_globalEvent;
|
||||
};
|
||||
if (_v iskindof "tank") then {
|
||||
_int = (fuel _v)*(2+random 2);
|
||||
_t = time;
|
||||
[_v,_int] spawn BIS_Effects_Secondaries;
|
||||
["Eject", _v] call BIS_Effects_globalEvent;
|
||||
};
|
||||
if (_v iskindof "car" || _v iskindof "ship") then {
|
||||
_int = (fuel _v)*(2 + random 1);
|
||||
_t = time;
|
||||
[_v,_int] spawn BIS_Effects_Secondaries;
|
||||
["Eject", _v] call BIS_Effects_globalEvent;
|
||||
if ((random _int)>2.2) then
|
||||
|
||||
Reference in New Issue
Block a user