mirror of
https://github.com/projectbraf/braf_factions.git
synced 2026-06-14 02:53:30 +00:00
moved CUP files to it's own pbo so i can add the addon.toml to not rapify the pbo and allow for #if __has_include statements
This commit is contained in:
27
addons/CUPcompat/functions/fn_thugsequipshotgunCUP.sqf
Normal file
27
addons/CUPcompat/functions/fn_thugsequipshotgunCUP.sqf
Normal file
@@ -0,0 +1,27 @@
|
||||
params["_unit"];
|
||||
|
||||
magazineBlacklist = ["BRAF_Boito_5Rnd_riot","BRAF_Boito_7Rnd_riot"];
|
||||
|
||||
_weapon = [
|
||||
|
||||
"braf_boito_14_oldstock",
|
||||
"braf_boito_14_nostock",
|
||||
"braf_boito_20_oldstock",
|
||||
"CUP_sgun_M1014",
|
||||
"CUP_sgun_M1014_vfg"
|
||||
];
|
||||
|
||||
_currentMagazine = getArray ( configFile >> "CfgWeapons" >> primaryWeapon _unit >> "magazines" );
|
||||
|
||||
//Remove all current weapon magazines
|
||||
{
|
||||
_unit removeMagazines _x;
|
||||
}forEach _currentMagazine;
|
||||
_definedWeapon = (selectRandom _weapon);
|
||||
_unit addWeaponGlobal _definedWeapon;
|
||||
|
||||
_compatibleMagazines = compatibleMagazines _definedWeapon;
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist;
|
||||
|
||||
_magazine = (selectRandom _compatibleMagazines);
|
||||
_unit addMagazines [_magazine, 6];
|
||||
Reference in New Issue
Block a user