EpochModTeam / Epoch

Epoch Survival Game Mode for ARMA 3
http://epochmod.com/
Other
91 stars 82 forks source link

RyanZ zombies only spawn fish loot #1020

Closed hbeni closed 3 years ago

hbeni commented 3 years ago

I recently installed a fresh server, and had the issue that the R&D zombies just spawned fish loot. The reason i think was class name mismatches in the @epochhive loot tables.

I fixed it this way in the server_settings.pbo:

  1. CfgLootTable.h: Extend the class CfgLootTable with this entry:

    {
        items[] = {
            { { "MetalBars", "CfgLootTable" }, 5 },
            { { "WhiskeyNoodle", "magazine" }, 5 },
            { { "Throw", "CfgLootTable" }, 10 },
            { { "ThrowExplosive", "CfgLootTable" }, 10 },
            { { "Medical", "CfgLootTable" }, 20 },
            { { "PistolAmmo", "CfgLootTable" }, 20 },
            { { "Pelt_EPOCH", "magazine" }, 10 },
            { { "ItemDuctTape", "magazine" }, 8 },
            { { "ItemWatch", "item" }, 30 },
            { { "ItemCompass", "item" }, 5 },
            { { "ItemMap", "item" }, 5 },
            { { "Binocular", "item" }, 5 },
            { { "ItemGeigerCounter_EPOCH", "item" }, 1 }
        };
    };
  2. CfgMainTable.h: Extend the class CfgMainTable with the following entry: (basicly it redefines the old internal zombie definition with the custom one, and then defines that for every spawnable zombi class from the internal ryanZ spawn PBO; so before copy&pasint this, make sure you have all classes defined. Undefined will still spawn fish loot!)

    class RyanZombie {
        lootMin = 0;
        LootMax = 3;
        tables[] = { "EPOCH_RyanZombie_custom_l" };
    };
    //class xxxx : RyanZombie {};
    class RyanZombieC_man_1slow : RyanZombie {};class RyanZombieC_man_polo_1_Fslow : RyanZombie {};class RyanZombieC_man_polo_2_Fslow : RyanZombie {};class RyanZombieC_man_polo_4_Fslow : RyanZombie {};class RyanZombieC_man_polo_5_Fslow : RyanZombie {};class RyanZombieC_man_polo_6_Fslow : RyanZombie {};class RyanZombieC_man_p_fugitive_Fslow : RyanZombie {};
    class RyanZombieC_man_w_worker_Fslow : RyanZombie {};class RyanZombieC_scientist_Fslow : RyanZombie {};class RyanZombieC_man_hunter_1_Fslow : RyanZombie {};class RyanZombieC_man_pilot_Fslow : RyanZombie {};class RyanZombieC_journalist_Fslow : RyanZombie {};class RyanZombieC_Orestesslow : RyanZombie {};class RyanZombieC_Nikosslow : RyanZombie {};
    class RyanZombie15slow : RyanZombie {};class RyanZombie16slow : RyanZombie {};class RyanZombie17slow : RyanZombie {};class RyanZombie18slow : RyanZombie {};class RyanZombie19slow : RyanZombie {};class RyanZombie20slow : RyanZombie {};class RyanZombie21slow : RyanZombie {};class RyanZombie22slow : RyanZombie {};class RyanZombie23slow : RyanZombie {};class RyanZombie24slow : RyanZombie {};
    class RyanZombie25slow : RyanZombie {};class RyanZombie26slow : RyanZombie {};class RyanZombie27slow : RyanZombie {};class RyanZombie28slow : RyanZombie {};class RyanZombie29slow : RyanZombie {};class RyanZombie30slow : RyanZombie {};class RyanZombie31slow : RyanZombie {};class RyanZombie32slow : RyanZombie {};
    
    class RyanZombieC_man_1Walker : RyanZombie {};class RyanZombieC_man_polo_1_FWalker : RyanZombie {};class RyanZombieC_man_polo_2_FWalker : RyanZombie {};class RyanZombieC_man_polo_4_FWalker : RyanZombie {};class RyanZombieC_man_polo_5_FWalker : RyanZombie {};class RyanZombieC_man_polo_6_FWalker : RyanZombie {};
    class RyanZombieC_man_p_fugitive_FWalker : RyanZombie {};class RyanZombieC_man_w_worker_FWalker : RyanZombie {};class RyanZombieC_scientist_FWalker : RyanZombie {};class RyanZombieC_man_hunter_1_FWalker : RyanZombie {};class RyanZombieC_man_pilot_FWalker : RyanZombie {};class RyanZombieC_journalist_FWalker : RyanZombie {};
    class RyanZombieC_OrestesWalker : RyanZombie {};class RyanZombieC_NikosWalker : RyanZombie {};class RyanZombie15walker : RyanZombie {};class RyanZombie16walker : RyanZombie {};class RyanZombie17walker : RyanZombie {};class RyanZombie18walker : RyanZombie {};class RyanZombie19walker : RyanZombie {};class RyanZombie20walker : RyanZombie {};class RyanZombie21walker : RyanZombie {};
    class RyanZombie22walker : RyanZombie {};class RyanZombie23walker : RyanZombie {};class RyanZombie24walker : RyanZombie {};class RyanZombie25walker : RyanZombie {};class RyanZombie26walker : RyanZombie {};class RyanZombie27walker : RyanZombie {};class RyanZombie28walker : RyanZombie {};class RyanZombie29walker : RyanZombie {};class RyanZombie30walker : RyanZombie {};class RyanZombie31walker : RyanZombie {};
    class RyanZombie32walker : RyanZombie {};   
    
    class RyanZombieSpider1 : RyanZombie {};class RyanZombieSpider2 : RyanZombie {};class RyanZombieSpider3 : RyanZombie {};class RyanZombieSpider4 : RyanZombie {};class RyanZombieSpider5 : RyanZombie {};class RyanZombieSpider6 : RyanZombie {};class RyanZombieSpider7 : RyanZombie {};class RyanZombieSpider8 : RyanZombie {};class RyanZombieSpider9 : RyanZombie {};class RyanZombieSpider10 : RyanZombie {};
    class RyanZombieSpider11 : RyanZombie {};class RyanZombieSpider12 : RyanZombie {};class RyanZombieSpider13 : RyanZombie {};class RyanZombieSpider14 : RyanZombie {};class RyanZombieSpider15 : RyanZombie {};class RyanZombieSpider16 : RyanZombie {};class RyanZombieSpider17 : RyanZombie {};class RyanZombieSpider18 : RyanZombie {};class RyanZombieSpider19 : RyanZombie {};class RyanZombieSpider20 : RyanZombie {};
    class RyanZombieSpider21 : RyanZombie {};class RyanZombieSpider22 : RyanZombie {};class RyanZombieSpider23 : RyanZombie {};class RyanZombieSpider24 : RyanZombie {};class RyanZombieSpider25 : RyanZombie {};class RyanZombieSpider26 : RyanZombie {};class RyanZombieSpider27 : RyanZombie {};class RyanZombieSpider28 : RyanZombie {};class RyanZombieSpider29 : RyanZombie {};class RyanZombieSpider30 : RyanZombie {};
    class RyanZombieSpider31 : RyanZombie {};class RyanZombieSpider32 : RyanZombie {};
    
    class RyanZombieCrawler1 : RyanZombie {};class RyanZombieCrawler2 : RyanZombie {};class RyanZombieCrawler3 : RyanZombie {};class RyanZombieCrawler4 : RyanZombie {};class RyanZombieCrawler5 : RyanZombie {};class RyanZombieCrawler6 : RyanZombie {};class RyanZombieCrawler7 : RyanZombie {};class RyanZombieCrawler8 : RyanZombie {};class RyanZombieCrawler9 : RyanZombie {};class RyanZombieCrawler10 : RyanZombie {};
    class RyanZombieCrawler11 : RyanZombie {};class RyanZombieCrawler12 : RyanZombie {};class RyanZombieCrawler13 : RyanZombie {};class RyanZombieCrawler14 : RyanZombie {};class RyanZombieCrawler15 : RyanZombie {};class RyanZombieCrawler16 : RyanZombie {};class RyanZombieCrawler17 : RyanZombie {};class RyanZombieCrawler18 : RyanZombie {};class RyanZombieCrawler19 : RyanZombie {};class RyanZombieCrawler20 : RyanZombie {};
    class RyanZombieCrawler21 : RyanZombie {};class RyanZombieCrawler22 : RyanZombie {};class RyanZombieCrawler23 : RyanZombie {};class RyanZombieCrawler24 : RyanZombie {};class RyanZombieCrawler25 : RyanZombie {};class RyanZombieCrawler26 : RyanZombie {};class RyanZombieCrawler27 : RyanZombie {};class RyanZombieCrawler28 : RyanZombie {};class RyanZombieCrawler29 : RyanZombie {};class RyanZombieCrawler30 : RyanZombie {};
    class RyanZombieCrawler31 : RyanZombie {};class RyanZombieCrawler32 : RyanZombie {};
morgoth0 commented 3 years ago

The proper fix is already in Experimental branch

https://github.com/EpochModTeam/Epoch/commit/57d6764e9ddaa40cee45ef65a546dce9922fabae

hbeni commented 3 years ago

Great! Thanks!