lonewolfgaming Posted October 16, 2016 Report Share Posted October 16, 2016 Does anyone know where the loot table for the MaxAmmoBoxes is located? Would like to add some additional items or a random chance to them instead of just the ammo all the time. Link to comment Share on other sites More sharing options...
0 Airwaves Man Posted October 16, 2016 Report Share Posted October 16, 2016 If you mean the supply drop ammo boxes, the loot table is militaryammo[] in CfgLoot and in CfgBuildingLoot class SupplyDrop for the loot around it. Link to comment Share on other sites More sharing options...
0 lonewolfgaming Posted October 16, 2016 Author Report Share Posted October 16, 2016 The boxes I'm talking about are the long black crates that are random on the map you bust open to get the loot Link to comment Share on other sites More sharing options...
0 juandayz Posted October 17, 2016 Report Share Posted October 17, 2016 mmm the supply_drop event? is locate in dayz_server.pbo\modules\ any way if is it...the loot is taked as @A Man says. but maybe you can edit this file.. to take the control of loot from tthe same file. as in rubble town and the others customs events. the id for the long black crate is: _crashModel = "Supply_Crate_DZE"; Link to comment Share on other sites More sharing options...
0 Airwaves Man Posted October 17, 2016 Report Share Posted October 17, 2016 @lonewolfgaming that are the boxes I mean too Link to comment Share on other sites More sharing options...
0 juandayz Posted October 19, 2016 Report Share Posted October 19, 2016 @lonewolfgaming Link to comment Share on other sites More sharing options...
0 juandayz Posted October 19, 2016 Report Share Posted October 19, 2016 @lonewolfgamingthis is a rewrite of rubble town and supply_drop (not tested) to get the config loot into the same file. in init.sqf delete lines in red... add lines in blue. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",15,"supply_newdrop"]]; Take a look on _loot_list variable to define your own items. for example: _loot_lists = [ [ ["WEAPONS","WEAPONS","TOOLS","TOOLS"], ["ANY OTHER ITEMS","ANY OTHER ITEMS","AMMO","AMMO"] ] ]; supply_newdrop.sqf ( must be into dayz_Server.pbo\modules) Spoiler private ["_spawnChance", "_spawnMarker", "_spawnRadius","_start_time", "_loot","_loot2", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position","_loot_box", "_hint"]; _spawnChance = 0.70; // Percentage chance of event happening _loot_box = "Supply_Crate_DZE"; _loot_lists = [ [ ["M9SD","FN_FAL","M4A3_CCO_EP1","AKS_74_kobra","Sa58V_RCO_EP1","ItemEtool","ItemCrowbar","ItemKnife","ItemSledge","ItemCompass","Binocular","Binocular_Vector","NVGoggles","ItemGPS"], ["ItemBriefcase100oz","150Rnd_127x107_DSHKM","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","30Rnd_762x39_SA58","30Rnd_762x39_SA58","30Rnd_762x39_SA58","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"] ], [ ["M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"], ["ItemBriefcase100oz","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor"] ], [ ["ItemToolbox","M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"], ["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor"] ], [ ["ChainSaw"], ["ItemBriefcase100oz","ItemBriefcase100oz","ItemCorrugated","ItemCorrugated","ItemCorrugated","ItemCorrugated","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemComboLock","ItemGenerator"] ], [ ["m240_scoped_EP1_DZE","Mk_48_DZ","M240_DZ","RPK_74"], ["ItemBriefcase100oz","100Rnd_762x51_M240","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_762x51_M240","100Rnd_762x51_M240","200Rnd_556x45_M249","2000Rnd_762x51_M134","2000Rnd_762x51_M134","ItemAVE","ItemLRK","ItemTNK","ItemARM","ItemORP","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked","ItemSeaBassCooked"] ], [ ["M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"], ["ItemBriefcase100oz","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","FoodCanFrankBeans","FoodCanFrankBeans","FoodCanBakedBeans","FoodMRE","HandGrenade_east","2000Rnd_762x51_M134","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks"] ], [ ["VSS_vintorez","Saiga12K","M8_compact"], ["ItemBriefcase100oz","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenade_east","HandGrenade_east","FoodCanSardines","FoodMRE","FoodPistachio","FoodNutmix","FoodMRE","FoodPistachio","FoodNutmix","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks"] ] ]; _loot = _loot_lists call BIS_fnc_selectRandom; _loot2 = _loot_lists call BIS_fnc_selectRandom; _loot_amount = 75; _wait_time = 900; // Dont mess with theses unless u know what yours doing _start_time = time; _spawnRadius = 5000; _spawnMarker = 'center'; if (isNil "EPOCH_EVENT_RUNNING") then { EPOCH_EVENT_RUNNING = false; }; // Check for another event running if (EPOCH_EVENT_RUNNING) exitWith { diag_log("Event already running"); }; EPOCH_EVENT_RUNNING = true; // Random chance of event happening _spawnRoll = random 1; if (_spawnRoll > _spawnChance and !_debug) exitWith {}; // Random location _position = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos; diag_log(format["Spawning loot event at %1", _position]); // Create ammo box _loot_box = createVehicle [_loot_box,_position,[], 0, "CAN_COLLIDE"]; clearMagazineCargoGlobal _loot_box; clearWeaponCargoGlobal _loot_box; _loot_box setVariable ["permaLoot",true]; // Cut the grass around the loot position _clutter = createVehicle ["ClutterCutter_small_2_EP1", _position, [], 0, "CAN_COLLIDE"]; _clutter setPos _position; // cut the grass end // Add loot { _loot_box addWeaponCargoGlobal [_x,1]; } forEach (_loot select 0); { _loot_box addMagazineCargoGlobal [_x,1]; } forEach (_loot select 1); { _loot_box addWeaponCargoGlobal [_x,1]; } forEach (_loot2 select 0); { _loot_box addMagazineCargoGlobal [_x,1]; } forEach (_loot2 select 1); // Send Top Right message to users , requires Remote message script //_hint = parseText format["<t align='center' color='#0D00FF' shadow='2' size='1.75'>Supply Crate</t><br/><t align='center' color='#ffffff'>new supplies drop</t>"]; //customRemoteMessage = ['hint', _hint]; //publicVariable "customRemoteMessage"; // Send center message to users [nil,nil,rTitleText,"New Supplies Drop!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); sleep _wait_time; // Clean up EPOCH_EVENT_RUNNING = false; deleteVehicle _loot_box; Link to comment Share on other sites More sharing options...
0 lonewolfgaming Posted October 19, 2016 Author Report Share Posted October 19, 2016 thanks for working that up Juandayz, but here is the one I am wondering about: Link to comment Share on other sites More sharing options...
0 juandayz Posted October 20, 2016 Report Share Posted October 20, 2016 2 hours ago, lonewolfgaming said: thanks for working that up Juandayz, but here is the one I am wondering about: yup is the Supply_Crate_DZE Link to comment Share on other sites More sharing options...
0 lonewolfgaming Posted October 20, 2016 Author Report Share Posted October 20, 2016 ok, thanks again Link to comment Share on other sites More sharing options...
Question
lonewolfgaming
Does anyone know where the loot table for the MaxAmmoBoxes is located? Would like to add some additional items or a random chance to them instead of just the ammo all the time.
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now