Jump to content

Search the Community

Showing results for tags 'Loadouts'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. So I have been getting a lot of help from here with setting up my server, so I figured I would start making Tutorials on what I have learned. As follows are the instructions to change the starting gear from the default "bandage/painkiller/flashlight" to what ever you want, and how to set up custom gear for different users based on their UIDs. This is not completely my work, some came from Axeman and AsianKid. Original Post Setting Up the Default Load-out (no custom loadouts) To start, this is tested on 1.0.2.4-5, and uses variables that Epoch Devs added to the Server Code. DefaultMagazines = []; DefaultWeapons = []; DefaultBackpack = ""; DefaultMagazines is for any item you place in your primary(food, ammo, parts, money) or secondary(bandages, clips, m203 rounds) inventory. DefaultWeapons is for any guns/rifles or kit(hatchet, map, Bbnoculars, NVGs) items. DefaultBackpack is as it would sound, the pack you start out with. You will also see DefaultBackpackWeapon = ""; in my loadout script, I assume it adds items to your back pack, but I don't know its limitations, if I can use guns and ammo. Inserting it into your code is easy. Open the init.sqf in your mission folder or mission.pbo. At about line 20 of a stock Epoch init.sqf file you will find this: // DayZ Epoch config spawnShoremode = 1; // Default = 1 (on shore) spawnArea= 1500; // Default = 1500 MaxHeliCrashes= 5; // Default = 5 MaxVehicleLimit = 300; // Default = 50 MaxDynamicDebris = 500; // Default = 100 dayz_MapArea = 14000; // Default = 10000 dayz_maxLocalZombies = 30; // Default = 30 Below this, add the following: //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"]; DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; Here I have configured the default load-out to be a G17 and 2 clips, 2 bandages, one Morphine, Painkillers, Clean Water, Cooked Steak, a Flashlight and Hatchet. You can change the variables your self to what would be best for your server, including removing everything so players don't even get the stock dayz load-out. Custom Load-Outs (includes default load-out) But, you want even more controls, like load-outs for donators or admins. Thats easy, instead of the above we are going to put all the settings in a loadout.sqf and save that to a "Scripts" folder in our mission folder or mission.pbo. First, create a new folder in the Mission folder or PBO named Scripts. Then Create a new text document in that folder called "loadout.sqf", is will warn you that you are changing the file type, thats ok. Copy this code into your new lodout.sqf: //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"]; DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; //Admin Loadout if ((getPlayerUID player) in ["12345678","98765432"]) then { //Admins: Nobody, Somebody DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","20Rnd_B_AA12_74Slug","20Rnd_B_AA12_Pellets","20Rnd_B_AA12_Pellets","ItemGoldBar10oz"]; DefaultWeapons = ["glock17_EP1","AA12_PMC","Binocular_Vector","NVGoggles","ItemMap","ItemCompass","ItemGPS","ItemWatch","ItemKnife","Itemtoolbox","ItemCrowbar","Itemetool","ItemHatchet"]; DefaultBackpack = "DZ_LargeGunBag_EP1"; DefaultBackpackWeapon = ""; }; //Moderator Loadout if ((getPlayerUID player) in ["14725836"]) then { //Moderators: ThatOtherGuy DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Saiga12_Pellets","8Rnd_B_Saiga12_Pellets","8Rnd_B_Saiga12_74Slug","ItemGoldBar10oz"]; DefaultWeapons = ["glock17_EP1","Saiga12K","Binocular_Vector","NVGoggles","ItemMap","Itemtoolbox"]; DefaultBackpack = "DZ_Backpack_EP1"; DefaultBackpackWeapon = ""; }; //Pro-Donator Loadout if ((getPlayerUID player) in ["96385274"]) then { //Pro-Donators: MoneyBags DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug","ItemGoldBar10oz"]; DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"]; DefaultBackpack = "DZ_GunBag_EP1"; DefaultBackpackWeapon = ""; }; //Donator Loadout if ((getPlayerUID player) in ["456789123"]) then { //Donators: Nobody DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemMorphine","ItemPainkiller","ItemGoldBar","15Rnd_W1866_Slug","15Rnd_W1866_Slug"]; DefaultWeapons = ["glock17_EP1","Winchester1866","ItemMap","ItemFlashlightRed","ItemHatchet"]; DefaultBackpack = "DZ_ALICE_Pack_EP1"; DefaultBackpackWeapon = ""; }; Hit save then start looking it over. Here we set the default loadout, then we check to see if the player is anyone we know from admins to donators, and set their loadout outs accordingly. You will need the Players UID you can ask them for it, or if they have been on your server and you have database access then you can find it under "player_data". In the code put their UID in the same place you see the seven or eight number groupings surrounded by parenthesis " and seperated by commas , if you are setting more than one user for that group. I also write their names at the end of the line in the order that they are placed so I can go back and remember them later. You can edit the different load-outs for each User Group and add more by copying one group and changing the UIDs. Safe the file and Open your init.sqf in your mission folder or mission.pbo. Fine the following lines: if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; //Lights //[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; Above "//Run the player monitor" add the following: //Custom Loadouts [] ExecVM "Scripts\loadout.sqf"; Now we have called the load-out script, and the world is a better place. Save your work, upload your files, and start your server to test out the scripts. Remember, you have to re-spawn for it to work. UPDATE So with each update the epoch devs are giving us server admins more varibles to call and edit in our init.sqf. My hope is they will add a varible to set the default skin when you load in. (logic must be applied when users select between a Male and Female character. Either it ignores females, or it allows for a array to be set: ["Male_Skin","Female_Skin"]) Further, I would like to make it easyier to set up items in these arrays, but as with everything, it becomes hard. I myself had to visit no less that 5 diffrent sorces to find all the "Item IDs" for diffrent items. But, my current data base is pretty current, with most of the non-OP items listed. Here is a link of the items you can buy and sell on my server all listed by their "ItemID" and organised in a way thats easy to read. As for posts 8-13, I can give no reasoning why the script is failing for them. I my self have broken it many times by forgetting a comma between UIDs, but this only leads to players not getting their custom loadouts, I have not experianced any server issues or stalls from this edit, and I will be the first to admit I dont always know what I'm doing and I am always breaking my server with something.
  2. I am looking for a way to either change the skin that a player starts with, or spawn the packed skin in a loadout So my custom loadouts are in \MPMissions\DayZ_Epoch_24.Napf\custom\loadout.sqf and this is the code for default loadout //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","FoodCanPasta","ItemSodaCoke"]; DefaultWeapons = ["ItemFlashlight","ItemHatchet_DZE","ItemMap"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; I've tried putting in "Skin_Functionary1_EP1_DZ" (suit used as an example), same item id as the one in the trader, but it just doesn't spawn anything. I've also tried it without the "Skin_", but to no avail If anyone could enlighten me on this it would be greatly appreciated!
  3. Loadout+ Status: Release Hi, so this is my first ever addon for dayz. I believe it works with vanilla, Epoch and Overpoch + other maps. Basically this adds options for loadouts. Like you can customize loadouts for donators, admins, moderators, or have random loadouts for everyone. (Note* The loadouts are not "random" you can make different kind of loadouts and the script selects 1 to spawn with.) To install, drag the zip file's content to your custom folder in your mission.pbo. If you don't have a custom folder, make one. Open Init.sqf and find this // DayZ Epoch config spawnShoremode = 1; // Default = 1 (on shore) spawnArea= 1500; // Default = 1500 dayz_MapArea = 14000; // Default = 10000 Add this below that //Empty out the Loadout DefaultMagazines = [""]; DefaultWeapons = [""]; DefaultBackpack = ""; DefaultBackpackItems = [""]; and then find if (!isDedicated) then { [] execVM "custom\welcome.sqf"; //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); [] execVM "custom\colorcorrection\cc.sqf";//< //Bus Route //< [] execVM "busroute\player_axeBus.sqf"; //<You dont probably have these 3 lines. //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; }; And now add this code above "//Run the player monitor" //Custom Loadouts execVM "custom\loadout+.sqf"; And you're done! Go ahead and open the Loadout+.sqf and tweak to your liking! (This is my first ever script that i have released, so please, if you find bugs report them to me!) You can reply here, send a pm, or add me on steam: Spodermayt I hope you enjoy it! Loadout+.zip
  4. This will allow you to do both a starting loadout as well as custom individual loadouts through the database finally. DISCLAIMER: ONLY TESTED WITH .ST SERVERS SO IT MAY NOT WORK FOR EVERYONE!!!! First you will need to replace your server_playerLogin with this http://pastebin.com/G4LHvFCZ once you have done so go into your database and run an sql for these 3 tables: CREATE TABLE IF NOT EXISTS `instance` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `world_id` smallint(5) unsigned NOT NULL DEFAULT '1', `inventory` varchar(2048) NOT NULL DEFAULT '[]', `backpack` varchar(2048) NOT NULL DEFAULT '["DZ_Patrol_Pack_EP1",[[],[]],[[],[]]]', PRIMARY KEY (`id`), KEY `fk1_instance` (`world_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2760 ; CREATE TABLE IF NOT EXISTS `cust_loadout` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `inventory` varchar(2048) NOT NULL, `backpack` varchar(2048) NOT NULL, `model` varchar(100) DEFAULT NULL, `description` varchar(1024) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=204 ; CREATE TABLE IF NOT EXISTS `cust_loadout_profile` ( `cust_loadout_id` bigint(20) unsigned NOT NULL, `unique_id` varchar(128) NOT NULL, PRIMARY KEY (`cust_loadout_id`,`unique_id`), KEY `fk2_cust_loadout_profile` (`unique_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Once you have done these you can now go into your instance and you can hit insert First start with ID which would be your instance id. Second would be world_id which would be 1. Third would be inventory: player inventory goes [[weapons and tools],[ammo and items]] Fourth would be backpack: backpacks go [backpack name,[[weapon],[#]],[[item, tool, ammo],[#,#,#]]] All items are case sensitive and surrounded by quotes and commas Example of an inventory: INSERT INTO `instance` (`id`, `world_id`, `inventory`, `backpack`) VALUE (####, 1, '[["ItemCompass","ItemHatchet"],["ItemBandage","ItemBandage"]]', '["",[[],[]],[[],[]]]'); Now you can also do your custom loadouts by going to cust_loadout and hitting insert. Same thing applies to this but instead id would be the number of the loadout you want to assign the person. Example of a cust_loadout: INSERT INTO `cust_loadout` (`id`, `inventory`, `backpack`, `model`, `description`) VALUES (1, '[["Makarov","ItemKnife","ItemMatchbox","ItemCompass","ItemMap","ItemHatchet","ItemFlashlight"],["ItemBandage","ItemBandage","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemSodaCoke","FoodCanBakedBeans","ItemAntibiotic","ItemMorphine"]]', '["DZ_Patrol_Pack_EP1",[[],[]],[[],[]]]', NULL, 'Subscription Starter'); Then go to cust_loadout_profile and hit insert. You will then put the id of the loadout you want to give the person and then place the unique_id of the individual inside that and hit go. Example of a cust_loadout_profile: INSERT INTO `cust_loadout_profile` (`cust_loadout_id`, `unique_id`) VALUES (1, '#########'); And that is it, tested and working on .ST Servers.
  5. DefaultMagazines = ["ItemBloodbag","ItemBandage","ItemPainkiller","FoodSteakCooked","ItemSodaCoke","17Rnd_9x19_glock17",""]; DefaultWeapons = ["ItemFlashlight","ItemCompass","ItemToolbox","ItemKnife","ItemHatchet","ItemMap","glock17_EP1"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; if ((getPlayerUID player) in ["##########","#########"]) then { DefaultMagazines = ["ItemBloodbag","ItemBandage","ItemPainkiller","FoodSteakCooked","ItemSodaCoke","17Rnd_9x19_glock17","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag"]; DefaultWeapons = ["ItemFlashlight","ItemCompass","ItemToolbox","ItemKnife","ItemHatchet","ItemMap","glock17_EP1","M4A3_CCO_EP1"]; DefaultBackpack = "DZ_Backpack_EP1"; DefaultBackpackWeapon = ""; }; In the dayz_mission or DayZ_Epoch_11.Chernarus folder find your init.sqf add the code above but put your playerID in the " #'s " bit and a friends in the other. posted this since i saw a few threads asking about this. :)
×
×
  • Create New...