Jump to content

Recommended Posts

Awkward then how do i have both features in "my" tool and they are both listed in the 1st post  :rolleyes:

 

wheres the script that pulls all vehicles from config and shows in a scroll menu?

 

.. and i dont see a script that pulls all items and weapons from config and puts them in a box either.

Link to comment
Share on other sites

heres a few usefull admin scripts you can add for this ...

 

box spawning:

http://pastebin.com/pFCZA77m

 

vehicle spawning:

http://pastebin.com/hF1t8pQ1

 

might have a few more up my sleeve at some point ...

 

Thanks for linking these. I tested them both out, but I don't think either one has anything of use.

 

Our current "Crate Menu" already has the ability to spawn a crate with everything, along with having several different types of crates, including a despawn-timer menu. The box2.sqf script you linked is missing a ton of items, and the only advantage it has is being able to spawn different-looking crates. I also noticed a bug. A 'no content' crate with 'Leave default stuff" ends up being a crate with content in it. Just doesn't feel very intuitive overall.

 

Also, the vehiclespawning.sqf you posted breaks the Graphical Vehicle Menu that was made by @Sandbird, and I think I speak for everyone when I say that his graphical menu is far better than a CommandingMenu vehiclespawn script with hundreds of "Next" clicks to get to the vehicle you want.

 

That being said, thanks for the mention. If there's anything else you have that you think would be useful, toss it on this thread and we can have a look at it.

Link to comment
Share on other sites

after looking more thoroughly through all these scripts i now see that they actually are actually there, but they are spread out and not organized at all, which is why i did not notice at first.

 

anyway the "bug" you are reffering to is intended so i can spawn a default box with weapons, which can also be usefull sometime.

you should be able to easy edit it to suit your needs if you want.

WaitUntil{DelaySelected}; 

this is a bad way to do this, waiting for a global var to turn true is not a good idea unless intended this way and a failsafe is in order.

while waiting, the script will still be running, waitng for the global var to turn true, resulting in unpredictable or uwanted beahvior.

 

also i noted that many of the scripts use globalvaribles used in common hacks aswell, you might want to change some of those.

Link to comment
Share on other sites

Talking about the graphical menu, how does that work? I selected it but couldn't figure it out.

 

Also, any chance of getting all the helicopters in Epoch added to the helicopter spawn menu? I noticed choppers such as the Merlin and the Bell helis aren't in there.

 

 

The first time opening it takes a couple of seconds, after that it opens right up. 

 

They are there. Everything is there that is a legit vehicle. 

 

 Pretty simple,  top of the menu has options for air, land or sea vehicles. In the middle is your list,  at the bottom is the temp button where the vehicle is removed after a restart, and the perm button, where it spawns with a key as if you bought it at the trader.  

Link to comment
Share on other sites

These are the files I use for spawning keyed vehicles, if anyone's interested.  I've edited the files down to two lists, one for normal vehicles and one for elite (hero/bandit) vehicles.  In addition, I've changed the classnames to the proper names for Epoch vehicles, so that they are able to be sold.  (Note:  These should include all the vehicles in Epoch as of 1.0.4.2)

 

 Here's the files:

 

malvehiclemenucommon.sqf

 

if ((getPlayerUID player) in AllAdminList) then {


Malvsm =
[
["",true],

["--Locked Common Trader Vehicles--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Airplanes", [2], "#USER:Malfair", -5, [["expression", ""]], "1", "1"],
["Helicopters Unarmed", [3], "#USER:Malfheli", -5, [["expression", ""]], "1", "1"],
["Military Unarmed", [4], "#USER:Malmu", -5, [["expression", ""]], "1", "1"],
["Utility (SUV)", [5], "#USER:Malutil", -5, [["expression", ""]], "1", "1"],
["Cargo Trucks", [6], "#USER:Malcargo", -5, [["expression", ""]], "1", "1"],
["Trucks and Tractor", [7], "#USER:Maltrucks", -5, [["expression", ""]], "1", "1"],
["Fuel/Van/Bus", [8], "#USER:Malfvb", -5, [["expression", ""]], "1", "1"],
["Bikes and ATVs", [9], "#USER:Malbike", -5, [["expression", ""]], "1", "1"],
["Cars", [10], "#USER:Malcars", -5, [["expression", ""]], "1", "1"],
["Boats", [11], "#USER:Malboats", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
};
Malfair =
[
["",true],

["--Airplanes--", [-1], "", -5, [["expression", ""]], "1", "0"],
["AN2 Cargo Plane", [2], "", -5, [["expression", '["AN2_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["C130J", [3], "", -5, [["expression", '["C130J_US_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MV22", [4], "", -5, [["expression", '["MV22_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Cessna C185 Skywagon", [5], "", -5, [["expression", '["GNT_C185"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Cessna C185U Recon", [6], "", -5, [["expression", '["GNT_C185U"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Cessna C185R Skywagon", [7], "", -5, [["expression", '["GNT_C185R"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Cessna C185C Skywagon", [8], "", -5, [["expression", '["GNT_C185C"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malfheli =
[
["",true],

["--Helicopters--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Mi17 Civilian", [2], "", -5, [["expression", '["Mi17_Civilian_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["AH6X Little Bird", [3], "", -5, [["expression", '["AH6X_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MH6J Little Bird", [4], "", -5, [["expression", '["MH6J_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Mozzie", [5], "", -5, [["expression", '["CSJ_GyroC"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["AutoGyro Enclosed", [6], "", -5, [["expression", '["CSJ_GyroCover"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["AutoGyro", [7], "", -5, [["expression", '["CSJ_GyroP"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Merlin HC3", [8], "", -5, [["expression", '["BAF_Merlin_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malmu =
[
["",true],

["--Military Unarmed--", [-1], "", -5, [["expression", ""]], "1", "0"],
["HMMWV Utility M1035", [2], "", -5, [["expression", '["HMMWV_M1035_DES_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["HMMWV Ambulance", [3], "", -5, [["expression", '["HMMWV_Ambulance"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["HMMWV Ambulance CZ", [4], "", -5, [["expression", '["HMMWV_Ambulance_CZ_DES_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["HMMWV Desert", [5], "", -5, [["expression", '["HMMWV_DES_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["HMMWV Forest", [6], "", -5, [["expression", '["HMMWV_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Vodnik Ambulance", [7], "", -5, [["expression", '["GAZ_Vodnik_MedEvac"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Military Offroad CZ", [8], "", -5, [["expression", '["LandRover_CZ_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Military Offroad TK", [9], "", -5, [["expression", '["LandRover_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malutil =
[
["",true],

["--Utility 1/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["SUV Black", [2], "", -5, [["expression", '["SUV_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Blue", [3], "", -5, [["expression", '["SUV_Blue"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Charcoal", [4], "", -5, [["expression", '["SUV_Charcoal"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Green", [5], "", -5, [["expression", '["SUV_Green"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Orange", [6], "", -5, [["expression", '["SUV_Orange"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Pink", [7], "", -5, [["expression", '["SUV_Pink"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Red", [8], "", -5, [["expression", '["SUV_Red"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Silver", [9], "", -5, [["expression", '["SUV_Silver"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [11], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Next page", [12], "#USER:Malutil2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malutil2 =
[
["",true],

["--Utility 2/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["SUV White", [2], "", -5, [["expression", '["SUV_White"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Yellow", [3], "", -5, [["expression", '["SUV_Yellow"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Camo", [4], "", -5, [["expression", '["SUV_Camo"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ TK Civ", [5], "", -5, [["expression", '["UAZ_Unarmed_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ CDF", [6], "", -5, [["expression", '["UAZ_CDF"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ INS", [7], "", -5, [["expression", '["UAZ_INS"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ RU", [8], "", -5, [["expression", '["UAZ_RU"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ TK", [9], "", -5, [["expression", '["UAZ_Unarmed_TK_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ UN", [10], "", -5, [["expression", '["UAZ_Unarmed_UN_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malutil", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malcargo =
[
["",true],

["--Cargo Trucks 1/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Ural CDF", [2], "", -5, [["expression", '["Ural_CDF"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ural TK", [3], "", -5, [["expression", '["Ural_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ural UN", [4], "", -5, [["expression", '["Ural_UN_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["V3S Open TK Civ", [5], "", -5, [["expression", '["V3S_Open_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["V3S Open TK", [6], "", -5, [["expression", '["V3S_Open_TK_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Kamaz", [7], "", -5, [["expression", '["Kamaz"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MTVR Desert", [8], "", -5, [["expression", '["MTVR_DES_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Next page", [12], "#USER:Malcargo2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malcargo2 =
[
["",true],

["--Cargo Trucks 2/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["V3S Civ", [2], "", -5, [["expression", '["V3S_Civ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["V3S Reammo", [3], "", -5, [["expression", '["V3S_RA_TK_GUE_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["V3S TK", [4], "", -5, [["expression", '["V3S_TK_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ural Civil", [5], "", -5, [["expression", '["UralCivil_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ural Civil 2", [6], "", -5, [["expression", '["UralCivil2_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Kamaz Open", [7], "", -5, [["expression", '["KamazOpen_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MTVR Forest", [8], "", -5, [["expression", '["MTVR"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Maltrucks =
[
["",true],

["--Trucks and Tractor--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Pickup Hilux Open", [2], "", -5, [["expression", '["hilux1_civil_3_open_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Offroad Tan Hilux Open", [3], "", -5, [["expression", '["hilux1_civil_1_open"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Offroad Red Hilux Covered", [4], "", -5, [["expression", '["hilux1_civil_2_covered"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Pickup Tube Frame Datsun", [5], "", -5, [["expression", '["datsun1_civil_3_open"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Pickup Open Datsun", [6], "", -5, [["expression", '["datsun1_civil_1_open"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Pickup Covered Datsun", [7], "", -5, [["expression", '["datsun1_civil_2_covered"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Tractor", [8], "", -5, [["expression", '["tractor"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malfvb =
[
["",true],

["--Fuel Trucks, Vans and Buses--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Kamaz Refuel", [2], "", -5, [["expression", '["KamazRefuel_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Mtvr Desert Refuel", [3], "", -5, [["expression", '["MtvrRefuel_DES_EP1_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ural Refuel", [4], "", -5, [["expression", '["UralRefuel_TK_EP1_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["V3S Refuel", [5], "", -5, [["expression", '["V3S_Refuel_TK_GUE_EP1_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Mtvr Forest Refuel", [3], "", -5, [["expression", '["MtvrRefuel_DZ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ikarus Bus", [6], "", -5, [["expression", '["Ikarus"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Ikarus Bus TK", [7], "", -5, [["expression", '["Ikarus_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["S1203 TK", [8], "", -5, [["expression", '["S1203_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["S1203 Ambulance", [9], "", -5, [["expression", '["S1203_ambulance_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malbike =
[
["",true],

["--Bikes and ATVs--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Mountain Bike", [2], "", -5, [["expression", '["MMT_Civ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Old Bike", [3], "", -5, [["expression", '["Old_bike_TK_INS_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Old Moto", [4], "", -5, [["expression", '["Old_moto_TK_Civ_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["TT650 Civ Motorcycle", [5], "", -5, [["expression", '["TT650_Civ"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["TT650 Ins Motorcycle", [6], "", -5, [["expression", '["TT650_Ins"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["TT650 TK Motorcycle", [7], "", -5, [["expression", '["TT650_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["M1030 Motorcycle", [8], "", -5, [["expression", '["M1030_US_DES_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["ATV CZ", [9], "", -5, [["expression", '["ATV_CZ_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["ATV US", [10], "", -5, [["expression", '["ATV_US_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malcars =
[
["",true],

["--Cars 1/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Car White Skoda", [2], "", -5, [["expression", '["Skoda"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Car Blue Skoda", [3], "", -5, [["expression", '["SkodaBlue"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Car Green Skoda", [4], "", -5, [["expression", '["SkodaGreen"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Car Red Skoda", [5], "", -5, [["expression", '["SkodaRed"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["GAZ Blue Volha", [6], "", -5, [["expression", '["Volha_1_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["GAZ Grey Volha", [7], "", -5, [["expression", '["Volha_2_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Old Hatchback", [8], "", -5, [["expression", '["car_hatchback"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Sedan", [9], "", -5, [["expression", '["car_sedan"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [11], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Next page", [12], "#USER:Malcars2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malcars2 =
[
["",true],

["--Cars 2/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Hatchback VW Golf", [2], "", -5, [["expression", '["VWGolf"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Lada GLT M300 LT", [3], "", -5, [["expression", '["GLT_M300_LT"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Sedan GLT M300 ST", [4], "", -5, [["expression", '["GLT_M300_ST"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ White Lada", [5], "", -5, [["expression", '["Lada1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Lada TK", [6], "", -5, [["expression", '["Lada1_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ Red Lada", [7], "", -5, [["expression", '["Lada2"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Lada Decorated", [8], "", -5, [["expression", '["Lada2_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ Militia Lada", [9], "", -5, [["expression", '["LadaLM"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["GAZ Limo Volha", [10], "", -5, [["expression", '["VolhaLimo_TK_CIV_EP1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malcars", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malboats =
[
["",true],

["--Boats 1/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["RHIB", [2], "", -5, [["expression", '["RHIB"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Small boat", [3], "", -5, [["expression", '["Smallboat_1"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Small boat II", [4], "", -5, [["expression", '["Smallboat_2"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["CRRC", [5], "", -5, [["expression", '["Zodiac"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Fishing Boat", [6], "", -5, [["expression", '["Fishing_Boat"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["PBX", [7], "", -5, [["expression", '["PBX"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [11], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Next page", [12], "#USER:Malboats2", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Malboats2 =
[
["",true],

["--Boats 2/2--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Red JetSki", [2], "", -5, [["expression", '["JetSkiYanahui_Case_Red"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Yellow JetSki", [3], "", -5, [["expression", '["JetSkiYanahui_Case_Yellow"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Green JetSki", [4], "", -5, [["expression", '["JetSkiYanahui_Case_Green"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Blue JetSki", [5], "", -5, [["expression", '["JetSkiYanahui_Case_Blue"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [11], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:Malvsm";

 

malvehiclemenuelite.sqf

if ((getPlayerUID player) in AllAdminList) then {


Malvsm =
[
["",true],

["--Locked Elite Trader Vehicles--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Helicopters Armed", [2], "#USER:MalHA", -5, [["expression", ""]], "1", "1"],
["Trucks Armed", [3], "#USER:Maltrucks", -5, [["expression", ""]], "1", "1"],
["Military Armed", [4], "#USER:MalMA", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
};
MalHA =
[
["",true],

["--Helicopters Armed--", [-1], "", -5, [["expression", ""]], "1", "0"],
["CH 47F AL", [2], "", -5, [["expression", '["CH_47F_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UH1H", [3], "", -5, [["expression", '["UH1H_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MI17", [4], "", -5, [["expression", '["MI17_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UH60M AL", [5], "", -5, [["expression", '["UH60M_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UH1Y", [6], "", -5, [["expression", '["UH1Y_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["MH60S AL", [7], "", -5, [["expression", '["MH60S_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Back", [11], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
Maltrucks =
[
["",true],

["--Trucks Armed--", [-1], "", -5, [["expression", ""]], "1", "0"],
["Pickup PK AL GUE", [2], "", -5, [["expression", '["Pickup_PK_GUE_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Pickup PK AL INS", [3], "", -5, [["expression", '["Pickup_PK_INS_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["SUV Armored AL", [4], "", -5, [["expression", '["ArmoredSUV_PMC_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Pickup PK AL TK", [5], "", -5, [["expression", '["Pickup_PKT_TK_GUE_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Offroad DShKM AL", [6], "", -5, [["expression", '["Offroad_DSHKM_Gue_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
MalMA =
[
["",true],

["--Military Armed--", [-1], "", -5, [["expression", ""]], "1", "0"],
["HMMWV SOV AL", [2], "", -5, [["expression", '["HMMWV_M998A2_SOV_DES_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["HMMWV GPK M2 AL", [3], "", -5, [["expression", '["HMMWV_M1151_M2_CZ_DES_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Military Offroad Special AL", [4], "", -5, [["expression", '["LandRover_Special_CZ_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["Military Offroad M2 AL", [5], "", -5, [["expression", '["LandRover_MG_TK_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["UAZ DShKM AL", [6], "", -5, [["expression", '["UAZ_MG_TK_EP1_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["GAZ Vodnik AL", [7], "", -5, [["expression", '["GAZ_Vodnik_DZE"] execVM "admintools\tools\malvehiclespawn.sqf"']], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Back", [12], "#USER:Malvsm", -5, [["expression", ""]], "1", "1"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:Malvsm";

 

GT

Link to comment
Share on other sites

Update!

 

Fix "Admin Menu not appearing" bug. Also enables Admin Menu in vehicles.

 

 

The Admin Menu is now called once per second instead of once at login, ensuring that (assuming it is installed correctly) it will always appear every time after logging into your server. It will also now appear while in vehicles.
 
Also fixed the menu appearing to non-admins. As always, test before you update!
 
Link to comment
Share on other sites

wheres the script that pulls all vehicles from config and shows in a scroll menu?

 

.. and i dont see a script that pulls all items and weapons from config and puts them in a box either.

Wasn't talking about those specific Scripts you posted but the way you called them. Both features are included thats what i meant. If it came over too aggressive I'm sorry wasn't my intention. 

Link to comment
Share on other sites

 

Update!

 

Fix "Admin Menu not appearing" bug. Also enables Admin Menu in vehicles.

 

 

The Admin Menu is now called once per second instead of once at login, ensuring that (assuming it is installed correctly) it will always appear every time after logging into your server. It will also now appear while in vehicles.
 
Also fixed the menu appearing to non-admins. As always, test before you update!
 

 

 

Thanks for the update, I've been playing around with it for an hour now. I have a couple of issues though;

 

Firstly, I still cannot spawn temporary vehicles. I've followed the instructions carefully multiple times, replaced the correct lines, even downloaded fresh epoch_server for the most up to date Filters but temporary vehicles just do not work and never have for me. RTP log doesn't seem to be flagging anything and vehicles with keys work fine.

 

Secondly it seems God mode is broken. I can be killed by AI and other players in God mode and I also killed my Co-Admin in God mode. Zombies however leave you alone.This also seems to affect Car god mode inwhich the vehicles still take damage regardless.

 

I'm still checking my installation and testing but if anyone else can confirm/share a solution that'd be great. Everything else appears to be working well this far. Very good tool set!

Link to comment
Share on other sites

Thanks for the update, I've been playing around with it for an hour now. I have a couple of issues though;

 

Firstly, I still cannot spawn temporary vehicles. I've followed the instructions carefully multiple times, replaced the correct lines, even downloaded fresh epoch_server for the most up to date Filters but temporary vehicles just do not work and never have for me. RTP log doesn't seem to be flagging anything and vehicles with keys work fine.

 

Secondly it seems God mode is broken. I can be killed by AI and other players in God mode and I also killed my Co-Admin in God mode. Zombies however leave you alone.This also seems to affect Car god mode inwhich the vehicles still take damage regardless.

 

I'm still checking my installation and testing but if anyone else can confirm/share a solution that'd be great. Everything else appears to be working well this far. Very good tool set!

 

Try this for temp vehicles and be the first person to tell me if this fix works so I can update my F!@#$%^& install instructions:

 

now to stop the server from deleting the temp vehicle you had spawned in, open up in your server.pbo compile\server_updateObject.sqf  and search for:

 

if (!_parachuteWest and !(locked _object)) then { 

 

it will be around line 28 and paste this right above that line:

 

if (_object getVariable "MalSar" == 1) exitWith {};

 

now the server will no longer delete the temporary vehicle

 

As for your God mode issue, how long has it been since you've updated the Admin Tools? It sounds like you're using a very old version if your God mode isn't working well. That was one of the first things I fixed. Compare the contents of your \admintools\tools\malplayerGM.sqf to this: https://github.com/gregariousjb/Epoch-Admin-Tools/blob/master/admintools/tools/malplayerGM.sqf

Link to comment
Share on other sites

So my admins and I have been using this mod for a few hours and would like to add some information as to what does and does not work.

So far this is my experience:

 

Admin Menu

  • Forgot to test Spectate
  • Teleport and Teleport To requires an exception to antihack or complete disablement of it (This is very bad. Needs to be fixed like it was with BluePhoenix (BP). Adding exception removes the ability to teleport players to you for help or events, removing antihack allows any hacker to teleport freely.
  • God Mode: Works until you enter a god mode safezone (like a trader, but this is partly due to how those scripts are set up to change you to non-godmode after exiting. This can be fixed by editing the safezone or making this script check for godmode every so often. I need someone to tell me if doing this constant check will weigh on the server or not. (Will post how to fix that later when I test it) and it will DISABLE itself if you turn on Car God. It also does not work outside the map with radiation bleeding, probably due to how the out of bounds handles bleeding by removing it directly from you.
  • Zombie Shield works fine
  • Toggle Flying: Rubberbands with antihack on, works with it off. Creating an exception for the player ID seems to smooth it out so you don't have to remove antihack for this as you won't need to make normal players fly. It also kind of works on vehicles which is fun when you see a magic bus flying over head.
  • Point to Repair, Point to Delete: Both work fine
  • Heal: Works for the most part, does not work on self with broken leg most of the time, does not always fix over burdened or knocked out, and does not always fix shaking from pain. 
  • Invisibility works great
  • Infinite Ammo: works good
  • Toggle Grass works

ESP

  • Both options work here. I like that they are separate from one another instead of joined like on BP tools

 

Skin Change

  • Seems to have a glitch that may cause god mode to turn off. Also deletes backpack. This may be avoided by saving the bag as a variable, putting on the outfit and then checking to be sure the variable is still present, if not then readd.

Weapon Kits

  • Works like BP tools, the odd part is having a gun that shoots like another gun, say you have a shotgun and you select an AS50 kit, you still have the shotgun and pressing F will change to the AS50, but the gun looks like a shotgun still. It does however act exactly like an AS50. Just a weird glitch that can be fixed by actually swapping out primary instead of adding to primary.

 

Crate Menu 

  • Works great, I suggest everyone edits them to be exactly what they personally need for their server.

Vehicle Menu

  • All permanent vehicles work NOT INCLUDING Bicycles. Bicycles will spawn if selected but are unusable. You can repair/salvage, but that is all. This may be due to trying to add a key pair to the bike because it can NOT be locked or unlocked. If an exception is made to the code to not pair a key to it and lock it, then it should work fine.
  • Temporary vehicles will NOT work. They last 1-15 seconds and disappear. This is NOT an antihack problem (I turned it off completely). They also do not explode, they simply go away just as they came.
  • Speedboost is great
  • Vehicle God Mode is useless and disables normal god mode if it was on. This needs a huge overhaul and should not be used by admins if this tool is used in a public server.
  • point to repair and refuel work
  • Point to delete perm works, have not tried temp yet.
  • Flip vehicle works great

I have not used the Epoch Menu enough to comment yet.


I hope this helps the kind person who is making this tool for us. I would love to help on it as much as possible and will attempt to if my time permits. I have quite a bit of programming experience, but I have a lot of work most of the time so I can make no promises. I will post updated working/non-working posts every update or two as me and my admins play with the tool on our test build. I will try to get my admins to agree to help as well.

Link to comment
Share on other sites

So my admins and I have been using this mod for a few hours and would like to add some information as to what does and does not work.

So far this is my experience:

 

Admin Menu

  • Forgot to test Spectate
  • Teleport and Teleport To requires an exception to antihack or complete disablement of it (This is very bad. Needs to be fixed like it was with BluePhoenix (BP). Adding exception removes the ability to teleport players to you for help or events, removing antihack allows any hacker to teleport freely.
  • God Mode: Works until you enter a god mode safezone (like a trader, but this is partly due to how those scripts are set up to change you to non-godmode after exiting. This can be fixed by editing the safezone or making this script check for godmode every so often. I need someone to tell me if doing this constant check will weigh on the server or not. (Will post how to fix that later when I test it) and it will DISABLE itself if you turn on Car God. It also does not work outside the map with radiation bleeding, probably due to how the out of bounds handles bleeding by removing it directly from you.
  • Zombie Shield works fine
  • Toggle Flying: Rubberbands with antihack on, works with it off. Creating an exception for the player ID seems to smooth it out so you don't have to remove antihack for this as you won't need to make normal players fly. It also kind of works on vehicles which is fun when you see a magic bus flying over head.
  • Point to Repair, Point to Delete: Both work fine
  • Heal: Works for the most part, does not work on self with broken leg most of the time, does not always fix over burdened or knocked out, and does not always fix shaking from pain. 
  • Invisibility works great
  • Infinite Ammo: works good
  • Toggle Grass works

ESP

  • Both options work here. I like that they are separate from one another instead of joined like on BP tools

 

Skin Change

  • Seems to have a glitch that may cause god mode to turn off. Also deletes backpack. This may be avoided by saving the bag as a variable, putting on the outfit and then checking to be sure the variable is still present, if not then readd.

Weapon Kits

  • Works like BP tools, the odd part is having a gun that shoots like another gun, say you have a shotgun and you select an AS50 kit, you still have the shotgun and pressing F will change to the AS50, but the gun looks like a shotgun still. It does however act exactly like an AS50. Just a weird glitch that can be fixed by actually swapping out primary instead of adding to primary.

 

Crate Menu 

  • Works great, I suggest everyone edits them to be exactly what they personally need for their server.

Vehicle Menu

  • All permanent vehicles work NOT INCLUDING Bicycles. Bicycles will spawn if selected but are unusable. You can repair/salvage, but that is all. This may be due to trying to add a key pair to the bike because it can NOT be locked or unlocked. If an exception is made to the code to not pair a key to it and lock it, then it should work fine.
  • Temporary vehicles will NOT work. They last 1-15 seconds and disappear. This is NOT an antihack problem (I turned it off completely). They also do not explode, they simply go away just as they came.
  • Speedboost is great
  • Vehicle God Mode is useless and disables normal god mode if it was on. This needs a huge overhaul and should not be used by admins if this tool is used in a public server.
  • point to repair and refuel work
  • Point to delete perm works, have not tried temp yet.
  • Flip vehicle works great

I have not used the Epoch Menu enough to comment yet.

I hope this helps the kind person who is making this tool for us. I would love to help on it as much as possible and will attempt to if my time permits. I have quite a bit of programming experience, but I have a lot of work most of the time so I can make no promises. I will post updated working/non-working posts every update or two as me and my admins play with the tool on our test build. I will try to get my admins to agree to help as well.

 

You need to follow the instructions above to fix vehicles dissapearing. And yes it does fix it @Greg. Also i think this guy is right the vehicle Godmode messes up Player Godmode. Great work testing it!

Link to comment
Share on other sites

 

Try this for temp vehicles and be the first person to tell me if this fix works so I can update my F!@#$%^& install instructions:

 

 

As for your God mode issue, how long has it been since you've updated the Admin Tools? It sounds like you're using a very old version if your God mode isn't working well. That was one of the first things I fixed. Compare the contents of your \admintools\tools\malplayerGM.sqf to this: https://github.com/gregariousjb/Epoch-Admin-Tools/blob/master/admintools/tools/malplayerGM.sqf

 

hey dude, i cant spawn in tool crate, when i spawn that in. there is nothing inside it.

Link to comment
Share on other sites

hey dude, i cant spawn in tool crate, when i spawn that in. there is nothing inside it.

 

This is because that box was coded incorrectly. It is coded as this:

_box =["Binocular","Binocular_Vector","ItemCompass","ItemEtool","ItemFlashlight","ItemFlashlightRed","ItemGPS","ItemKnife","ItemMap","ItemMatchbox","ItemRadio","ItemWatch","Laserdesignator","NVGoggles","ItemFishingPole","ItemKeyKit","ItemSledge"];

 

and should be this:

 

_box addMagazineCargoGlobal ["Binocular", _itemn * 1]

_box addMagazineCargoGlobal ["Binocular_vector", _itemn * 1]

_box addMagazineCargoGlobal ["ItemCompass", _itemn * 1]

 

And so on. This gives 10 of each item. If this change is made it will work.

 

 

 

Might also want to change this:

titleText [format["Just-A-Box disappeared."],"PLAIN DOWN"]; titleFadeOut 4;

 

to this:

titleText [format["Tool Crate disappeared."],"PLAIN DOWN"]; titleFadeOut 4;

 

 

I will help make changes like this later, I just have this thread on watch while I finish some Operating Systems homework.

Link to comment
Share on other sites

Noxsicarius, the instructions tell you how to fix the teleport without disabling antihack: https://github.com/gregariousjb/Epoch-Admin-Tools#fix-teleport-rubber-banding

 

Yes it does, but as stated you have two options, disable the hack, or have no teleport player to you ability. Most admins like to run server events in which they teleport players to make the travel to event much faster and painless. I have an idea on how to fix this problem, but I will have to test before posting it. That won't come until late tonight.

Link to comment
Share on other sites

 

Try this for temp vehicles and be the first person to tell me if this fix works so I can update my F!@#$%^& install instructions:

 

 

That fix worked like a charm for me.

 

 

 

  • Vehicle God Mode is useless and disables normal god mode if it was on. This needs a huge overhaul and should not be used by admins if this tool is used in a public server.

 

Yeah Vehicle God mode don't work for me as well but it something i don't use anyway.

 

 

 

hey dude, i cant spawn in tool crate, when i spawn that in. there is nothing inside it.

 

Same nothing in the tool crate.

Link to comment
Share on other sites

Graphic vehicle menu doesn't seem to work for me, i get following error :

 

 

b061262009bd.png

Find description.ext open it with Notepad++ and put this code at the bottom.

#include "admintools\dialog.hpp"     
Link to comment
Share on other sites

So my admins and I have been using this mod for a few hours and would like to add some information as to what does and does not work.

So far this is my experience:

 

Admin Menu

  • Forgot to test Spectate
  • Teleport and Teleport To requires an exception to antihack or complete disablement of it (This is very bad. Needs to be fixed like it was with BluePhoenix (BP). Adding exception removes the ability to teleport players to you for help or events, removing antihack allows any hacker to teleport freely.
  • God Mode: Works until you enter a god mode safezone (like a trader, but this is partly due to how those scripts are set up to change you to non-godmode after exiting. This can be fixed by editing the safezone or making this script check for godmode every so often. I need someone to tell me if doing this constant check will weigh on the server or not. (Will post how to fix that later when I test it) and it will DISABLE itself if you turn on Car God. It also does not work outside the map with radiation bleeding, probably due to how the out of bounds handles bleeding by removing it directly from you.
  • Zombie Shield works fine
  • Toggle Flying: Rubberbands with antihack on, works with it off. Creating an exception for the player ID seems to smooth it out so you don't have to remove antihack for this as you won't need to make normal players fly. It also kind of works on vehicles which is fun when you see a magic bus flying over head.
  • Point to Repair, Point to Delete: Both work fine
  • Heal: Works for the most part, does not work on self with broken leg most of the time, does not always fix over burdened or knocked out, and does not always fix shaking from pain. 
  • Invisibility works great
  • Infinite Ammo: works good
  • Toggle Grass works

ESP

  • Both options work here. I like that they are separate from one another instead of joined like on BP tools

 

Skin Change

  • Seems to have a glitch that may cause god mode to turn off. Also deletes backpack. This may be avoided by saving the bag as a variable, putting on the outfit and then checking to be sure the variable is still present, if not then readd.

Weapon Kits

  • Works like BP tools, the odd part is having a gun that shoots like another gun, say you have a shotgun and you select an AS50 kit, you still have the shotgun and pressing F will change to the AS50, but the gun looks like a shotgun still. It does however act exactly like an AS50. Just a weird glitch that can be fixed by actually swapping out primary instead of adding to primary.

 

Crate Menu 

  • Works great, I suggest everyone edits them to be exactly what they personally need for their server.

Vehicle Menu

  • All permanent vehicles work NOT INCLUDING Bicycles. Bicycles will spawn if selected but are unusable. You can repair/salvage, but that is all. This may be due to trying to add a key pair to the bike because it can NOT be locked or unlocked. If an exception is made to the code to not pair a key to it and lock it, then it should work fine.
  • Temporary vehicles will NOT work. They last 1-15 seconds and disappear. This is NOT an antihack problem (I turned it off completely). They also do not explode, they simply go away just as they came.
  • Speedboost is great
  • Vehicle God Mode is useless and disables normal god mode if it was on. This needs a huge overhaul and should not be used by admins if this tool is used in a public server.
  • point to repair and refuel work
  • Point to delete perm works, have not tried temp yet.
  • Flip vehicle works great

I have not used the Epoch Menu enough to comment yet.

I hope this helps the kind person who is making this tool for us. I would love to help on it as much as possible and will attempt to if my time permits. I have quite a bit of programming experience, but I have a lot of work most of the time so I can make no promises. I will post updated working/non-working posts every update or two as me and my admins play with the tool on our test build. I will try to get my admins to agree to help as well.

This is excellent. I welcome any and all critiques on how the tools work. The only way to fix a problem is to first identify that there is one. 

 

I've been going over the crate .sqfs and I agree that they need some work. I think best-case scenario is to have them coded similar to your example:

_box addMagazineCargoGlobal ["Binocular", _itemn * 1]
_box addMagazineCargoGlobal ["Binocular_vector", _itemn * 1]
_box addMagazineCargoGlobal ["ItemCompass", _itemn * 1]

In this way, users can very simply modify the # of items a crate has so as to customize their own crates.

 

Doing it like the building.sqf crate, like this:

{_magicbox addMagazineCargoGlobal [_x,50];} forEach _dayz_mag;
...would be simpler and cleaner, but impossible to modify individual items unless the script is changed.
 
If you're interested in helping improve these tools, I welcome and appreciate it. A Github Pull Request would be the fastest and easiest way to contribute.
Link to comment
Share on other sites

 

This is excellent. I welcome any and all critiques on how the tools work. The only way to fix a problem is to first identify that there is one. 

 

I've been going over the crate .sqfs and I agree that they need some work. I think best-case scenario is to have them coded similar to your example:

_box addMagazineCargoGlobal ["Binocular", _itemn * 1]
_box addMagazineCargoGlobal ["Binocular_vector", _itemn * 1]
_box addMagazineCargoGlobal ["ItemCompass", _itemn * 1]

In this way, users can very simply modify the # of items a crate has so as to customize their own crates.

 

Doing it like the building.sqf crate, like this:

{_magicbox addMagazineCargoGlobal [_x,50];} forEach _dayz_mag;
...would be simpler and cleaner, but impossible to modify individual items unless the script is changed.
 
If you're interested in helping improve these tools, I welcome and appreciate it. A Github Pull Request would be the fastest and easiest way to contribute.

 

 

I do plan on doing the request. Tonight when I get home. I will probably start by fixing the boxes for you. I agree that the magcbox is very clean and fast, but I personally wish to edit the boxes to my own need so I like them coded as I displayed. I think the epoch box should actually stay like that because you typically want a lot of all building supplies when you get it and if a user wants a small box of them, they can add that themselves very easily. This way is fine for boxes that would most likely not be changed (similar to the all weapons crate), but for something that would be edited like the admin box requires easily editable code for users with little knowledge on the subject. 

What is your idea on the subject? Should the boxes be changed to use the simple easy edit, or just the ones that would normally be edited?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...