mirror of
https://github.com/projectbraf/braf_factions.git
synced 2026-06-13 17:23:28 +00:00
Several changes to add thugs when CUP is installed
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
params["_unit"];
|
||||
|
||||
Sniper = [
|
||||
magazineBlacklist = [
|
||||
"braf_30Rnd_556x45_Blank",
|
||||
"CUP_100Rnd_TE1_Green_Tracer_556x45_BetaCMag_ar15",
|
||||
"CUP_100Rnd_TE1_Red_Tracer_556x45_BetaCMag_ar15",
|
||||
"CUP_100Rnd_TE1_Yellow_Tracer_556x45_BetaCMag_ar15",
|
||||
"CUP_100Rnd_556x45_BetaCMag_ar15",
|
||||
"150Rnd_556x45_Drum_Green_Mag_F",
|
||||
"150Rnd_556x45_Drum_Mag_F",
|
||||
"150Rnd_556x45_Drum_Sand_Mag_F",
|
||||
"150Rnd_556x45_Drum_Green_Mag_Tracer_F",
|
||||
"150Rnd_556x45_Drum_Mag_Tracer_F",
|
||||
"150Rnd_556x45_Drum_Sand_Mag_Tracer_F",
|
||||
"braf_20Rnd_762x51_Blank",
|
||||
"braf_30Rnd_556x45_HK_festim",
|
||||
"braf_sig_556x45_festim"
|
||||
|
||||
];
|
||||
|
||||
_sniper = [
|
||||
"Braf_aglc_scope",
|
||||
"braf_factions_aglc_verde_scope",
|
||||
"CUP_srifle_M14_DMR",
|
||||
@@ -11,5 +29,17 @@ Sniper = [
|
||||
|
||||
];
|
||||
|
||||
_unit addSecondaryWeaponItem (selectRandom Sniper);
|
||||
_unit [Sniper] call BIS_fnc_compatibleMagazines;
|
||||
_currentMagazine = getArray ( configFile >> "CfgWeapons" >> primaryWeapon _unit >> "magazines" );
|
||||
|
||||
//Remove all current weapon magazines
|
||||
{
|
||||
_unit removeMagazines _x;
|
||||
}forEach _currentMagazine;
|
||||
_definedWeapon = (selectRandom _sniper);
|
||||
_unit addWeaponGlobal _definedWeapon;
|
||||
|
||||
_compatibleMagazines = compatibleMagazines _definedWeapon;
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist
|
||||
|
||||
_magazine = (selectRandom _compatibleMagazines);
|
||||
_unit addMagazines [_magazine, 6];
|
||||
|
||||
Reference in New Issue
Block a user