-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class EGVAR(arsenal,stats) { | ||
class statBase; | ||
class GVAR(tripods): statBase { | ||
scope = 2; | ||
priority = -1.5; | ||
displayName = CSTRING(statTripods); | ||
condition = QUOTE((_this select 1) call FUNC(statTextCondition_tripods)); | ||
showText = 1; | ||
textStatement = QUOTE((_this select 1) call FUNC(statTextStatement_tripods)); | ||
tabs[] = {{0, 2}, {}}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: johnb43 | ||
* Text condition for displaying which tripods are needed for a CSW. | ||
* | ||
* Arguments: | ||
* 0: Item config path <CONFIG> | ||
* | ||
* Return Value: | ||
* Whether to display stat or not <BOOL> | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_config"]; | ||
|
||
(configProperties [configFile >> "CfgWeapons" >> configName _config >> QUOTE(ADDON) >> "assembleTo", "true", true]) isNotEqualTo [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: johnb43 | ||
* Text statement for displaying which tripods are needed for a CSW. | ||
* | ||
* Arguments: | ||
* 0: Item config path <CONFIG> | ||
* | ||
* Return Value: | ||
* Stat Text <ARRAY of STRINGS> | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_config"]; | ||
|
||
private _cfgWeapons = configFile >> "CfgWeapons"; | ||
private _cfgVehicles = configFile >> "CfgVehicles"; | ||
|
||
(configProperties [_cfgWeapons >> configName _config >> QUOTE(ADDON) >> "assembleTo", "true", true]) apply { | ||
private _tripod = getText (_cfgVehicles >> configName _x >> QUOTE(ADDON) >> "disassembleTo"); | ||
|
||
getText (_cfgWeapons >> _tripod >> "displayName") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters