Skip to content

Commit

Permalink
Merge branch 'Sparker95:development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc13Bautista authored May 24, 2024
2 parents 6a33804 + ee4f0a3 commit 487fd63
Show file tree
Hide file tree
Showing 82 changed files with 187,909 additions and 644 deletions.
11,741 changes: 11,741 additions & 0 deletions Vindicta.Edaly_Map_Alpha/mission.sqm

Large diffs are not rendered by default.

10,573 changes: 10,573 additions & 0 deletions Vindicta.K9S_Wallaroo/mission.sqm

Large diffs are not rendered by default.

66,235 changes: 66,235 additions & 0 deletions Vindicta.Kunduz/mission.sqm

Large diffs are not rendered by default.

7,335 changes: 7,335 additions & 0 deletions Vindicta.OPTRE_Madrigal/mission.sqm

Large diffs are not rendered by default.

9,057 changes: 9,057 additions & 0 deletions Vindicta.OrbitaClivoCadminae/mission.sqm

Large diffs are not rendered by default.

68,567 changes: 68,567 additions & 0 deletions Vindicta.SPE_Normandy/mission.sqm

Large diffs are not rendered by default.

11,308 changes: 11,308 additions & 0 deletions Vindicta.isladuala3/mission.sqm

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configs/minorVersion.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
55
57
8 changes: 8 additions & 0 deletions src/AI/Commander/AICommander.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,10 @@ http://patorjk.com/software/taag/#p=display&f=Univers&t=CMDR%20AI
private _srcGarrisons = CALLM0(_worldNow, "getAliveGarrisons") select {
// Must be on our side and not involved in another action
GETV(_x, "side") == _side and
{
// General garrison (not anti-air or air)
CALLM0(_x, "getType") == GARRISON_TYPE_GENERAL
} and
{ !CALLM0(_x, "isBusy") } and
{
// Must have at least a minimum strength of twice min efficiency
Expand All @@ -2253,6 +2257,10 @@ http://patorjk.com/software/taag/#p=display&f=Univers&t=CMDR%20AI
private _tgtGarrisons = CALLM0(_worldFuture, "getAliveGarrisons") select {
// Must be on our side
GETV(_x, "side") == _side and
{
// General garrison (not anti-air or air)
CALLM0(_x, "getType") == GARRISON_TYPE_GENERAL
} and
{
// Not involved in another reinforce action
private _action = CALLM0(_x, "getAction");
Expand Down
2 changes: 1 addition & 1 deletion src/AI/Garrison/initDatabase.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ private _s = WSP_GAR_COUNT;
// ---------------- Goal relevance values and effects
// The actual relevance returned by goal can be different from the one which is set below
["GoalGarrisonSurrender", 60 ] call AI_misc_fnc_setGoalIntrinsicRelevance; // Only runs when not in combat
["GoalGarrisonRepairAllVehicles", 50 ] call AI_misc_fnc_setGoalIntrinsicRelevance; // Only runs when not in combat
["GoalGarrisonAttackAssignedTargets", 36 ] call AI_misc_fnc_setGoalIntrinsicRelevance; // Gets activated when garrison can see any of the assigned targets
["GoalGarrisonRebalanceVehicleGroups", 35 ] call AI_misc_fnc_setGoalIntrinsicRelevance; // Needs to be higher than defend actions
["GoalGarrisonDefendActive", 34 ] call AI_misc_fnc_setGoalIntrinsicRelevance;
["GoalGarrisonRepairAllVehicles", 33 ] call AI_misc_fnc_setGoalIntrinsicRelevance; // Only runs when not in combat
["GoalGarrisonClearArea", 32 ] call AI_misc_fnc_setGoalIntrinsicRelevance;
["GoalGarrisonJoinLocation", 12 ] call AI_misc_fnc_setGoalIntrinsicRelevance;
["GoalGarrisonMove", 11 ] call AI_misc_fnc_setGoalIntrinsicRelevance;
Expand Down
18 changes: 14 additions & 4 deletions src/AI/Unit/ActionUnitRepairVehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CLASS("ActionUnitRepairVehicle", "ActionUnit")

VARIABLE("hVeh");
VARIABLE("timeActivated");
VARIABLE("timeRepairAnimation");

public override METHOD(getPossibleParameters)
[
Expand All @@ -38,6 +39,7 @@ CLASS("ActionUnitRepairVehicle", "ActionUnit")
pr _hVeh = T_GETV("hVeh");

_hO action ["repairVehicle", _hVeh];
T_SETV("timeRepairAnimation", GAME_TIME);

pr _ai = T_GETV("ai");
SETV(_ai, "interactionObject", _hVeh);
Expand All @@ -63,10 +65,18 @@ CLASS("ActionUnitRepairVehicle", "ActionUnit")
pr _state = T_CALLM0("activateIfInactive");

if (_state == ACTION_STATE_ACTIVE) then {
// Makethe actual repair affects lag behind the animation
if (GAME_TIME - T_GETV("timeActivated") > 10) then {
pr _hO = T_GETV("hO");
pr _hveh = T_GETV("hVeh");

pr _hO = T_GETV("hO");
pr _hveh = T_GETV("hVeh");

// Repeat the repair animation periodically
if (GAME_TIME - T_GETV("timeRepairAnimation") > 7) then {
_hO action ["repairVehicle", _hVeh];
T_SETV("timeRepairAnimation", GAME_TIME);
};

// Make the actual repair affects lag behind the animation
if (GAME_TIME - T_GETV("timeActivated") > 45) then {
// Check if the unit is not an actual engineer
// Doesn't matter much actually
// Sometimes engineers can be without toolkit and thus unable to repair vehicle in arma-native way
Expand Down
4 changes: 2 additions & 2 deletions src/Garrison/updateSpawnState.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pr _minDistToAi = 0;

if (_type == GARRISON_TYPE_ANTIAIR) then {
// Anti-air garrison is very special
_minDistToPlayer = 10000; // These are hardcoded for now
_minDistToAi = 4000;
_minDistToPlayer = 5000; // Hardcoded for now
_minDistToAi = vin_spawnDist_garrisonToAI;
} else {
_minDistToPlayer = vin_spawnDist_garrisonToPlayer;
_minDistToAi = vin_spawnDist_garrisonToAI;
Expand Down
3 changes: 3 additions & 0 deletions src/JeroenArsenal/JNA/fn_arsenal_container.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ switch _mode do {
///////////////////////////////////////////////////////////////////////////////////////////
case "ColorTabs":{
params["_display"];
/*
{
_ctrlTab = _display displayctrl (IDC_RSCDISPLAYARSENAL_TAB + _forEachIndex);
Expand All @@ -320,8 +321,10 @@ switch _mode do {
_ctrlTab ctrlSetBackgroundColor _color;
_ctrlTab ctrlSetForegroundColor _color;
} forEach jnva_loadout;
*/
};


///////////////////////////////////////////////////////////////////////////////////////////
case "TabSelect": {
params["_display","_index"];
Expand Down
112 changes: 109 additions & 3 deletions src/Location/initBuildingTypes.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ location_b_capacity =
["gm_gc_tent_5x5m"],
8
]

];

// Positions for cargo boxes
Expand Down Expand Up @@ -499,7 +498,61 @@ _location_bp_cargo_medium =
[["Land_vn_hut_02"],[[2.76185,9.78456,2.31609,0],[0.319123,253.922,2.31609,0]]],
[["Land_vn_hut_01"],[[2.23798,23.8191,2.20195,0],[1.03077,127.155,2.21769,0]]],
[["Land_vn_hut_village_01"],[[3.74615,252.743,-0.747732,0],[2.18911,34.6533,-0.747732,0]]],
[["Land_vn_hut_village_02"],[[3.56025,126.862,-0.533976,0],[3.32959,60.7491,-0.533976,0]]]
[["Land_vn_hut_village_02"],[[3.56025,126.862,-0.533976,0],[3.32959,60.7491,-0.533976,0]]],

//Libertad Isla Nueva
[["Land_Police_01_F"],[[7.16392,98.6713,0.0691242,0],[7.59371,112.926,0.0691247,0]]],

//OPTRE
[["Land_Urban_Building_03"],[[5.95648,246.009,5.36727,0],[7.63412,225.728,5.40115,0]]],
[["Land_Urban_Building_02"],[[4.68536,229.522,0.544062,0],[6.0303,215.639,0.561588,0]]],
[["Land_building01"],[[13.1239,289.831,3.66379,0],[12.473,273.426,3.51251,0]]],

//TIOW
[["land_TIOW_Hab1Blue"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Blue_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Brown"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Brown_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1DarkGrey"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1DarkGrey_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1DarkTan"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1DarkTan_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Grey"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Grey_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Red"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Red_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Tan"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab1Tan_Ranch"],[[2.43869,141.377,0.536353,0],[1.71313,54.6882,0.414039,0]]],
[["land_TIOW_Hab3Blue"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Blue_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Brown"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Brown_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3DarkGrey"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3DarkGrey_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3DarkTan"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3DarkTan_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Grey"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Grey_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Red"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Red_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Tan"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],
[["land_TIOW_Hab3Tan_Ranch"],[[3.42008,172.729,0.163934,0],[4.62341,221.112,0.192134,0]]],


//SPE
[["Land_SPE_Office_Small_01"],[[1.4382,98.7683,0.253738,177],[2.94388,146.473,0.253738,177]]],
[["Land_SPE_Farmhouse_01"],[[6.05088,262.931,0.12,0],[3.25649,256.172,0.12,0]]],
[["Land_SPE_Office_Small_02"],[[3.74085,50.9653,0.274698,0],[4.97515,34.6695,0.274698,0]]],
[["Land_SPE_Shop_03"],[[0.936713,225.148,0.243686,0],[1.29295,121.157,0.243686,0]]],
[["Land_SPE_Shop_04"],[[1.7056,202.593,0.19,0],[2.86736,242.737,0.19,0]]],
[["Land_SPE_House_Small_01"],[[7.27376,349.307,0.168909,0],[7.73439,336.461,0.168909,0]]],
[["Land_SPE_House_Small_03"],[[6.44997,165.331,0.253742,0],[4.73687,160.207,0.253742,0]]],
[["Land_SPE_House_Small_04"],[[2.52794,190.348,0.69,0],[2.89647,146.28,0.69,0]]],
[["Land_SPE_House_Thatch_01"],[[3.80105,19.4568,0.151809,0],[3.921,348.864,0.151809,0]]],
[["Land_SPE_House_Thatch_02 "],[[2.11873,183.515,0.439073,0],[3.56701,181.051,0.439073,0]]],
[["Land_SPE_House_Thatch_04"],[[4.00128,26.0522,0.216572,0],[2.83912,41.6605,0.216572,0]]],
[["Land_SPE_House_Thatch_05"],[[3.08674,146.426,0.320164,0],[4.07149,154.102,0.320164,0]]],
[["Land_SPE_Townhall"],[[2.70508,30.1195,1.19562,0],[2.84488,325.178,1.19562,0]]]
];

location_bp_cargo_medium = _location_bp_cargo_medium call _createHashmapFromBuildingPositions;
Expand Down Expand Up @@ -632,7 +685,60 @@ location_bt_police =
"Land_vn_hut_02",
"Land_vn_hut_01",
"Land_vn_hut_village_01",
"Land_vn_hut_village_02"
"Land_vn_hut_village_02",

//Libertad Isla Nueva
"Land_Police_01_F",

//OPTRE
"Land_Urban_Building_03",
"Land_Urban_Building_02",
"Land_building01",

//TIOW
"land_TIOW_Hab1Blue",
"land_TIOW_Hab1Blue_Ranch",
"land_TIOW_Hab1Brown",
"land_TIOW_Hab1Brown_Ranch",
"land_TIOW_Hab1DarkGrey",
"land_TIOW_Hab1DarkGrey_Ranch",
"land_TIOW_Hab1DarkTan",
"land_TIOW_Hab1DarkTan_Ranch",
"land_TIOW_Hab1Grey",
"land_TIOW_Hab1Grey_Ranch",
"land_TIOW_Hab1Red",
"land_TIOW_Hab1Red__Ranch",
"land_TIOW_Hab1Tan",
"land_TIOW_Hab1Tan__Ranch",
"land_TIOW_Hab3Blue",
"land_TIOW_Hab3Blue_Ranch",
"land_TIOW_Hab3Brown",
"land_TIOW_Hab3Brown_Ranch",
"land_TIOW_Hab3DarkGrey",
"land_TIOW_Hab3DarkGrey_Ranch",
"land_TIOW_Hab3DarkTan",
"land_TIOW_Hab3DarkTan_Ranch",
"land_TIOW_Hab3Grey",
"land_TIOW_Hab3Grey_Ranch",
"land_TIOW_Hab3Red",
"land_TIOW_Hab3Red_Ranch",
"land_TIOW_Hab3Tan",
"land_TIOW_Hab3Tan_Ranch",

//SPE
"Land_SPE_Office_Small_01",
"Land_SPE_Farmhouse_01",
"Land_SPE_Office_Small_02",
"Land_SPE_Shop_03",
"Land_SPE_Shop_04",
"Land_SPE_House_Small_01",
"Land_SPE_House_Small_03",
"Land_SPE_House_Small_04",
"Land_SPE_House_Thatch_01",
"Land_SPE_House_Thatch_02",
"Land_SPE_House_Thatch_04",
"Land_SPE_House_Thatch_05",
"Land_SPE_Townhall"
];

location_decorations_police =
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Factions/3CB_TNA_B.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _inf set [T_INF_marksman, ["UK3CB_TKA_B_MK"]];
_inf set [T_INF_sniper, ["UK3CB_TKA_B_SF_SNI"]];
_inf set [T_INF_spotter, ["UK3CB_TKA_B_SF_SPOT"]];
_inf set [T_INF_exp, ["UK3CB_TKA_B_DEM"]];
_inf set [T_INF_ammo, ["UK3CB_TKA_B_STATIC_TRI_AGS30", "UK3CB_TKA_B_STATIC_TRI_DSHKM_HIGH", "UK3CB_TKA_B_STATIC_TRI_DSHKM_LOW", "UK3CB_TKA_B_STATIC_TRI_KORD", "UK3CB_TKA_B_STATIC_TRI_KORNET", "UK3CB_TKA_B_STATIC_TRI_METIS", "UK3CB_TKA_B_STATIC_TRI_NSV", "UK3CB_TKA_B_STATIC_TRI_PODNOS", "UK3CB_TKA_B_STATIC_TRI_SPG9", "UK3CB_TKA_B_AA_ASST", "UK3CB_TKA_B_AT_ASST"]];
_inf set [T_INF_ammo, ["UK3CB_TKA_B_AA_ASST", "UK3CB_TKA_B_AT_ASST"]];
_inf set [T_INF_LAT, ["UK3CB_TKA_B_LAT"]];
_inf set [T_INF_AT, ["UK3CB_TKA_B_AT"]];
_inf set [T_INF_AA, ["UK3CB_TKA_B_AA"]];
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Factions/3CB_TNA_O.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _inf set [T_INF_marksman, ["UK3CB_TKA_O_MK"]];
_inf set [T_INF_sniper, ["UK3CB_TKA_O_SF_SNI"]];
_inf set [T_INF_spotter, ["UK3CB_TKA_O_SF_SPOT"]];
_inf set [T_INF_exp, ["UK3CB_TKA_O_DEM"]];
_inf set [T_INF_ammo, ["UK3CB_TKA_O_STATIC_TRI_AGS30", "UK3CB_TKA_O_STATIC_TRI_DSHKM_HIGH", "UK3CB_TKA_O_STATIC_TRI_DSHKM_LOW", "UK3CB_TKA_O_STATIC_TRI_KORD", "UK3CB_TKA_O_STATIC_TRI_KORNET", "UK3CB_TKA_O_STATIC_TRI_METIS", "UK3CB_TKA_O_STATIC_TRI_NSV", "UK3CB_TKA_O_STATIC_TRI_PODNOS", "UK3CB_TKA_O_STATIC_TRI_SPG9", "UK3CB_TKA_O_AA_ASST", "UK3CB_TKA_O_AT_ASST"]];
_inf set [T_INF_ammo, ["UK3CB_TKA_O_AA_ASST", "UK3CB_TKA_O_AT_ASST"]];
_inf set [T_INF_LAT, ["UK3CB_TKA_O_LAT"]];
_inf set [T_INF_AT, ["UK3CB_TKA_O_AT"]];
_inf set [T_INF_AA, ["UK3CB_TKA_O_AA"]];
Expand Down
108 changes: 108 additions & 0 deletions src/Templates/Factions/CUP_CDF.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@

_array = [];

_array set [T_SIZE-1, nil];

_array set [T_NAME, "tCUP_CDF"]; // Template name + variable (not displayed)
_array set [T_DESCRIPTION, "Chernarus Defense Force."]; // Template display description
_array set [T_DISPLAY_NAME, "CUP CDF"]; // Template display name
_array set [T_FACTION, T_FACTION_military]; // Faction type: police, T_FACTION_military, T_FACTION_Police
_array set [T_REQUIRED_ADDONS, ["CUP_Creatures_Military_Russia","CUP_Vehicles_Core"]]; // Addons required to play this template


/* Infantry unit classes */
_inf = [];
_inf resize T_INF_SIZE;
_inf set [T_INF_default, ["CUP_B_CDF_Soldier_FST"]]; //Default infantry if nothing is found

_inf set [T_INF_SL, ["CUP_B_CDF_Soldier_TL_FST"]]; // = 1
_inf set [T_INF_TL, ["CUP_B_CDF_Soldier_TL_FST"]]; // = 2
_inf set [T_INF_officer, ["CUP_B_CDF_Officer_FST"]]; // = 3
_inf set [T_INF_GL, ["CUP_B_CDF_Soldier_GL_FST"]]; // = 4
_inf set [T_INF_rifleman, ["CUP_B_CDF_Soldier_FST"]]; // = 5
_inf set [T_INF_marksman, ["CUP_B_CDF_Soldier_Marksman_FST"]]; // = 6
_inf set [T_INF_sniper, ["CUP_B_CDF_Sniper_FST"]]; // = 7
_inf set [T_INF_spotter, ["CUP_B_CDF_Spotter_FST"]]; // = 8
_inf set [T_INF_exp, ["CUP_B_CDF_Engineer_FST"]]; // = 9
_inf set [T_INF_ammo, ["CUP_B_CDF_Soldier_AAT_FST", "CUP_B_CDF_Soldier_AMG_FST"]]; // = 10
_inf set [T_INF_LAT, ["CUP_B_CDF_Soldier_RPG18_FST"]]; // = 11
_inf set [T_INF_AT, ["CUP_B_CDF_Soldier_LAT_FST"]]; // = 12
_inf set [T_INF_AA, ["CUP_B_CDF_Soldier_AA_FST"]]; // = 13
_inf set [T_INF_LMG, ["CUP_B_CDF_Soldier_AR_FST"]]; // = 14
_inf set [T_INF_HMG, ["CUP_B_CDF_Soldier_MG_FST"]]; // = 15
_inf set [T_INF_medic, ["CUP_B_CDF_Medic_FST"]]; // = 16
_inf set [T_INF_engineer, ["CUP_B_CDF_Engineer_FST"]]; // = 17
_inf set [T_INF_crew, ["CUP_B_CDF_Crew_FST"]]; // = 18
_inf set [T_INF_crew_heli, ["CUP_B_CDF_Crew_FST"]]; // = 19
_inf set [T_INF_pilot, ["CUP_B_CDF_Pilot_FST"]]; // = 20
_inf set [T_INF_pilot_heli, ["CUP_B_CDF_Pilot_FST"]]; // = 21
// _inf set [T_INF_survivor, ["CUP_O_RU_Soldier_Light_M_EMR"]]; // = 22
// _inf set [T_INF_unarmed, ["CUP_O_RU_Soldier_Light_M_EMR"]]; // = 23
/* Recon unit classes */
_inf set [T_INF_recon_TL, ["CUP_B_CDF_Soldier_TL_MNT"]]; // = 24
_inf set [T_INF_recon_rifleman, ["CUP_B_CDF_Soldier_MNT"]]; // = 25
_inf set [T_INF_recon_medic, ["CUP_B_CDF_Medic_MNT"]]; // = 26
_inf set [T_INF_recon_exp, ["CUP_B_CDF_Engineer_MNT"]]; // = 27
_inf set [T_INF_recon_LAT, ["CUP_B_CDF_Soldier_RPG18_MNT"]]; // = 28
_inf set [T_INF_recon_marksman, ["CUP_B_CDF_Soldier_Marksman_MNT"]]; // = 29
_inf set [T_INF_recon_JTAC, ["CUP_B_CDF_Spotter_MNT"]]; // = 30

/* Vehicle classes */
_veh = []; _veh resize T_VEH_SIZE;
_veh set [T_VEH_SIZE-1, nil];
_veh set [T_VEH_DEFAULT, ["CUP_B_UAZ_Unarmed_CDF"]]; // = 0 Default if nothing found
_veh set [T_VEH_car_unarmed, ["CUP_B_UAZ_Unarmed_CDF", "CUP_B_UAZ_Open_CDF"]]; // = 1 – REQUIRED
_veh set [T_VEH_car_armed, ["CUP_B_UAZ_MG_CDF"]]; // = 2
_veh set [T_VEH_MRAP_unarmed, ["CUP_B_UAZ_Unarmed_CDF", "CUP_B_UAZ_Open_CDF"]]; // = 3 – REQUIRED
_veh set [T_VEH_MRAP_HMG, ["CUP_B_UAZ_MG_CDF"]]; // = 4 – REQUIRED
_veh set [T_VEH_MRAP_GMG, ["CUP_B_UAZ_AGS30_CDF","CUP_B_UAZ_SPG9_CDF","CUP_B_UAZ_METIS_CDF"]]; // = 5 – REQUIRED
_veh set [T_VEH_IFV, ["CUP_B_BMP2_CDF"]]; // = 6 – REQUIRED
_veh set [T_VEH_APC, ["CUP_B_BTR60_CDF","CUP_B_BTR80_CDF", "CUP_B_BTR80A_CDF", "CUP_B_MTLB_pk_CDF", "CUP_B_BRDM2_CDF"]]; // = 7 – REQUIRED
_veh set [T_VEH_MBT, ["CUP_B_T72_CDF"]]; // = 8 – REQUIRED
_veh set [T_VEH_MRLS, ["CUP_B_BM21_CDF"]]; // = 9
_veh set [T_VEH_SPA, ["CUP_B_BM21_CDF"]]; // = 10
_veh set [T_VEH_SPAA, ["CUP_B_ZSU23_CDF","CUP_B_Ural_ZU23_CDF"]]; // = 11
_veh set [T_VEH_stat_HMG_high, ["CUP_B_DSHKM_CDF"]]; // = 12 – REQUIRED
_veh set [T_VEH_stat_HMG_low, ["CUP_B_DSHkM_MiniTriPod_CDF"]]; // = 14
_veh set [T_VEH_stat_GMG_low, ["CUP_B_AGS_CDF"]]; // = 15
_veh set [T_VEH_stat_AA, ["CUP_B_ZU23_CDF", "CUP_B_Igla_AA_pod_CDF"]]; // = 16
_veh set [T_VEH_stat_AT, ["CUP_B_SPG9_CDF"]]; // = 17
_veh set [T_VEH_stat_mortar_light, ["CUP_B_2b14_82mm_CDF"]]; // = 18 - REQUIRED
_veh set [T_VEH_heli_light, ["CUP_B_Mi17_CDF"]]; // = 20
_veh set [T_VEH_heli_heavy, ["CUP_B_Mi17_CDF"]]; // = 21
_veh set [T_VEH_heli_cargo, ["CUP_B_MI6T_CDF"]]; // = 22
_veh set [T_VEH_heli_attack, ["CUP_B_Mi171Sh_CDF"]]; // = 23
// _veh set [T_VEH_plane_attack, ["CUP_O_Su25_Dyn_RU"]]; // = 24
// _veh set [T_VEH_plane_fighter , ["CUP_O_SU34_RU"]]; // = 25
// _veh set [T_VEH_boat_unarmed, ["CUP_O_PBX_RU"]]; // = 29
// _veh set [T_VEH_personal, ["CUP_O_UAZ_Unarmed_RU","CUP_O_UAZ_Open_RU"]]; // = 31
_veh set [T_VEH_truck_inf, ["CUP_B_Kamaz_CDF","CUP_B_Kamaz_Open_CDF"]]; // = 32 – REQUIRED
_veh set [T_VEH_truck_cargo, ["CUP_B_Kamaz_CDF"]]; // = 33
_veh set [T_VEH_truck_ammo, ["CUP_B_Kamaz_Reammo_CDF"]]; // = 34 – REQUIRED
_veh set [T_VEH_truck_repair, ["CUP_B_Kamaz_Repair_CDF"]]; // = 35
_veh set [T_VEH_truck_medical , ["CUP_B_S1203_Ambulance_CDF"]]; // = 36
_veh set [T_VEH_truck_fuel, ["CUP_B_Kamaz_Refuel_CDF"]]; // = 37

/* Drone classes */
_drone = []; _drone resize T_DRONE_SIZE;
_drone set [T_DRONE_SIZE-1, nil];
_veh set [T_DRONE_DEFAULT , ["CUP_O_Pchela1T_RU"]];

_drone set [T_DRONE_plane_attack, ["CUP_O_Pchela1T_RU"]]; // = 2


/* Cargo classes */
_cargo = +(tDefault select T_CARGO);

/* Group templates */
_group = +(tDefault select T_GROUP);

/* Set arrays */
_array set [T_INF, _inf];
_array set [T_VEH, _veh];
_array set [T_DRONE, _drone];
_array set [T_CARGO, _cargo];
_array set [T_GROUP, _group];


_array /* END OF TEMPLATE */
Loading

0 comments on commit 487fd63

Please sign in to comment.