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:
vbawol
2013-03-21 16:45:08 -05:00
parent b0da67272b
commit f6c480f1e1

View File

@@ -29,6 +29,19 @@ if (["pknl",_anim] call fnc_inString) then {
if (_anim4 == "aswm") then { if (_anim4 == "aswm") then {
_scaleMvmt = 0.3; _scaleMvmt = 0.3;
dayz_isSwimming = true; 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 { } else {
dayz_isSwimming = false; dayz_isSwimming = false;
}; };