Jump to content

Search the Community

Showing results for tags 'custom loadout'.



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. I found this on another forum, but seeing as I am truly dedicated to this one, I thought I'd share what i have found concerning the question I see a lot of people ask regarding default loadouts for everyone, including respawns and new players to the server. Its customizable with current 1.0.6.2 class IDs. Unpack dayz_server.pbo and navigate to the compiles folder. Open the file named server_playerlogin.sqf. Find the follow block of code : _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite; and comment this out by adding /* */ to the top and bottom of this code block. Like this /* _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite; */ Then directly underneath this paste the following and configure to your liking. I have tried this and it works. To understand the logic, it is pointless to add a custom sqf in the mission folder, whether it be inside the init.sqf or a "exeVM" or a "call" method pointing to another custom sqf file seeing as the init is processed before server_playerlogin.sqf. _randomSpot = true; _inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]]; _backpack = ["DZ_ALICE_Pack_EP1",[],[]]; _key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack]; _key call server_hiveWrite; Here is a list of most of the class ID's currently being used. Not all of them are there, but for this purpose you will find it more than adequate. https://forums.dayz.com/topic/137361-dayz-chernarus-class-ids/ Finally we can now lay this beast to rest. Hope this will help many solve their default loadouts. I can recommend <ESSV3> by @ebayShopperif you need more than a single loadout for all spawns.
  2. Okay. I need some help to custom loadout The two players i have pasted in dont get their Loadouts. Why? This is the script inside init.sqf //Default Loadout DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"]; DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet","ItemKnife","ItemGPS","ItemMap","ItemToolbox"]; DefaultBackpack = "DZ_Patrol_Pack_EP1"; DefaultBackpackWeapon = ""; //Pro-Donator Loadout if ((getPlayerUID player) in ["76561198030709588,76561198133594430"]) then { //Pro-Donators: Loke , canip 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 = ""; }; I dont think there is any problems with that... But the Player UID... maybe Please help me
  3. Help - Custom loadouts for different groups using player IDS? for example normal players, donors, admins?
  4. I have a working custom loadout that is ready for testing if anybody fancies giving it a go..? All works from existing DB schema, nothing more required than adding a new entry to existing object_data table, for each player / admin. And updating / re-packaging server_monitor.sqf and server_playerLogin.sqf.. Coded for v1.0.1.4 vanilla Epoch.. I wouldn't recommend this unless you are happy with trying out new scripts, can package server PBOs and can update your SQL with confidence, as said above, is for testing, no hand holding :) The required fields in DB (object_data) are: Classname: custom_loadout CharacterID: <the UID of the player you want to apply the loadout to> Inventory: The custom loadout in this format: [["weapon1","weapon2","weapon3"],["magazine1","magazine2","magazine3"],["<backpack class name>",[["backpack weapon"],[1]],[["backpack magazine","backpack magazine","backpack magazine"],[1,1,1]]],"<Player skin class>"] EG: [["ItemFlashlight","ItemKnife","revolver_EP1","ItemMatchbox","ItemMap"],["ItemPainkiller","PartWheel","ItemHeatPack","FoodCanFrankBeans","ItemMorphine","ItemJerrycanEmpty","ItemAntibiotic"],["DZ_CivilBackpack_EP1",[["ItemToolbox"],[1]],[["ItemPainkiller","PartWheel","ItemHeatPack","FoodCanFrankBeans","ItemMorphine","ItemJerrycanEmpty","ItemAntibiotic"],[1,1,1,2,2,3,2]]],"Soldier1_DZ"] Get the DB entry wrong and you will see errors when trying to join the game.. Example SQL for loadout: INSERT INTO `object_data` VALUES (561,98368222451168,11,'custom_loadout','2013-07-07 20:47:32',23393798,'[0,[0,0,0]]','[[\"ItemFlashlight\",\"ItemKnife\",\"revolver_EP1\",\"ItemMatchbox\",\"ItemMap\"],[\"ItemPainkiller\",\"PartWheel\",\"ItemHeatPack\",\"FoodCanFrankBeans\",\"ItemMorphine\",\"ItemJerrycanEmpty\",\"ItemAntibiotic\"],[\"DZ_CivilBackpack_EP1\",[[\"ItemToolbox\"],[1]],[[\"ItemPainkiller\",\"PartWheel\",\"ItemHeatPack\",\"FoodCanFrankBeans\",\"ItemMorphine\",\"ItemJerrycanEmpty\",\"ItemAntibiotic\"],[1,1,1,2,2,3,2]]],\"Soldier1_DZ\"]','[]',0.00000,0.00000); EDIT: Not tested yet on 1.0.1.5 Enjoy.. epoch_1014_custom_loadouts.zip
  5. Hey all :) How about the ability to create custom loadouts and assign them to specific players, via the database? I would love this, as it would allow us to give custom loadouts to folks that donate :D Similar to the 'custom_loadout' and 'custom_loadout_profile' in Reality/Bliss databases.
×
×
  • Create New...