Jump to content
  • 0

Highly customized Loottable, cant find file direction, Removing need of maitenance for buildings


___MeRliN___

Question

Hello guys, I have recently tried to create with somebody else an own Dayz Epoch Server but we have currently issues with adding a customized loottable...

 

We are not able to find to find the filedirection and really want to customize the loot of barracks (e.g readding the DMR which got removed, adding some of the "Not banned" arma weapons (no stingers, rocket launchers)). We tested already cal.50 by spawning them in and they worked perfectly fine so I assume you can readd these to the loottable again.

 

So yeah our question is how do you customize the loottable, I searched all day for a solution and didnt find one at all. However the only thing I seem to be able to customize is the zombie loot drop, but thats it.

 

 

Also another thing: Maitenance of buildings, how does it affect your buildings? If its enabled does it mean buildings despawn if they are not maintained propper? If so how do I disable that?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Ok heres a small update: I think I found the loottables, it was in the dayz code file under config cpp. So I added this:

 

    class HeliCrash: Default {
        zombieChance = 0.4;
        maxRoaming = 2;
        zombieClass[] = {"z_soldier_pilot"};
        lootChance = 0.5;
        lootPos[] = {};
        itemType[] = {
            { "FN_FAL","weapon" },
            { "bizon_silenced","weapon" },
            { "M14_EP1","weapon" },
            { "FN_FAL_ANPVS4","weapon" },
            { "BAF_LRR_scoped","weapon" },
            { "AK_107_PSO","weapon" },
            { "Mk_48_DZ","weapon" },
            { "M249_DZ","weapon" },
            {"BAF_L85A2_RIS_SUSAT","weapon"},
            { "M4SPR","weapon" },
            { "","military" },
            { "","medical" },
            { "MedBox0","object" },
            { "NVGoggles","weapon" },
            { "AmmoBoxSmall_556","object" },
            { "AmmoBoxSmall_762","object" },
            { "militaryclothes","single" },
            {"G36C","weapon"},
            {"G36_C_SD_camo","weapon"},
            {"G36A_camo","weapon"},
            { "Pecheneg_DZ","weapon"},
            {"100Rnd_762x54_PK","magazine"},
            {"AKS_GOLD","weapon"},
            {"M4A1_RCO_GL","weapon"},
            {"m8_CarbineGL","weapon"},
            {"G36_C_SD_eotech","weapon"},
            {"VSS_vintorez","weapon"},
            {"10Rnd_9x39_SP5_VSS","magazine"},
            {"20Rnd_9x39_SP5_VSS","magazine"},
            {"m107","weapon"},
            {"10Rnd_127x99_M107","magazine"},
            {"BAF_AS50_scoped","weapon"}

        };
        itemChance[] =    {
            0.02,
            0.03,
            0.02,
            0.01,
            0.01,
            0.02,
            0.02,
            0.02,
            0.01,
            0.02,
            0.4,
            0.19,
            0.05,
            0.01,
            0.03,
            0.03,
            0.05,
            0.02,
            0.01,
            0.01,
            0.01,
            0.01,
            0.02,
            0.01,
            0.03,
            0.01,
            0.01,
            0.02,
            0.02,
            0.01,
            0.01,
            0.01
        };
    };

 

So I added also the chances how frequent you can find each item at a heli crashsite, so my next question would be to this: Is it possible to reduce the chance further for instance I set the spawn chance of the AS50 to 0.5% (0.005)?

Link to comment
Share on other sites

  • 0

Don't forget u will need to alter the revelant spawning loot code to use missionConfigfile instead of  configFile

 

http://community.bistudio.com/wiki/missionConfigFile

 

 

 

Also the chances are weight based... higher the number more likely it will spawn compared to the rest...

If u wanted a value could be 4 or 0.0004

 

Its general easier to just make it add up to 1 so u can think of it as a percentage chance of spawn

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
  • Discord

×
×
  • Create New...