mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixed to use proper 4-space tabbing
This commit is contained in:
parent
0e0935ac01
commit
4b50d760e9
@ -32,23 +32,17 @@ GVAR(Module) = true;
|
||||
|
||||
if (isServer) then {
|
||||
if (GVAR(RemoveDeadBodiesDisconnected)) then {
|
||||
addMissionEventHandler ["HandleDisconnect",
|
||||
{
|
||||
[
|
||||
{
|
||||
_unit = _this select 0;
|
||||
addMissionEventHandler ["HandleDisconnect", {
|
||||
[{
|
||||
_unit = _this select 0;
|
||||
|
||||
if (!alive _unit) then {
|
||||
deleteVehicle _unit;
|
||||
};
|
||||
if (!alive _unit) then {
|
||||
deleteVehicle _unit;
|
||||
};
|
||||
},
|
||||
_this,
|
||||
4,
|
||||
1
|
||||
] call EFUNC(common,waitAndExecute);
|
||||
false
|
||||
}
|
||||
];
|
||||
_this, 4, 1] call EFUNC(common,waitAndExecute);
|
||||
false
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -37,8 +37,7 @@ if (count _position == 0) then {_position = getPosATL _unit};
|
||||
|
||||
_position set [2, 0];
|
||||
|
||||
[
|
||||
{
|
||||
[{
|
||||
_rallypoint = _this select 0;
|
||||
_unit = _this select 1;
|
||||
_position = _this select 2;
|
||||
@ -54,8 +53,5 @@ _position set [2, 0];
|
||||
*/
|
||||
|
||||
[localize "STR_ACE_Respawn_Deploy"] call EFUNC(common,displayTextStructured);
|
||||
},
|
||||
[_rallypoint, _unit, _position, _rallypoint],
|
||||
5,
|
||||
1
|
||||
] call EFUNC(common,waitAndExecute);
|
||||
},
|
||||
[_rallypoint, _unit, _position, _rallypoint], 5, 1] call EFUNC(common,waitAndExecute);
|
||||
|
@ -29,13 +29,8 @@ if (_forceRemove) then {
|
||||
_bodyRemoveTimer = 2;
|
||||
};
|
||||
|
||||
[
|
||||
{
|
||||
[{
|
||||
// hideBody takes ~20s till body is fully underground
|
||||
// a better hideBody would make this more aesthetic
|
||||
deleteVehicle _this;
|
||||
},
|
||||
_body,
|
||||
_bodyRemoveTimer,
|
||||
1
|
||||
] call EFUNC(common,waitAndExecute);
|
||||
}, _body, _bodyRemoveTimer, 1] call EFUNC(common,waitAndExecute);
|
||||
|
Loading…
Reference in New Issue
Block a user