-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
When playing on the map Prilivsko (Flooded), several players were drowning while on top of sheds, houses, etc.
I have found that Arma keeps ticking down the players oxygen when climbing out of the water onto objects, conditionally. We can consistently reproduce it on certain objects at certain positions, but it doesn't happen at all positions on the objects.
I think this is more of an Arma bug, but can only be reproduced using EMR, since you can't climb in vanilla.
I am just using this right now as a workaround, but unfortunately it creates a single frame flash for the players.
["emr_main_climbingEnd", {
[{
params ["_unit"];
if (getOxygenRemaining _unit < 1 && !underwater _unit) then {
private _pos = getPosASL _unit;
private _newPos = +_pos;
_newPos set [2, -100];
_unit setPosASL _newPos;
[{
params ["_unit", "_pos"];
_unit setPosASL _pos;
}, [_unit, _pos]] call CBA_fnc_execNextFrame;
};
}, _this, 1] call CBA_fnc_waitAndExecute;
}] call CBA_fnc_addEventHandler;Metadata
Metadata
Assignees
Labels
No labels