Improve reload animations

This commit is contained in:
esteldunedain 2016-01-20 12:48:39 -03:00
parent bce572e1df
commit 80b9a8961a
3 changed files with 16 additions and 2 deletions

View File

@ -22,3 +22,14 @@ class CfgPatches {
#include "ACE_Settings.hpp" #include "ACE_Settings.hpp"
class CfgGesturesMale {
class States {
class GestureReloadBase;
class GestureMountMuzzle: GestureReloadBase {
speed = 0.3;
};
class GestureDismountMuzzle: GestureReloadBase {
speed = 0.3;
};
};
};

View File

@ -23,7 +23,7 @@ if (stance _player != "PRONE") then {
[_player, "amovpknlmstpsraswrfldnon", 1] call EFUNC(common,doAnimation); [_player, "amovpknlmstpsraswrfldnon", 1] call EFUNC(common,doAnimation);
}; };
_player playActionNow "GestureDismountMuzzle"; _player playActionNow "GestureDismountMuzzle";
_player playAction "GestureMountMuzzle";
playSound "ACE_BarrelSwap"; playSound "ACE_BarrelSwap";
_player playAction "GestureMountMuzzle";
[10, [_player, _weapon], {(_this select 0) call FUNC(swapBarrelCallback)}, {}, (localize LSTRING(SwappingBarrel))] call EFUNC(common,progressBar); [5, [_player, _weapon], {(_this select 0) call FUNC(swapBarrelCallback)}, {}, (localize LSTRING(SwappingBarrel))] call EFUNC(common,progressBar);

View File

@ -19,6 +19,9 @@
params ["_player", "_weapon"]; params ["_player", "_weapon"];
TRACE_2("params",_player,_weapon); TRACE_2("params",_player,_weapon);
_player playAction "GestureMountMuzzle";
playSound "ACE_BarrelSwap";
// don't consume the barrel, but rotate through them. // don't consume the barrel, but rotate through them.
[localize LSTRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture); [localize LSTRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);