mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Improve reload animations
This commit is contained in:
parent
bce572e1df
commit
80b9a8961a
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user