GEORGE FLOROS GR 4207 Posted December 18, 2018 GF Auto Random Loadout Script - Mod by GEORGE FLOROS [GR] Description: GF Auto Random Loadout Script , it will detect the enabled Mods , without editing lists. You are free to do anything but i would like to give me Credits for this! Simple and easy to use and adapt . Have Fun ! Installation / Usage: For usage instructions and information of how to use the GF Auto Random Loadout Script please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the initServer.sqf , to copy paste in your mission.https://community.bistudio.com/wiki/SQF_syntax Don't try to open this with the simple notepad. For everything that is with comment // in front or between /* means that it is disabled , so there is no need to delete the extra lines. You can open this ex: with notepad++https://notepad-plus-plus.org/ and also use the extra pluggins (this way will be better , it will give also some certain colors to be able to detect ex. problems )http://www.armaholic.com/page.php?id=8680 or use any other program for editing . For the Compilation List of my GF Scripts , you can search in: https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/ Notes: It will detect the enabled Mods , without editing lists. There are 3 options available : 1 = Load every Mod + Bohemia items , 2 = Load every Mod - No Bohemia items , 3 = Load Bohemia items Only There is an exclude list available or add in the init of a unit: this setVariable ["Var_GF_ARL", true]; Extended options about the loadouts , are available. It is also included a mod version , posible to unpack and edit. Credits and Thanks to : Thanks to All script contributors Thanks to everyone who tries to do the best for this game! Thanks to BIS for such a great platform . Thanks to BIS Community and BIS Community Forums . Thanks to Armaholic Community and Forums . Changelog: v1.1 Added Custom items array. Minor fixes. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=40307 Armaholic GF Auto Random Loadout Script - Mod 2 2 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted December 18, 2018 # I have forgot to mention , that this is for everyone , Players and AI. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted January 6, 2019 Changelog: v1.1 Added Custom items array. Minor fixes. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted January 9, 2019 2 hours ago, CHICKENLICKEN said: On 8/1/2019 at 1:44 PM, GEORGE FLOROS GR said: Really ! just add here the list of the classnames that you want , in order to fix this for you. I would appreciate that a lot. Reveal hidden contents this forceAddUniform "SE_Scavenger_Coat"; this addItemToUniform "CUP_8Rnd_9x18_Makarov_M"; this addItemToUniform "CSW_M870_8Rnd_buck"; this addVest "SE_Armored_Eastern_Tactical_Vest_Black"; this addItemToVest "FirstAidKit"; for "_i" from 1 to 2 do {this addItemToVest "CSW_M870_8Rnd_buck";}; for "_i" from 1 to 2 do {this addItemToVest "CSW_M870_8Rnd_slug";}; for "_i" from 1 to 2 do {this addItemToVest "CUP_8Rnd_9x18_MakarovSD_M";}; for "_i" from 1 to 2 do {this addItemToVest "GrenadeMolotovPSRUS";}; this addHeadgear "SE_Ushanka"; this addGoggles "SE_GP5"; Primary Weapon: this addWeapon "CSW_M870"; this addPrimaryWeaponItem "CSW_M870_flashlight_normal"; comment "Add items"; this linkItem "SAN_Headlamp_v1"; So: Uniform: "SE_Scavenger_Coat"; Vest: "SE_Armored_Eastern_Tactical_Vest_Black"; headgear: "SE_Ushanka"; Goggles: "SE_GP5"; Primary weapon: "CSW_M870"; Primary attachment: "CSW_M870_flashlight_normal"; :secondary "CUP_hgun_Makarov"; And with the equipment/ammo in the spoiler in the vest. so to change this to custom : //GF_ARL_Select --> 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only GF_ARL_Select = 4; and then you add your items array in case 4 : case 4 : { /* //________________ Custom items only ________________ It is posible to add everything to one array and the code below will manage the spawn , GF_ARL_cfgArray = []; But then delete the arrays and their count below */ // add the classnames ex: GF_ARL_primaryWeapon_array = ["arifle_MX_SW_F"]; GF_ARL_secondaryWeapon_array = ["launch_NLAW_F"]; GF_ARL_handgunWeapon_array = ["hgun_ACPC2_F"]; GF_ARL_Magazines_array = ["100Rnd_65x39_caseless_mag","16Rnd_9x21_Mag"]; GF_ARL_Uniform_array = ["U_B_CombatUniform_mcam_tshirt"]; GF_ARL_Vests_array = ["V_PlateCarrier2_rgr"]; GF_ARL_Headgear_array = ["H_HelmetB_grass"]; GF_ARL_Backpacks_array = ["B_AssaultPack_mcamo"]; GF_ARL_Goggles_array = ["G_Combat"]; GF_ARL_Items_array = ["FirstAidKit"]; GF_ARL_Attachments_array = ["acc_pointer_IR"]; GF_ARL_Binocular_and_Nvg_array = ["NVGoggles"]; so you can just make the changes . then go to : [] spawn { while {true} do { { if ( ((alive _x)) && (!(_x getVariable ["Var_GF_ARL",false])) && (!((typeOf _x) in GF_ARL_Exclude_List)) /* //________________ You can filter the side here ________________ && {((side group _x) == west || (side group _x) == east || (side group _x) == independent || (side group _x) == civilian)} */ // && (side group _x == playerSide) // && (!(side group _x == playerSide)) ) then { _x spawn GF_ARL; }; _x setVariable ["Var_GF_ARL",true]; {waitUntil {!alive _x}; _x setVariable ["Var_GF_ARL",false]; }; }forEach allUnits; sleep 5; }; }; and to apply changes only for east side : && (side group _x == east) So try this and if it's not working i will send you the files. Share this post Link to post Share on other sites
CHICKENLICKEN 56 Posted January 11, 2019 thanks it works! some errors but ill try and fix. How can I make one for Independent side now? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted January 11, 2019 Just now, CHICKENLICKEN said: thanks it works! Ok so you worked with this code or the previous ? Share this post Link to post Share on other sites
CHICKENLICKEN 56 Posted January 11, 2019 11 hours ago, GEORGE FLOROS GR said: Ok so you worked with this code or the previous ? This code seems to work. other doesn;t for me. IS there a way to get some units on the samesaide, say east, to spawn with only A primary weapon, some with only a secondary? Or impossible? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted January 11, 2019 4 hours ago, CHICKENLICKEN said: IS there a way to get some units If you want certain units with certain loadouts , i just created a new script if you want to check and it's very easy to edit this : Give it a try : Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted March 6, 2019 Running the script with Ravage Zombies : Share this post Link to post Share on other sites
Matthew Hutchings 2 Posted April 8, 2019 as per your last comment on armaholic, i am (i believe) running the latest version. but they just keep spawing with grenades and keep throwing them by default cause they have no ammo 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted April 8, 2019 Thank you Matthew Hutchings that you contact me here ! Welcome to Bis Forums ! Yesterday , i tested again the script and it was working fine. Have you test the example mission ? Share this post Link to post Share on other sites
Matthew Hutchings 2 Posted April 9, 2019 18 hours ago, GEORGE FLOROS GR said: Thank you Matthew Hutchings that you contact me here ! Welcome to Bis Forums ! Yesterday , i tested again the script and it was working fine. Have you test the example mission ? I have not, where can i find said mission? Edit: tried the mission i was using and for some reason its working again so it might be because me and a friend are running the mod verson of it and not just the script. but i dont know how to edit the mission im using (dynamic bulwarks) and be able to play it after? any help? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted April 9, 2019 The mod version working on the server should be fine. I will check this again. If you run the mod (in the server ) you don't need to run the script and the opposite. It's very easy to edit a mission. First of all , i can do this for you. If you want to fix this yourself , then you need Gunter's Tutorial : PBO Manager http://www.armaholic.com/page.php?id=16369 and the folder of the script in your mission main folder and add the lines of the initserver,sqf , to yours. Share this post Link to post Share on other sites