mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
474ecdd93b
commit
b58807088a
21
addons/overheating/ACE_Arsenal_Stats.hpp
Normal file
21
addons/overheating/ACE_Arsenal_Stats.hpp
Normal 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}, {}};
|
||||
};
|
||||
};
|
@ -25,6 +25,8 @@ PREP(overheat);
|
||||
PREP(sendSpareBarrelsTemperaturesHint);
|
||||
PREP(setAmmoTemperature);
|
||||
PREP(setWeaponTemperature);
|
||||
PREP(statTextStatement_boltType);
|
||||
PREP(statTextStatement_allowSwapBarrel);
|
||||
PREP(swapBarrel);
|
||||
PREP(swapBarrelAssistant);
|
||||
PREP(swapBarrelCallback);
|
||||
|
@ -26,6 +26,8 @@ class CfgPatches {
|
||||
|
||||
#include "ACE_Settings.hpp"
|
||||
|
||||
#include "ACE_Arsenal_Stats.hpp"
|
||||
|
||||
class CfgMovesBasic {
|
||||
class ManActions {
|
||||
GVAR(GestureMountMuzzle) = QGVAR(GestureMountMuzzle);
|
||||
|
@ -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)
|
@ -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)
|
@ -875,5 +875,23 @@
|
||||
<Chinesesimp>备用枪管温度非常热</Chinesesimp>
|
||||
<Chinese>備用槍管溫度超級熱</Chinese>
|
||||
</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>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user