From aac372d320a2018936d6a506df72f18bbeab9644 Mon Sep 17 00:00:00 2001 From: icomrade Date: Thu, 13 Oct 2016 11:40:54 -0400 Subject: [PATCH] Remove animation for switching clothes If the gear sync script is called during the animation, the player will fail the gear sync and not change clothes. After removing the anim this no longer happens. Also I think this is a BS change that only inconveniences the player and makes something that is already cumbersome even more so --- SQF/dayz_code/actions/player_wearClothes.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_wearClothes.sqf b/SQF/dayz_code/actions/player_wearClothes.sqf index 6537087e4..1bde3b5e5 100644 --- a/SQF/dayz_code/actions/player_wearClothes.sqf +++ b/SQF/dayz_code/actions/player_wearClothes.sqf @@ -47,13 +47,14 @@ if ( (isClass(_config >> _itemNew)) ) then { _model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel"); if (_model != _myModel) then { if(([player,_item] call BIS_fnc_invRemove) == 1) then { + /* //play animation when changing clothes (Prevents out of breath resetting) player playActionNow "Medic"; //wait animation end waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 1}; waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 0}; - + */ player addMagazine _itemNew; [dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph; };