Magazine Repack - Add idle animation when a player starts repacking magazines (#8825)

* Added Gear gesture animation when a player starts repacking magazines

(previously you'd just sit there doing nothing for X seconds)

* Added Repack Animation ACE Setting for allow for disabling of idle animation during repacking

* Corrected Polish translation for setting name

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>

* Corrected German translation for setting name

* Removed French translation until someone can provide one

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
This commit is contained in:
JonBons 2022-03-07 12:35:26 -06:00 committed by GitHub
parent a4ae61f1fc
commit 8b60fae23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -61,6 +61,10 @@ if (count _startingAmmoCounts < 2) exitWith {ERROR("Not Enough Mags to Repack");
private _simEvents = [_fullMagazineCount, _startingAmmoCounts, _isBelt] call FUNC(simulateRepackEvents);
private _totalTime = _simEvents select (count _simEvents - 1) select 0;
if (GVAR(repackAnimation)) then {
[_player, "Gear"] call EFUNC(common,doGesture);
};
[
_totalTime,
[_magazineClassname, _startingAmmoCounts, _simEvents],

View File

@ -31,3 +31,11 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
true,
0
] call CBA_fnc_addSetting;
[
QGVAR(repackAnimation), "CHECKBOX",
LSTRING(repackAnimation),
_category,
true,
0
] call CBA_fnc_addSetting;

View File

@ -186,5 +186,10 @@
<Chinesesimp>重新整理弹匣,武器未上膛</Chinesesimp>
<Korean>탄창 다시 채우는 중, 무기에서 탄창 뺌</Korean>
</Key>
<Key ID="STR_ACE_MagazineRepack_repackAnimation">
<English>Repack Animation</English>
<German>Animation für Umpacken</German>
<Polish>Animacja przepakowywania</Polish>
</Key>
</Package>
</Project>