mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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
This commit is contained in:
@@ -47,13 +47,14 @@ if ( (isClass(_config >> _itemNew)) ) then {
|
|||||||
_model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
|
_model = getText (configFile >> "CfgSurvival" >> "Skins" >> _item >> "playerModel");
|
||||||
if (_model != _myModel) then {
|
if (_model != _myModel) then {
|
||||||
if(([player,_item] call BIS_fnc_invRemove) == 1) then {
|
if(([player,_item] call BIS_fnc_invRemove) == 1) then {
|
||||||
|
/*
|
||||||
//play animation when changing clothes (Prevents out of breath resetting)
|
//play animation when changing clothes (Prevents out of breath resetting)
|
||||||
player playActionNow "Medic";
|
player playActionNow "Medic";
|
||||||
|
|
||||||
//wait animation end
|
//wait animation end
|
||||||
waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 1};
|
waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 1};
|
||||||
waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 0};
|
waitUntil {getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "disableWeapons") == 0};
|
||||||
|
*/
|
||||||
player addMagazine _itemNew;
|
player addMagazine _itemNew;
|
||||||
[dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
|
[dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user