mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix adv. throw key handling when reloading (#5336)
* Fix throw key handling when reloading * Consider UGL reload to ace_common_isReloading var * Fix if space, change private var assign * Shorten UGL check
This commit is contained in:
parent
84061cb593
commit
dd3a66a643
@ -21,6 +21,7 @@ GVAR(ammoMagLookup) = call CBA_fnc_createNamespace;
|
|||||||
["ACE3 Weapons", QGVAR(prepare), localize LSTRING(Prepare), {
|
["ACE3 Weapons", QGVAR(prepare), localize LSTRING(Prepare), {
|
||||||
// Condition
|
// Condition
|
||||||
if (!([ACE_player] call FUNC(canPrepare))) exitWith {false};
|
if (!([ACE_player] call FUNC(canPrepare))) exitWith {false};
|
||||||
|
if (EGVAR(common,isReloading)) exitWith {true};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
[ACE_player] call FUNC(prepare);
|
[ACE_player] call FUNC(prepare);
|
||||||
|
@ -32,6 +32,5 @@ GVAR(enabled) &&
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
{!(call EFUNC(common,isFeatureCameraActive))} &&
|
{!(call EFUNC(common,isFeatureCameraActive))} &&
|
||||||
{!EGVAR(common,isReloading)} &&
|
|
||||||
{[_unit, objNull, ["isNotInside", "isNotSitting"/*, "isNotOnLadder"*/]] call EFUNC(common,canInteractWith)} && // Ladder needs positioning fixes on throw
|
{[_unit, objNull, ["isNotInside", "isNotSitting"/*, "isNotOnLadder"*/]] call EFUNC(common,canInteractWith)} && // Ladder needs positioning fixes on throw
|
||||||
{_unit call CBA_fnc_canUseWeapon} // Disable in non-FFV seats due to surface detection issues
|
{_unit call CBA_fnc_canUseWeapon} // Disable in non-FFV seats due to surface detection issues
|
||||||
|
@ -373,7 +373,9 @@ GVAR(isReloading) = false;
|
|||||||
private _weapon = currentWeapon ACE_player;
|
private _weapon = currentWeapon ACE_player;
|
||||||
|
|
||||||
if (_weapon != "") then {
|
if (_weapon != "") then {
|
||||||
private _gesture = getText (configfile >> "CfgWeapons" >> _weapon >> "reloadAction");
|
private _muzzle = currentMuzzle ACE_player;
|
||||||
|
private _wpnConfig = configFile >> "CfgWeapons" >> _weapon;
|
||||||
|
private _gesture = getText ([_wpnConfig >> _muzzle, _wpnConfig] select (_weapon isEqualTo _muzzle) >> "reloadAction");
|
||||||
if (_gesture == "") exitWith {}; //Ignore weapons with no reload gesture (binoculars)
|
if (_gesture == "") exitWith {}; //Ignore weapons with no reload gesture (binoculars)
|
||||||
private _isLauncher = _weapon isKindOf ["Launcher", configFile >> "CfgWeapons"];
|
private _isLauncher = _weapon isKindOf ["Launcher", configFile >> "CfgWeapons"];
|
||||||
private _config = ["CfgGesturesMale", "CfgMovesMaleSdr"] select _isLauncher;
|
private _config = ["CfgGesturesMale", "CfgMovesMaleSdr"] select _isLauncher;
|
||||||
|
Loading…
Reference in New Issue
Block a user