Skip to content

Commit

Permalink
Merge pull request #1179 from Vdauphin/master_daily
Browse files Browse the repository at this point in the history
UPDATE: 1.21 to 1.22
  • Loading branch information
Vdauphin authored Feb 1, 2022
2 parents 62f54cf + 7604e5c commit 770bec6
Show file tree
Hide file tree
Showing 315 changed files with 7,350 additions and 7,515 deletions.
17 changes: 9 additions & 8 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ change-template: '- $TITLE (@$AUTHOR).'
template: |
Requires [ACE3](https://steamcommunity.com/workshop/filedetails/?id=463939057).
_[Optionals :](https://github.com/Vdauphin/HeartsAndMinds/files/7565267/All_Hearts_and_Minds_mods.zip)_
- [CUP units and vehicles mod](https://forums.bistudio.com/topic/179326-community-upgrade-project-cup/), [Community Factions Project](https://steamcommunity.com/workshop/filedetails/?id=1369691841), [Cold War Rearmed III](https://steamcommunity.com/sharedfiles/filedetails/?id=2316343124),
_[Optionals :](https://gist.github.com/Vdauphin/0c33ac9ed407ff97f7e03c0b40e52713)_
- [CUP units and vehicles mod](https://forums.bistudio.com/topic/179326-community-upgrade-project-cup/), [Community Factions Project](https://steamcommunity.com/workshop/filedetails/?id=1369691841), [Cold War Rearmed III](https://steamcommunity.com/sharedfiles/filedetails/?id=2316343124)
- [RHS USAF](http://www.rhsmods.org/), [RHS AFRF](http://www.rhsmods.org/), [RHS GREF](http://www.rhsmods.org/), [RHS SAF](http://www.rhsmods.org/), [CSLA Iron Curtain CDLC](https://store.steampowered.com/app/1294440/Arma_3_Creator_DLC_CSLA_Iron_Curtain/)
- [RDS A2 Civilian Pack mod](https://forums.bistudio.com/topic/170165-rds-a2-civilian-pack/),
- [3CB Factions](https://steamcommunity.com/sharedfiles/filedetails/?id=1673456286), [Central African Rebels [SFF-R]](https://steamcommunity.com/sharedfiles/filedetails/?id=879843800), [Taliban Force 2021 (RHS & 3CB)](https://steamcommunity.com/workshop/filedetails/?id=2585568796), [Western Sahara CDLC](https://steamcommunity.com/sharedfiles/filedetails/?id=2636962953),
- [FAP Units (Foes & Allies Pack)](https://steamcommunity.com/sharedfiles/filedetails/?id=656514091), [VETERAN](https://steamcommunity.com/workshop/filedetails/?id=2606347911), [GLOBAL MOBILIZATION - COLD WAR GERMANY CDLC](https://store.steampowered.com/app/1042220/Arma_3_Creator_DLC_Global_Mobilization__Cold_War_Germany/)
- [RDS A2 Civilian Pack mod](https://forums.bistudio.com/topic/170165-rds-a2-civilian-pack/)
- [Aegis](https://steamcommunity.com/workshop/filedetails/?id=949252631), [Western Sahara CDLC](https://steamcommunity.com/sharedfiles/filedetails/?id=2636962953)
- [3CB Factions](https://steamcommunity.com/sharedfiles/filedetails/?id=1673456286), [Central African Rebels [SFF-R]](https://steamcommunity.com/sharedfiles/filedetails/?id=879843800), [Taliban Force 2021 (RHS & 3CB)](https://steamcommunity.com/workshop/filedetails/?id=2588430396)
- [FAP Units (Foes & Allies Pack)](https://steamcommunity.com/sharedfiles/filedetails/?id=656514091), [GLOBAL MOBILIZATION - COLD WAR GERMANY CDLC](https://store.steampowered.com/app/1042220/Arma_3_Creator_DLC_Global_Mobilization__Cold_War_Germany/)
- [The Unsung Vietnam War Mod](https://steamcommunity.com/workshop/filedetails/?id=943001311), [S.O.G. PRAIRIE FIRE CDLC](https://store.steampowered.com/app/1227700/Arma_3_Creator_DLC_SOG_Prairie_Fire/)
- [Iron Front 3 Lite](https://steamcommunity.com/sharedfiles/filedetails/?id=878977835), [Face of War WW2](https://steamcommunity.com/sharedfiles/filedetails/?id=891433622),
- [Operation: TREBUCHET](https://steamcommunity.com/sharedfiles/filedetails/?id=769440155), [Operation: TREBUCHET First Contact](https://steamcommunity.com/workshop/filedetails/?id=1572627279).
- [Iron Front 3 Lite](https://steamcommunity.com/sharedfiles/filedetails/?id=2648308937), [Face of War WW2](https://steamcommunity.com/sharedfiles/filedetails/?id=891433622)
- [Operation: TREBUCHET](https://steamcommunity.com/sharedfiles/filedetails/?id=769440155), [JM's Long Live The Empire](https://steamcommunity.com/sharedfiles/filedetails/?id=2588430396), [Scion Conflict](https://steamcommunity.com/sharedfiles/filedetails/?id=2478080991), [Operation: TREBUCHET First Contact](https://steamcommunity.com/workshop/filedetails/?id=1572627279)
[Changelog](https://github.com/Vdauphin/HeartsAndMinds/milestone/74?closed=1):
[Changelog](https://github.com/Vdauphin/HeartsAndMinds/milestone/64?closed=1):
- Mission.sqm/Param.hpp not changed.
$CHANGES
340 changes: 163 additions & 177 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/def/mission.sqf

Large diffs are not rendered by default.

80 changes: 55 additions & 25 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/def/param.hpp

Large diffs are not rendered by default.

42 changes: 24 additions & 18 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/doc.sqf
Original file line number Diff line number Diff line change
@@ -1,53 +1,59 @@
private _MainCategory = localize "str_3den_display3den_menubar_helpdoc_text";
player createDiarySubject [_MainCategory, _MainCategory];
private _mainCategory = localize "str_3den_display3den_menubar_helpdoc_text";
player createDiarySubject [_mainCategory, _mainCategory, "\A3\ui_f\data\igui\cfg\simpleTasks\types\documents_ca.paa"];

//Headless and Data base
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_HEADLESS_TITLE", localize "STR_BTC_HAM_DOC_HEADLESS_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_HEADLESS_TITLE", localize "STR_BTC_HAM_DOC_HEADLESS_TEXT"]];

//Door locked
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_DOOR_TITLE", localize "STR_BTC_HAM_DOC_DOOR_TEXT"]];

//Chemical warfare
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_CHEMICALWARFARE_TITLE", localize "STR_BTC_HAM_DOC_CHEMICALWARFARE_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_CHEMICALWARFARE_TITLE", localize "STR_BTC_HAM_DOC_CHEMICALWARFARE_TEXT"]];

//Spectrum devices
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_SPECTRUMDEVICES_TITLE", localize "STR_BTC_HAM_DOC_SPECTRUMDEVICES_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_SPECTRUMDEVICES_TITLE", localize "STR_BTC_HAM_DOC_SPECTRUMDEVICES_TEXT"]];

//Vehicles
player createDiaryRecord [_MainCategory, [localize "str_a3_cfghints_command_vehicles1", localize "STR_BTC_HAM_DOC_VEHICLES_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "str_a3_cfghints_command_vehicles1", localize "STR_BTC_HAM_DOC_VEHICLES_TEXT"]];

//Side Mission
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_SIDEMISSION_TITLE", localize "STR_BTC_HAM_DOC_SIDEMISSION_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_SIDEMISSION_TITLE", localize "STR_BTC_HAM_DOC_SIDEMISSION_TEXT"]];

//Respawn tickets
player createDiaryRecord [_mainCategory, [localize "str_a3_cfgvehicles_modulerespawntickets_f", localize "STR_BTC_HAM_DOC_RESPAWN_TEXT"]];

//Respawn position
player createDiaryRecord [_MainCategory, [localize "str_a3_cfgvehicles_modulerespawnposition_f_0", localize "STR_BTC_HAM_DOC_FOB_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "str_a3_cfgvehicles_modulerespawnposition_f_0", localize "STR_BTC_HAM_DOC_FOB_TEXT"]];

//Sling loading
player createDiaryRecord [_MainCategory, [localize "STR_A3_SlingLoad1", localize "STR_BTC_HAM_DOC_SLING_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_A3_SlingLoad1", localize "STR_BTC_HAM_DOC_SLING_TEXT"]];

//Logistic point
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_MSQM_MRK_LOGPOINT", localize "STR_BTC_HAM_DOC_LOGISTICP_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_MSQM_MRK_LOGPOINT", localize "STR_BTC_HAM_DOC_LOGISTICP_TEXT"]];

//Logistic
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_ACTION_LOC_MAIN", localize "STR_BTC_HAM_DOC_LOGISTIC_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_ACTION_LOC_MAIN", localize "STR_BTC_HAM_DOC_LOGISTIC_TEXT"]];

//Hideout
player createDiaryRecord [_MainCategory, [localize "str_a3_campaign_b_m03_marker02", localize "STR_BTC_HAM_DOC_HIDEOUT_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "str_a3_campaign_b_m03_marker02", localize "STR_BTC_HAM_DOC_HIDEOUT_TEXT"]];

//IED
player createDiaryRecord [_MainCategory, ["IED", localize "STR_BTC_HAM_DOC_IED_TEXT"]];
player createDiaryRecord [_mainCategory, ["IED", localize "STR_BTC_HAM_DOC_IED_TEXT"]];

//Intel
player createDiaryRecord [_MainCategory, [localize "str_a3_mdl_category_intel", localize "STR_BTC_HAM_DOC_INTEL_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "str_a3_mdl_category_intel", localize "STR_BTC_HAM_DOC_INTEL_TEXT"]];

//Reputation
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_REPUTATION_TITLE", localize "STR_BTC_HAM_DOC_REPUTATION_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_REPUTATION_TITLE", localize "STR_BTC_HAM_DOC_REPUTATION_TEXT"]];

//Orders
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_ACTION_ORDERS_MAIN", localize "STR_BTC_HAM_DOC_ORDERS_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_ACTION_ORDERS_MAIN", localize "STR_BTC_HAM_DOC_ORDERS_TEXT"]];

//Traffic
player createDiaryRecord [_MainCategory, [localize "STR_BTC_HAM_DOC_TRAFFIC_TITLE", localize "STR_BTC_HAM_DOC_TRAFFIC_TEXT"]];
player createDiaryRecord [_mainCategory, [localize "STR_BTC_HAM_DOC_TRAFFIC_TITLE", localize "STR_BTC_HAM_DOC_TRAFFIC_TEXT"]];

//Version
player createDiaryRecord [_MainCategory, [localize "STR_A3_FM_Welcome4",
player createDiaryRecord [_mainCategory, [localize "STR_A3_FM_Welcome4",
format (["<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa' width='20' height='20'/> Version %1.%2.%3 <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa' width='20' height='20'/> <br/><br/> <img image='\a3\missions_f_orange\Data\Img\orange_overview_ca.paa' width='355' height='200'/>"] + btc_version)
]
];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* ----------------------------------------------------------------------------
Function: btc_fnc_arsenal_ammoUsage
Function: btc_arsenal_fnc_ammoUsage
Description:
Select weapons if:
Expand All @@ -9,15 +9,15 @@ Description:
- and is not/is parent to a parent
Parameters:
_weapons - Array of weapopns. [Array]
_weapons - Array of weapons. [Array]
_itemType_ammo_usageAllowed - Weapons allowed filter: array of item type ("AssaultRifle", "MissileLauncher"...), allowed ammo usage ("128 + 512": ammo against vehicles and armored vehicles) and array to check if weapons are parent to a parent. [Array]
Returns:
Array of selected weapons
Examples:
(begin example)
_weapons_selected = [["launch_RPG7_F"], ["MissileLauncher", "256", []]] call btc_fnc_arsenal_ammoUsage;
_weapons_selected = [["launch_RPG7_F"], ["MissileLauncher", "256", []]] call btc_arsenal_fnc_ammoUsage;
(end)
Author:
Expand Down Expand Up @@ -55,7 +55,7 @@ _weapons select {

if (btc_debug_log) then {
if ("" in _aiAmmoUsage_magazines) then {
[format ["Weapons: %1 AiAmmoUsage Magazines: %2", _weapon, _aiAmmoUsage_magazines], __FILE__, [false]] call btc_fnc_debug_message;
[format ["Weapons: %1 AiAmmoUsage Magazines: %2", _weapon, _aiAmmoUsage_magazines], __FILE__, [false]] call btc_debug_fnc_message;
};
};

Expand Down
4 changes: 2 additions & 2 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/arsenal/data.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* ----------------------------------------------------------------------------
Function: btc_fnc_arsenal_data
Function: btc_arsenal_fnc_data
Description:
Add virtual weapons to an object (e.g., ammo box) with restriction. Virtual items can be selected in the BIS/ACE3 Arsenal.
Expand All @@ -15,7 +15,7 @@ Returns:
Examples:
(begin example)
[btc_gear_object, btc_p_arsenal_Type, btc_p_arsenal_Restrict, btc_custom_arsenal] call btc_fnc_arsenal_data;
[btc_gear_object, btc_p_arsenal_Type, btc_p_arsenal_Restrict, btc_custom_arsenal] call btc_arsenal_fnc_data;
(end)
Author:
Expand Down
8 changes: 4 additions & 4 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/arsenal/garage.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* ----------------------------------------------------------------------------
Function: btc_fnc_arsenal_garage
Function: btc_arsenal_fnc_garage
Description:
Open virtual Arsenal garage on object position.
Expand All @@ -12,7 +12,7 @@ Returns:
Examples:
(begin example)
[btc_create_object_point] call btc_fnc_arsenal_garage;
[btc_create_object_point] spawn btc_arsenal_fnc_garage;
(end)
Author:
Expand Down Expand Up @@ -55,7 +55,7 @@ with uiNamespace do {
private _customization = [_x] call BIS_fnc_getVehicleCustomization;

_x call CBA_fnc_deleteEntity;
[_type, _pos, _dir, _customization] remoteExecCall ["btc_fnc_log_createVehicle", 2];
[_type] remoteExecCall ["btc_fnc_veh_init", -2];
[_type, _pos, _dir, _customization] remoteExecCall ["btc_log_fnc_createVehicle", 2];
[_type] remoteExecCall ["btc_veh_fnc_init", -2];
} forEach _veh_list;
};
46 changes: 36 additions & 10 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/arsenal/loadout.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* ----------------------------------------------------------------------------
Function: btc_fnc_arsenal_loadout
Function: btc_arsenal_fnc_loadout
Description:
Generate a loadout from an array of defined loadout depending on trait, medical level, color and hour of the day.
Expand All @@ -17,7 +17,7 @@ Returns:
Examples:
(begin example)
_rifleman_loadout = [0] call btc_fnc_arsenal_loadout;
_rifleman_loadout = [0] call btc_arsenal_fnc_loadout;
(end)
(begin example)
[] spawn {
Expand All @@ -26,7 +26,7 @@ Examples:
{
private _j = _x;
{
player setUnitLoadout ([_i, _j, _x] call btc_fnc_arsenal_loadout);
player setUnitLoadout ([_i, _j, _x] call btc_arsenal_fnc_loadout);
sleep 1;
} forEach [false,true];
} forEach [0,1,2,3];
Expand Down Expand Up @@ -166,7 +166,7 @@ if (_fractures > 0) then {
private _cargos = [
[],
[_backpack, [["SmokeShellGreen", 3, 1], ["SmokeShellPurple", 1, 1]] + _backpackMedical],
[_backpack, [["ToolKit", 1], ["ACE_EntrenchingTool", 1]]],
[_backpack, [["ToolKit", 1], ["ACE_EntrenchingTool", 1], ["ACE_wirecutter", 1]]],
[_backpack, [["ACE_DefusalKit", 1], ["ACE_Clacker", 2], ["ACE_SpraypaintRed", 1], ["DemoCharge_Remote_Mag", 2, 1], [["ACE_VMM3", "", "", "", [], [], ""], 1], ["ACE_EntrenchingTool", 1]]],
[_backpack, [[_launcherMagazines param [1, _launcherMagazine], 1, _launcherCount], [_launcherMagazine, 1, _launcherCount]]],
[_backpack_big, [[_launcherMagazine, 2, _launcherCount]]],
Expand All @@ -176,16 +176,27 @@ private _cargos = [
[_backpack, [["muzzle_antenna_02_f", 1], ["muzzle_antenna_01_f", 1], [["hgun_esd_01_F", "", "", "", [], [], ""], 1]]]
];
private _binocular_array = [_laserdesignator, "", "", "", ["Laserbatteries", 1], [], ""];
private _launcher_array = [_launcher, "", "", "", [_launcherMagazine, _launcherCount], [], ""];
private _radio_item = [["ItemRadio", ""] select (isClass(_cfgPatches >> "acre_main")), _radio] select (isClass (_cfgPatches >> "task_force_radio"));
private _launcher_array = [[_launcher, "", "", "", [_launcherMagazine, _launcherCount], [], ""], []] select (_launcher isEqualTo "");
private _radio_item = [
["ItemRadio", ""] select (isClass(_cfgPatches >> "acre_main")),
_radio
] select (isClass (_cfgPatches >> "task_force_radio"));

if (_isDay) then {
private _loadout = if (_isDay) then {
[
[_weapon, "", "", _optics select _isDay, [_weaponMagazine, _weaponCount], [], _bipod_item],
_launcher_array,
[_pistol, "", "", "", [_pistolMagazine, _pistolCount], [], ""],
[_uniform, _cargo_uniform],
[_vest, [["SmokeShellGreen", 2, 1], [_weaponMagazine, 7, _weaponCount], ["SmokeShellPurple", 2, 1], ["SmokeShellYellow", 1, 1], [_pistolMagazine, 1, _pistolCount], ["ACE_M84", 1, 1], ["HandGrenade", 3, 1], [["", _radio] select (isClass(_cfgPatches >> "acre_main")), 1]]],
[_vest, [
["SmokeShellGreen", 2, 1],
[_weaponMagazine, 7, _weaponCount],
["SmokeShellPurple", 2, 1],
["SmokeShellYellow", 1, 1],
[_pistolMagazine, 1, _pistolCount],
["ACE_M84", 1, 1],
["HandGrenade", 3, 1]
]],
_cargos select _type, _helmet, _hood, _binocular_array,
["ItemMap", "B_UavTerminal", _radio_item, "ItemCompass", "ChemicalDetector_01_watch_F", ""]
]
Expand All @@ -195,8 +206,23 @@ if (_isDay) then {
_launcher_array,
[_pistol, "", "", "", [_pistolMagazine, _pistolCount], [], ""],
[_uniform, _cargo_uniform],
[_vest, [["SmokeShellGreen", 1, 1], ["B_IR_Grenade", 2, 1], [_weaponMagazines param [1, _weaponMagazine], 7, _weaponCount], ["Chemlight_green", 1, 1], ["Chemlight_blue", 1, 1], ["ACE_HandFlare_Green", 1, 1], ["HandGrenade", 3, 1], ["ACE_M84", 1, 1], [["", _radio] select (isClass(_cfgPatches >> "acre_main")), 1]]],
[_vest, [
["SmokeShellGreen", 1, 1],
["B_IR_Grenade", 2, 1],
[_weaponMagazines param [1, _weaponMagazine], 7, _weaponCount],
["Chemlight_green", 1, 1],
["Chemlight_blue", 1, 1],
["ACE_HandFlare_Green", 1, 1],
["HandGrenade", 3, 1],
["ACE_M84", 1, 1]
]],
_cargos select _type, _helmet, _hood, _binocular_array,
["ItemMap", "B_UavTerminal", _radio_item, "ItemCompass", "ChemicalDetector_01_watch_F", _night_vision]
]
}
};

if (isClass(_cfgPatches >> "acre_main")) then {
(_loadout select 4 select 1) pushBack [_radio, 1];
};

_loadout
24 changes: 6 additions & 18 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/arsenal/trait.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* ----------------------------------------------------------------------------
Function: btc_fnc_arsenal_trait
Function: btc_arsenal_fnc_trait
Description:
Get trait from an object (e.g. Player) and return the corresponding trait and weapons allowed filter (https://community.bistudio.com/wiki/CfgAmmo_Config_Reference#aiAmmoUsageFlags).
Expand All @@ -13,7 +13,7 @@ Returns:
Examples:
(begin example)
_type_ammoUsageAllowed = [player] call btc_fnc_arsenal_trait;
_type_ammoUsageAllowed = [player] call btc_arsenal_fnc_trait;
(end)
Author:
Expand All @@ -36,16 +36,16 @@ switch (true) do {
case (_player getUnitTrait "explosiveSpecialist"): {
_type_ammoUsageAllowed = [3, [["AssaultRifle", "", [false, "Rifle_Long_Base_F"]]]];
};
case ([typeOf _player, ["MissileLauncher", "128 + 512"]] call btc_fnc_mil_ammoUsage): {
case ([typeOf _player, ["MissileLauncher", "128 + 512"]] call btc_mil_fnc_ammoUsage): {
_type_ammoUsageAllowed = [4, [["AssaultRifle", "", [false, "Rifle_Long_Base_F"]], ["RocketLauncher", ""], ["MissileLauncher", "128 + 512"]]];
};
case ([typeOf _player, ["MissileLauncher", "256"]] call btc_fnc_mil_ammoUsage): {
case ([typeOf _player, ["MissileLauncher", "256"]] call btc_mil_fnc_ammoUsage): {
_type_ammoUsageAllowed = [5, [["AssaultRifle", "", [false, "Rifle_Long_Base_F"]], ["MissileLauncher", "256"]]];
};
case ([typeOf _player, ["SniperRifle", ""]] call btc_fnc_mil_ammoUsage): {
case ([typeOf _player, ["SniperRifle", ""]] call btc_mil_fnc_ammoUsage): {
_type_ammoUsageAllowed = [6, [["AssaultRifle", "64 + 128 + 256", [true, "Rifle_Long_Base_F"]], ["SniperRifle", ""]]];
};
case ([typeOf _player, ["MachineGun", ""]] call btc_fnc_mil_ammoUsage): {
case ([typeOf _player, ["MachineGun", ""]] call btc_mil_fnc_ammoUsage): {
_type_ammoUsageAllowed = [7, [["MachineGun", ""]]];
};
case ("cbrn" in toLower uniform _player): {
Expand All @@ -59,16 +59,4 @@ switch (true) do {
};
};

if (btc_debug || btc_debug_log) then {
[
format ["IsMedic: %1 IsAdvEngineer: %2 IsExplosiveSpecialist: %3 IsAT: %4 IsAA: %5",
_player getUnitTrait "medic",
_player getVariable ["ace_isEngineer", 0],
_player getUnitTrait "explosiveSpecialist",
[typeOf _player, ["MissileLauncher", "128 + 512"]] call btc_fnc_mil_ammoUsage,
[typeOf _player, ["MissileLauncher", "256"]] call btc_fnc_mil_ammoUsage
], __FILE__, [btc_debug, btc_debug_log]
] call btc_fnc_debug_message;
};

_type_ammoUsageAllowed
Loading

0 comments on commit 770bec6

Please sign in to comment.