forked from Bob-Murphy/A3-Antistasi-1.4
-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
3 changed files
with
247 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
A3A/addons/core/Templates/Templates/IFA/IFA_CIV_Common.sqf
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,73 @@ | ||
////////////////////////// | ||
// Vehicles // | ||
////////////////////////// | ||
["vehiclesCivCar", [ | ||
"LIB_GazM1", 1.5, | ||
"LIB_GazM1_dirty", 2.5, | ||
"LIB_CIV_FFI_CitC4", 0.125, | ||
"LIB_CIV_FFI_CitC4_2", 0.125, | ||
"LIB_CIV_FFI_CitC4_3", 0.125 | ||
]] call _fnc_saveToTemplate; //this line determines civilian cars -- Example: ["vehiclesCivCar", ["C_Offroad_01_F"]] -- Array, can contain multiple assets | ||
|
||
["vehiclesCivIndustrial", [ | ||
"LIB_CIV_FFI_CitC4", 0.25, | ||
"LIB_CIV_FFI_CitC4_2", 0.25, | ||
"LIB_CIV_FFI_CitC4_3", 0.25 | ||
]] call _fnc_saveToTemplate; //this line determines civilian trucks -- Example: ["vehiclesCivIndustrial", ["C_Truck_02_transport_F"]] -- Array, can contain multiple assets | ||
|
||
["vehiclesCivHeli", []] call _fnc_saveToTemplate; //this line determines civilian helis -- Example: ["vehiclesCivHeli", ["C_Heli_Light_01_civil_F"]] -- Array, can contain multiple assets | ||
|
||
["vehiclesCivBoat", ["B_Boat_Transport_01_F", 0.2]] call _fnc_saveToTemplate; //this line determines civilian boats -- Example: ["vehiclesCivBoat", ["C_Boat_Civil_01_F"]] -- Array, can contain multiple assets | ||
|
||
//Do we want vehicles of these kinds in this modset? | ||
["vehiclesCivRepair", [ | ||
"LIB_Zis6_Parm", 0.0375 | ||
]] call _fnc_saveToTemplate; //this line determines civilian repair vehicles | ||
|
||
["vehiclesCivMedical", [ | ||
"LIB_Zis5v_Med", 0.0375 | ||
]] call _fnc_saveToTemplate; //this line determines civilian medic vehicles | ||
|
||
["vehiclesCivFuel", [ | ||
"LIB_Zis5v_Fuel", 0.0375 | ||
]] call _fnc_saveToTemplate; //this line determines civilian fuel vehicles | ||
|
||
///////////////////// | ||
/// Identities /// | ||
///////////////////// | ||
|
||
["faces", ["LivonianHead_6","WhiteHead_02","WhiteHead_04","WhiteHead_05","WhiteHead_09","WhiteHead_11","WhiteHead_13","WhiteHead_20","WhiteHead_21"]] call _fnc_saveToTemplate; | ||
|
||
////////////////////////// | ||
// Loadouts // | ||
////////////////////////// | ||
|
||
private _civUniforms = [ | ||
"U_LIB_CIV_Citizen_1", | ||
"U_LIB_CIV_Citizen_2", | ||
"U_LIB_CIV_Citizen_3", | ||
"U_LIB_CIV_Citizen_4", | ||
"U_LIB_CIV_Citizen_5", | ||
"U_LIB_CIV_Citizen_6", | ||
"U_LIB_CIV_Citizen_7", | ||
"U_LIB_CIV_Citizen_8", | ||
"U_LIB_CIV_Villager_1", | ||
"U_LIB_CIV_Villager_2", | ||
"U_LIB_CIV_Villager_3", | ||
"U_LIB_CIV_Villager_4", | ||
"U_LIB_CIV_Woodlander_1", | ||
"U_LIB_CIV_Woodlander_2", | ||
"U_LIB_CIV_Woodlander_3", | ||
"U_LIB_CIV_Woodlander_4", | ||
"U_LIB_CIV_Worker_1", | ||
"U_LIB_CIV_Worker_2", | ||
"U_LIB_CIV_Worker_3", | ||
"U_LIB_CIV_Worker_4" | ||
]; //Uniforms given to Normal Civs | ||
|
||
private _workerUniforms = [ | ||
"U_LIB_CIV_Worker_1", | ||
"U_LIB_CIV_Worker_2", | ||
"U_LIB_CIV_Worker_3", | ||
"U_LIB_CIV_Worker_4" | ||
]; //Uniforms given to Workers at Factories/Resources |
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,93 @@ | ||
|
||
#include "IFA_CIV_Common.sqf" | ||
|
||
"RussianMen" call _fnc_saveNames; | ||
|
||
////////////////////////// | ||
// Loadouts // | ||
////////////////////////// | ||
|
||
|
||
private _pressUniforms = [ | ||
"U_LIB_CIV_Functionary_1", | ||
"U_LIB_CIV_Assistant", | ||
"U_LIB_CIV_Assistant_2", | ||
"U_LIB_CIV_Doctor", | ||
"U_LIB_CIV_Schoolteacher", | ||
"U_LIB_CIV_Schoolteacher_2" | ||
]; //Uniforms given to Press/Journalists | ||
|
||
["uniforms", _civUniforms + ["U_LIB_CIV_Functionary_1"] + _workerUniforms] call _fnc_saveToTemplate; //Uniforms given to the Arsenal, Allowed for Undercover and given to Rebel Ai that go Undercover | ||
|
||
_civhats = [ | ||
"H_LIB_CIV_Villager_Cap_1", | ||
"H_LIB_CIV_Villager_Cap_2", | ||
"H_LIB_CIV_Villager_Cap_3", | ||
"H_LIB_CIV_Villager_Cap_4" | ||
]; | ||
|
||
if(A3A_climate == "arctic") then { | ||
_civhats append [ | ||
"H_LIB_CIV_Worker_Cap_1", | ||
"H_LIB_CIV_Worker_Cap_2", | ||
"H_LIB_CIV_Worker_Cap_3", | ||
"H_LIB_CIV_Worker_Cap_4" | ||
]; | ||
}; | ||
|
||
["headgear", _civHats] call _fnc_saveToTemplate; //Headgear given to Normal Civs, Workers, Undercover Rebels. | ||
|
||
_civhats append ["H_HeadBandage_clean_F", "H_HeadBandage_stained_F", "H_HeadBandage_bloody_F"]; | ||
|
||
private _loadoutData = call _fnc_createLoadoutData; | ||
|
||
_loadoutData set ["uniforms", _civUniforms]; | ||
_loadoutData set ["pressUniforms", _pressUniforms]; | ||
_loadoutData set ["workerUniforms", _workerUniforms]; | ||
_loadoutData set ["pressVests", []]; | ||
_loadoutData set ["helmets", _civHats]; | ||
_loadoutData set ["pressHelmets", []]; | ||
|
||
_loadoutData set ["maps", ["ItemMap"]]; | ||
_loadoutData set ["watches", ["ItemWatch"]]; | ||
_loadoutData set ["compasses", ["ItemCompass"]]; | ||
|
||
|
||
private _manTemplate = { | ||
["helmets"] call _fnc_setHelmet; | ||
["uniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _workerTemplate = { | ||
["helmets"] call _fnc_setHelmet; | ||
["workerUniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _pressTemplate = { | ||
["helmets"] call _fnc_setHelmet; | ||
["pressUniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _prefix = "militia"; | ||
private _unitTypes = [ | ||
["Press", _pressTemplate], | ||
["Worker", _workerTemplate], | ||
["Man", _manTemplate] | ||
]; | ||
|
||
[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate; |
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,81 @@ | ||
|
||
#include "IFA_CIV_Common.sqf" | ||
|
||
"EnochMen" call _fnc_saveNames; | ||
|
||
////////////////////////// | ||
// Loadouts // | ||
////////////////////////// | ||
|
||
private _pressUniforms = [ | ||
"U_LIB_CIV_Priest" | ||
]; //Uniforms given to Press/Journalists | ||
|
||
["uniforms", _civUniforms + ["U_LIB_CIV_Functionary_1"] + _workerUniforms] call _fnc_saveToTemplate; //Uniforms given to the Arsenal, Allowed for Undercover and given to Rebel Ai that go Undercover | ||
|
||
_civhats = [ | ||
"H_LIB_CIV_Worker_Cap_1", | ||
"H_LIB_CIV_Worker_Cap_2", | ||
"H_LIB_CIV_Worker_Cap_3", | ||
"H_LIB_CIV_Worker_Cap_4", | ||
"H_LIB_CIV_Worker_Cap_1", | ||
"H_LIB_CIV_Worker_Cap_2", | ||
"H_LIB_CIV_Worker_Cap_3", | ||
"H_LIB_CIV_Worker_Cap_4" | ||
]; | ||
|
||
["headgear", _civHats + ["H_LIB_CIV_Villager_Cap_1","H_LIB_CIV_Villager_Cap_2","H_LIB_CIV_Villager_Cap_3","H_LIB_CIV_Villager_Cap_4"]] call _fnc_saveToTemplate; //Headgear given to Normal Civs, Workers, Undercover Rebels. | ||
|
||
_civhats append ["H_HeadBandage_clean_F", "H_HeadBandage_stained_F", "H_HeadBandage_bloody_F"]; | ||
|
||
private _loadoutData = call _fnc_createLoadoutData; | ||
|
||
_loadoutData set ["uniforms", _civUniforms]; | ||
_loadoutData set ["pressUniforms", _pressUniforms]; | ||
_loadoutData set ["workerUniforms", _workerUniforms]; | ||
_loadoutData set ["pressVests", []]; | ||
_loadoutData set ["helmets", _civHats]; | ||
_loadoutData set ["pressHelmets", []]; | ||
|
||
_loadoutData set ["maps", ["ItemMap"]]; | ||
_loadoutData set ["watches", ["ItemWatch"]]; | ||
_loadoutData set ["compasses", ["ItemCompass"]]; | ||
|
||
|
||
private _manTemplate = { | ||
["helmets"] call _fnc_setHelmet; | ||
["uniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _workerTemplate = { | ||
["helmets"] call _fnc_setHelmet; | ||
["workerUniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _pressTemplate = { | ||
["pressUniforms"] call _fnc_setUniform; | ||
|
||
["items_medical_standard"] call _fnc_addItemSet; | ||
|
||
["maps"] call _fnc_addMap; | ||
["watches"] call _fnc_addWatch; | ||
["compasses"] call _fnc_addCompass; | ||
}; | ||
private _prefix = "militia"; | ||
private _unitTypes = [ | ||
["Press", _pressTemplate], | ||
["Worker", _workerTemplate], | ||
["Man", _manTemplate] | ||
]; | ||
|
||
[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate; |