Sign in to follow this  
Followers 0
bFe

Custom loot for separate buildings?

12 posts in this topic

Posted (edited)

So I want to have custom loot for the Object A2 Namalsk buildings.
I've defined the buildings to be MilitaryExtreme instead of Military, and I've added the MilitaryExtreme loot part in the config. However, no loot spawns.
I've noticed that the A2 buildings are listed twice. Is that just to increase the loot or are there some other reason for it?

 

Spoiler

class land_AII_last_floor
    {
        table = "MilitaryExtreme";
        positions[] = {{-1.42236, 5.96289, 4.6129},{-4.45508, 3.43555, 5.46183},{-9.89795, 16.1748, 4.61091},{-14.2314, 22.249, 4.61073},{-23.418, -7.18457, 5.45109},{-10.5127, -16.2051, 5.44856},{4.02783, -21.3271, 5.51657},{5.60254, -11.5703, 6.08711},{-10.6987, 10.3369, 5.43586}};
    };

    class land_AII_middle_floor
    {
        table = "MilitaryExtreme";
        positions[] = {{-13.688, 8.02148, 0.513981},{-10.0068, 5.15332, 0.51099},{-13.0356, -0.71875, 0.520344},{-8.25098, 2.8584, 0.513554},{-4.39795, 2.17383, 0.513092},{-6.1333, 8.2168, 0.513794},{-7.30713, 5.61621, 0.520306}};
    };

    class land_AII_upper_part
    {
        table = "MilitaryExtreme";
        positions[] = {{-0.750488, -3.58496, -2.31057},{-1.50635, -1.92773, -2.32196},{-3.05322, 2.05176, -2.32196},{0.378418, 3.15332, -2.58292}};
    };

 

 

class MilitaryExtreme {
        count = 39;
        half = 8040.540000000001;
        halfIndex = 18;
        sum = 10000;
        items[] = 
        {
            {1689.19, "Trash"},// 16.8919%
            {2364.86, "Pistols"},// 6.7568%
            {2905.41, "PistolAmmo"},// 5.4054%
            {3378.38, "SMG"},// 4.7297%
            {3716.2200000000003, "PistolAttachments"},// 3.3784%
            {4054.05, "Rifles"},// 3.3784%
            {4391.89, "SMGAmmo"},// 3.3784%
            {4729.73, "MilitaryClothing"},// 3.3784%
            {5067.57, "MilitaryBackpacks"},// 3.3784%
            {5405.410000000001, "GuerillaVests"},// 3.3784%
            {5743.24, "MilitaryVests"},// 3.3784%
            {6081.08, "DLCVests"},// 3.3784%
            {6418.92, "MilitaryHeadgear"},// 3.3784%
            {6756.76, "Drinks"},// 3.3784%
            {7094.589999999999, "Food"},// 3.3784%
            {7364.86, "LMG"},// 2.7027%
            {7635.14, "LMGAmmo"},// 2.7027%
            {7837.84, "RifleAttachments"},// 2.027%
            {8040.540000000001, "SMGAttachments"},// 2.027%
            {8243.24, "RifleAmmo"},// 2.027%
            {8378.38, "MedicalItems"},// 1.3514%
            {8513.51, "UGLFlares"},// 1.3514%
            {8648.65, "UGLSmokes"},// 1.3514%
            {8783.78, "SmokeGrenades"},// 1.3514%
            {8918.92, "LMGAmmo"},// 1.3514%
            {9054.05, "DLCSupressor"},// 1.3514%
            {9189.19, "Bipods"},// 1.3514%
            {9256.76, "Rebreathers"},// 0.6757%
            {9324.32, "HEGrenades"},// 0.6757%
            {9391.890000000001, "HandGrenades"},// 0.6757%
            {9459.46, "Snipers"},// 0.6757%
            {9527.029999999999, "SniperAmmo"},// 0.6757%
            {9594.59, "SniperAttachments"},// 0.6757%
            {9662.16, "DLCRifles"},// 0.6757%
            {9729.73, "DLCAmmo"},// 0.6757%
            {9797.3, "DLCOptics"},// 0.6757%
            {9864.86, "Ghillies"},// 0.6757%
            {9932.43, "DLCGhillies"},// 0.6757%
            {10000, "Explosives"}// 0.6757% 
        };
    };

 

Edited by bFe

Share this post


Link to post
Share on other sites
Advertisement

Does loot spawn if you leave it as Military?

Share this post


Link to post
Share on other sites

did you call them twice? I found that the loot in the namalsk buildings didn't spawn if I called them only once.

Share this post


Link to post
Share on other sites
7 hours ago, kuplion said:

Does loot spawn if you leave it as Military?

Yes.

7 hours ago, InsertCoins said:

did you call them twice? I found that the loot in the namalsk buildings didn't spawn if I called them only once.

The buildings are listed twice, yes.

Share this post


Link to post
Share on other sites

Posted (edited)

Can we see your Military loot table?

As a thought, these are classnames for the loot..

class MilitaryExtreme {
        count = 39;
        half = 8040.540000000001;
        halfIndex = 18;
        sum = 10000;
        items[] = 
        {
            {1689.19, "Trash"},// 16.8919%
            {2364.86, "Pistols"},// 6.7568%
            {2905.41, "PistolAmmo"},// 5.4054%
            {3378.38, "SMG"},// 4.7297%
            {3716.2200000000003, "PistolAttachments"},// 3.3784%
            {4054.05, "Rifles"},// 3.3784%
            {4391.89, "SMGAmmo"},// 3.3784%
            {4729.73, "MilitaryClothing"},// 3.3784%
            {5067.57, "MilitaryBackpacks"},// 3.3784%
            {5405.410000000001, "GuerillaVests"},// 3.3784%
            {5743.24, "MilitaryVests"},// 3.3784%
            {6081.08, "DLCVests"},// 3.3784%
            {6418.92, "MilitaryHeadgear"},// 3.3784%
            {6756.76, "Drinks"},// 3.3784%
            {7094.589999999999, "Food"},// 3.3784%
            {7364.86, "LMG"},// 2.7027%
            {7635.14, "LMGAmmo"},// 2.7027%
            {7837.84, "RifleAttachments"},// 2.027%
            {8040.540000000001, "SMGAttachments"},// 2.027%
            {8243.24, "RifleAmmo"},// 2.027%
            {8378.38, "MedicalItems"},// 1.3514%
            {8513.51, "UGLFlares"},// 1.3514%
            {8648.65, "UGLSmokes"},// 1.3514%
            {8783.78, "SmokeGrenades"},// 1.3514%
            {8918.92, "LMGAmmo"},// 1.3514%
            {9054.05, "DLCSupressor"},// 1.3514%
            {9189.19, "Bipods"},// 1.3514%
            {9256.76, "Rebreathers"},// 0.6757%
            {9324.32, "HEGrenades"},// 0.6757%
            {9391.890000000001, "HandGrenades"},// 0.6757%
            {9459.46, "Snipers"},// 0.6757%
            {9527.029999999999, "SniperAmmo"},// 0.6757%
            {9594.59, "SniperAttachments"},// 0.6757%
            {9662.16, "DLCRifles"},// 0.6757%
            {9729.73, "DLCAmmo"},// 0.6757%
            {9797.3, "DLCOptics"},// 0.6757%
            {9864.86, "Ghillies"},// 0.6757%
            {9932.43, "DLCGhillies"},// 0.6757%
            {10000, "Explosives"}// 0.6757% 
        };
    };

 

Edited by kuplion

Share this post


Link to post
Share on other sites
27 minutes ago, kuplion said:

Can we see your Military loot table?

 

It's in the spoiler in the first post above.

Share this post


Link to post
Share on other sites

That's just your MilitaryExtreme loot table.

Share this post


Link to post
Share on other sites

Ok, so I can see the issue. Your Military loot table is calling item classes, but your MilitaryExtreme loot table is calling item types/groups.

For example:

Mil' :

class Military
    {
        count = 1088;
        half = 9542.91911447832;
        halfIndex = 554;
        sum = 10000.0000000001;
        items[] =
        {
            {707.213578500707, "Exile_Item_Can_Empty"}, // 7.07%
            {1414.42715700141, "Exile_Item_ToiletPaper"}, // 7.07%
            {2121.64073550212, "Exile_Item_PlasticBottleEmpty"}, // 7.07%
            {2828.85431400283, "Exile_Item_PlasticBottleFreshWater"}, // 7.07%
            {3536.06789250354, "Exile_Item_Magazine01"}, // 7.07%
            {4243.28147100424, "Exile_Item_Magazine02"}, // 7.07%
            {4950.49504950495, "Exile_Item_Magazine03"}, // 7.07%

Mil' Ex :

class MilitaryExtreme {
        count = 39;
        half = 8040.540000000001;
        halfIndex = 18;
        sum = 10000;
        items[] = 
        {
            {1689.19, "Trash"},// 16.8919%
            {2364.86, "Pistols"},// 6.7568%
            {2905.41, "PistolAmmo"},// 5.4054%
            {3378.38, "SMG"},// 4.7297%
            {3716.2200000000003, "PistolAttachments"},// 3.3784%
            {4054.05, "Rifles"},// 3.3784%
            {4391.89, "SMGAmmo"},// 3.3784%

"Exile_Item_Blahblahblah" are items, but "Trash", or "Pistols", or "PistolAmmo"..., they're not items, they're just classifications of items.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.