Removing Hospital boxes?

Markokil321

New Member
Hello, (another n00b question) :eek:

I run two DayZ Epoch servers, and am wondering whether it would be possible to remove the Medical boxes that spawn inside hospital Buildings. There are already plenty supplies spawned on the ground and then an additional 2 boxes with 10 of each med supply.


Is this possible to do?
Where would i go (What Folder/file) to remove or edit the Medical boxes that spawn inside hospitals?

Thanks
 
Not sure if I am correct on this but in the file CfgBuildingLoot.hpp you can define the loot for each class. These classes represent the buildings, here for example you have the hospital class:

Code:
class Hospital: Default {
        zombieChance = 0.4;
        minRoaming = 2;
        maxRoaming = 6;
        zombieClass[] = {"z_doctor","z_doctor","z_doctor"};
        lootChance = 1;
        lootPos[] = {};
        itemType[] = {
            { "","trash" },
            { "","hospital" },
            {"MedBox0","object"}
        };
        itemChance[] =    {
            0.1,
            0.7,
            0.2
        };
        itemTypeSmall[] = {
            { "","trash" },
            { "","hospital" }
        };
        itemChanceSmall[] =    {
            0.1,
            0.9
        };
    };

MedBox0 is the medic box that you want to remove, so changing the above to this should in theory work, NOT TESTED THOUGH:

Code:
class Hospital: Default {
        zombieChance = 0.4;
        minRoaming = 2;
        maxRoaming = 6;
        zombieClass[] = {"z_doctor","z_doctor","z_doctor"};
        lootChance = 1;
        lootPos[] = {};
        itemType[] = {
            { "","trash" },
            { "","hospital" }
        };
        itemChance[] =    {
            0.1,
            0.7
        };
        itemTypeSmall[] = {
            { "","trash" },
            { "","hospital" }
        };
        itemChanceSmall[] =    {
            0.1,
            0.9
        };
    };
 
Back
Top