-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUnitPools.sqf
196 lines (180 loc) · 7.95 KB
/
UnitPools.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
private ["_tempArray","_InfPool","_MotPool","_ACHPool","_CHPool","_uavPool","_stPool","_shipPool","_diverPool","_crewPool","_heliCrew","_ArmPool"];
_faction=(_this select 0);
_type=(_this select 1);
_tempArray=[];
// EAST CSAT FACTION
if (_faction==0) then {
_InfPool= ["O_SoldierU_SL_F","O_soldierU_repair_F","O_soldierU_medic_F","O_sniper_F","O_Soldier_A_F","O_Soldier_AA_F","O_Soldier_AAA_F","O_Soldier_AAR_F","O_Soldier_AAT_F","O_Soldier_AR_F","O_Soldier_AT_F","O_soldier_exp_F","O_Soldier_F","O_engineer_F","O_engineer_U_F","O_medic_F","O_recon_exp_F","O_recon_F","O_recon_JTAC_F","O_recon_LAT_F","O_recon_M_F","O_recon_medic_F","O_recon_TL_F"];
_ArmPool= ["O_APC_Tracked_02_AA_F","O_APC_Tracked_02_cannon_F","O_APC_Wheeled_02_rcws_F","O_MBT_02_arty_F","O_MBT_02_cannon_F"];
_MotPool= ["O_Truck_02_covered_F","O_Truck_02_transport_F","O_MRAP_02_F","O_MRAP_02_gmg_F","O_MRAP_02_hmg_F","O_Truck_02_medical_F"];
_ACHPool= ["O_Heli_Attack_02_black_F","O_Heli_Attack_02_F"];
_CHPool= ["O_Heli_Light_02_F","O_Heli_Light_02_unarmed_F"];
_uavPool= ["O_UAV_01_F","O_UAV_02_CAS_F","O_UGV_01_rcws_F"];
_stPool= ["O_Mortar_01_F","O_static_AT_F","O_static_AA_F"];
_shipPool= ["O_Boat_Armed_01_hmg_F","O_Boat_Transport_01_F"];
_diverPool= ["O_diver_exp_F","O_diver_F","O_diver_TL_F"];
_crewPool= ["O_crew_F"];
_heliCrew= ["O_helicrew_F","O_helipilot_F"];
};
// WEST NATO FACTION
if (_faction==1) then {
_InfPool= ["B_sniper_F","B_Soldier_A_F","B_Soldier_AA_F","B_Soldier_AAA_F","B_Soldier_AAR_F","B_Soldier_AAT_F","B_Soldier_AR_F","B_Soldier_AT_F","B_soldier_exp_F","B_Soldier_F","B_engineer_F","B_medic_F","B_recon_exp_F","B_recon_F","B_recon_JTAC_F","B_recon_LAT_F","B_recon_M_F","B_recon_medic_F","B_recon_TL_F"];
_ArmPool= ["B_MBT_01_arty_F","B_MBT_01_cannon_F","B_MBT_01_mlrs_F","B_APC_Tracked_01_AA_F","B_APC_Tracked_01_CRV_F","B_APC_Tracked_01_rcws_F","B_APC_Wheeled_01_cannon_F","B_MBT_02_cannon_F"];
_MotPool= ["B_Truck_01_covered_F","B_Truck_01_transport_F","B_MRAP_01_F","B_MRAP_01_gmg_F","B_MRAP_01_hmg_F","B_Truck_01_medical_F"];
_ACHPool= ["B_Heli_Attack_01_F","B_Heli_Light_01_armed_F"];
_CHPool= ["B_Heli_Light_01_F","B_Heli_Transport_01_camo_F","B_Heli_Transport_01_F"];
_uavPool= ["B_UAV_01_F","B_UAV_01_CAS_F","B_UGV_01_rcws_F"];
_stPool= ["B_Mortar_01_F","B_static_AT_F","B_static_AA_F"];
_shipPool= ["B_Boat_Armed_01_minigun_F","B_Boat_Transport_01_F"];
_diverPool= ["B_diver_exp_F","B_diver_F","B_diver_TL_F"];
_crewPool= ["B_crew_F"];
_heliCrew= ["B_helicrew_F","B_helipilot_F"];
};
// INDEPENDENT AAF FACTION
if (_faction==2) then {
_InfPool= ["I_engineer_F","I_Soldier_A_F","I_Soldier_AA_F","I_Soldier_AAA_F","I_Soldier_AAR_F","I_Soldier_AAT_F","I_Soldier_AR_F","I_Soldier_AT_F","I_Soldier_exp_F","I_soldier_F","I_Soldier_GL_F","I_Soldier_repair_F"];
_ArmPool= ["I_APC_Wheeled_03_cannon_F"];
_MotPool= ["I_MRAP_03_F","I_MRAP_03_gmg_F","I_MRAP_03_hmg_F","I_Truck_02_medical_F"];
_ACHPool= [];
_CHPool= ["I_Heli_Transport_02_F","B_Heli_Light_02_unarmed_F"];
_uavPool= ["I_UAV_01_F","I_UAV_02_CAS_F","I_UGV_01_rcws_F"];
_stPool= ["I_Mortar_01_F"];
_shipPool= ["I_Boat_Transport_01_F","I_G_Boat_Transport_01_F","I_Boat_Armed_01_minigun_F"];
_diverPool= ["I_diver_exp_F","I_diver_F","I_diver_TL_F"];
_crewPool= ["I_crew_F"];
_heliCrew= ["I_helicrew_F","I_helipilot_F"];
};
// CIVILIAN
if (_faction==3) then {
_InfPool= ["C_man_1","C_man_1_1_F","C_man_1_2_F","C_man_1_3_F","C_man_hunter_1_F","C_man_p_beggar_F","C_man_p_beggar_F_afro","C_man_p_fugitive_F","C_man_p_shorts_1_F","C_man_pilot_F","C_man_polo_1_F","C_man_polo_2_F","C_man_polo_3_F","C_man_polo_4_F","C_man_polo_5_F","C_man_polo_6_F","C_man_shorts_1_F","C_man_shorts_2_F","C_man_shorts_3_F","C_man_shorts_4_F","C_man_w_worker_F"];
_ArmPool= ["C_Hatchback_01_F","C_Hatchback_01_sport_F","C_Quadbike_01_F","C_SUV_01_F","C_Van_01_transport_F","C_Van_01_box_F"];
_MotPool= ["C_Hatchback_01_F","C_Hatchback_01_sport_F","C_Quadbike_01_F","C_SUV_01_F","C_Van_01_transport_F","C_Van_01_box_F"];
_ACHPool= [];
_CHPool= [];
_uavPool= [];
_stPool= [];
_shipPool= ["C_Boat_Civil_01_F","C_Boat_Civil_01_rescue_F","C_Boat_Civil_04_F","C_Rubberboat"];
_diverPool= [];
_crewPool= ["C_man_1"];
_heliCrew= ["C_man_1","C_man_1"];
};
// WEST FIA FACTION
if (_faction==4) then {
_InfPool= ["B_G_engineer_F","B_G_medic_F","B_G_officer_F","B_G_Soldier_A_F","B_G_Soldier_AR_F","B_G_Soldier_exp_F","B_G_Soldier_F","B_G_Soldier_GL_F","B_G_Soldier_LAT_F","B_G_Soldier_lite_F","B_G_Soldier_M_F","B_G_Soldier_SL_F","B_G_Soldier_TL_F"];
_ArmPool= [];
_MotPool= ["B_G_Offroad_01_F","B_G_Offroad_01_armed_F","B_G_Van_01_transport_F","B_G_Van_01_fuel_F"];
_ACHPool= [];
_CHPool= [];
_uavPool= [];
_stPool= ["B_G_Mortar_01_F"];
_shipPool= ["B_G_Boat_Transport_01_F"];
_diverPool= [];
_crewPool= [];
_heliCrew= [];
};
// ADD CLASSNAMES
if (_faction==5) then {
_InfPool= [];
_ArmPool= [];
_MotPool= [];
_ACHPool= [];
_CHPool= [];
_uavPool= [];
_stPool= [];
_shipPool= [];
_diverPool= [];
_crewPool= [];
_heliCrew= [];
};
// ADD CLASSNAMES
if (_faction==6) then {
_InfPool= [];
_ArmPool= [];
_MotPool= [];
_ACHPool= [];
_CHPool= [];
_uavPool= [];
_stPool= [];
_shipPool= [];
_diverPool= [];
_crewPool= [];
_heliCrew= [];};
// ADD CLASSNAMES
if (_faction==7) then {
_InfPool= [];
_ArmPool= [];
_MotPool= [];
_ACHPool= [];
_CHPool= [];
_uavPool= [];
_stPool= [];
_shipPool= [];
_diverPool= [];
_crewPool= [];
_heliCrew= [];};
////////////////////////////////////////////////////////////////////////////////////////
if (_type==0) then {
for "_i" from 0 to 5 do{
_unit=_InfPool select (floor(random(count _InfPool)));
_tempArray set [count _tempArray,_unit];};
};
if (_type==1) then {_tempArray=_diverPool};
// CREATE ARMOUR & CREW
if (_type==2) then {
_tempUnit=_ArmPool select (floor(random(count _ArmPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_crewPool select (floor(random(count _crewPool)));
_temparray set [count _temparray,_crew];
};
// CREATE ATTACK CHOPPER & CREW
if (_type==3) then {
_tempUnit=_ACHPool select (floor(random(count _ACHPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_heliCrew select (floor(random(count _heliCrew)));
_temparray set [count _temparray,_crew];
};
// CREATE TRANSPORT CHOPPER & CREW
if (_type==4) then {
_tempUnit=_CHPool select (floor(random(count _CHPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_heliCrew select (floor(random(count _heliCrew)));
_temparray set [count _temparray,_crew];
};
// CREATE STATIC & CREW
if (_type==5) then {
_tempUnit=_stPool select (floor(random(count _stPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_crewPool select (floor(random(count _crewPool)));
_temparray set [count _temparray,_crew];
};
if (_type==6) then {_tempArray=_uavPool select (floor(random(count _uavPool)));};
// CREATE TRANSPORT & CREW
if (_type==7) then {
_tempUnit=_MotPool select (floor(random(count _MotPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_crewPool select (floor(random(count _crewPool)));
_temparray set [count _temparray,_crew];
};
// CREATE BOAT & DIVER CREW
if (_type==8) then {
_tempUnit=_shipPool select (floor(random(count _shipPool)));
_temparray set [count _temparray,_tempUnit];
_crew=_diverPool select (floor(random(count _diverPool)));
_temparray set [count _temparray,_crew];
};
// CREATE CARGO
if (_type==9) then {
for "_i" from 0 to 4 do{
_unit=_InfPool select (floor(random(count _InfPool)));
_temparray set [count _temparray,_unit];
};
};
// CREATE DIVER CARGO
if (_type==10) then {
for "_i" from 0 to 4 do{
_unit=_diverPool select (floor(random(count _diverPool)));
_temparray set [count _temparray,_unit];
};
};
//hint format ["%1",_tempArray];
_tempArray