Overheating - Add stats to arsenal (#9719)

* Overheating - Add Bolt Type stat to arsenal

* Add stat for barrel swapping

* Update addons/overheating/ACE_Arsenal_Stats.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/overheating/functions/fnc_statTextStatement_allowSwapBarrel.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Drofseh 2024-01-07 15:04:10 -08:00 committed by GitHub
parent 474ecdd93b
commit b58807088a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,21 @@
class EGVAR(arsenal,stats) {
class statBase;
class ACE_allowSwapBarrel: statBase {
scope = 2;
priority = -1;
stats[] = {QGVAR(allowSwapBarrel)};
displayName = CSTRING(statBarrelType);
showText = 1;
textStatement = QUOTE(call FUNC(statTextStatement_allowSwapBarrel));
tabs[] = {{0,1}, {}};
};
class ACE_boltType: statBase {
scope = 2;
priority = -1.1;
stats[] = {QGVAR(closedBolt)};
displayName = CSTRING(statBoltType);
showText = 1;
textStatement = QUOTE(call FUNC(statTextStatement_boltType));
tabs[] = {{0,1}, {}};
};
};

View File

@ -25,6 +25,8 @@ PREP(overheat);
PREP(sendSpareBarrelsTemperaturesHint); PREP(sendSpareBarrelsTemperaturesHint);
PREP(setAmmoTemperature); PREP(setAmmoTemperature);
PREP(setWeaponTemperature); PREP(setWeaponTemperature);
PREP(statTextStatement_boltType);
PREP(statTextStatement_allowSwapBarrel);
PREP(swapBarrel); PREP(swapBarrel);
PREP(swapBarrelAssistant); PREP(swapBarrelAssistant);
PREP(swapBarrelCallback); PREP(swapBarrelCallback);

View File

@ -26,6 +26,8 @@ class CfgPatches {
#include "ACE_Settings.hpp" #include "ACE_Settings.hpp"
#include "ACE_Arsenal_Stats.hpp"
class CfgMovesBasic { class CfgMovesBasic {
class ManActions { class ManActions {
GVAR(GestureMountMuzzle) = QGVAR(GestureMountMuzzle); GVAR(GestureMountMuzzle) = QGVAR(GestureMountMuzzle);

View File

@ -0,0 +1,21 @@
#include "..\script_component.hpp"
/*
* Author: drofseh
* Barrel Type statement.
*
* Arguments:
* 0: Not used
* 1: Item config path <CONFIG>
*
* Return Value:
* Stat Text <STRING>
*
* Public: No
*/
params ["", "_config"];
TRACE_1("statTextStatement_allowSwapBarrel",_config);
if ((getNumber (_config >> QGVAR(allowSwapBarrel))) == 1) exitWith {LLSTRING(statBarrelType_removeable)};
LLSTRING(statBarrelType_nonRemoveable)

View File

@ -0,0 +1,21 @@
#include "..\script_component.hpp"
/*
* Author: drofseh
* Bolt Type statement.
*
* Arguments:
* 0: Not used
* 1: Item config path <CONFIG>
*
* Return Value:
* Stat Text <STRING>
*
* Public: No
*/
params ["", "_config"];
TRACE_1("statTextStatement_boltType",_config);
if ((getNumber (_config >> QGVAR(closedBolt))) == 1) exitWith {LLSTRING(statBoltType_closedBolt)};
LLSTRING(statBoltType_openBolt)

View File

@ -875,5 +875,23 @@
<Chinesesimp>备用枪管温度非常热</Chinesesimp> <Chinesesimp>备用枪管温度非常热</Chinesesimp>
<Chinese>備用槍管溫度超級熱</Chinese> <Chinese>備用槍管溫度超級熱</Chinese>
</Key> </Key>
<Key ID="STR_ACE_Overheating_statBoltType">
<English>Bolt Type</English>
</Key>
<Key ID="STR_ACE_Overheating_statBoltType_openBolt">
<English>Open Bolt</English>
</Key>
<Key ID="STR_ACE_Overheating_statBoltType_closedBolt">
<English>Closed Bolt</English>
</Key>
<Key ID="STR_ACE_Overheating_statBarrelType">
<English>Barrel Type</English>
</Key>
<Key ID="STR_ACE_Overheating_statBarrelType_nonRemoveable">
<English>Non-Removeable</English>
</Key>
<Key ID="STR_ACE_Overheating_statBarrelType_removeable">
<English>Quick Change</English>
</Key>
</Package> </Package>
</Project> </Project>