mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
potential fix for swimming in ground
still requires spawn debug to be on land due to issues logging in and out on rocks, docks, etc.
This commit is contained in:
@@ -29,6 +29,19 @@ if (["pknl",_anim] call fnc_inString) then {
|
||||
if (_anim4 == "aswm") then {
|
||||
_scaleMvmt = 0.3;
|
||||
dayz_isSwimming = true;
|
||||
|
||||
// if surface is not water
|
||||
_isWater = surfaceIsWater _pos;
|
||||
if(!_isWater) then {
|
||||
|
||||
// Stops swimming in ground
|
||||
[objNull, player, rSwitchMove,""] call RE;
|
||||
player playActionNow "stop";
|
||||
|
||||
dayz_isSwimming = false;
|
||||
};
|
||||
|
||||
|
||||
} else {
|
||||
dayz_isSwimming = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user