Dead Island Wiki
Advertisement
Dead Island Wiki

By default the user cannot carry food or drinks. The following will show you how to mod your game to so you can carry as many items of food as you want.

Open the Data0.pak file and copy the "Inventory.scr" to your mods foler (click here for a tutorial)

. Find the following:

    Item("Medkit_HealthPackFoodSmall", CategoryType_Medkit)
    {
        Name("&Medkit_HealthPackFoodSmall_N&");
        Description("&Medkit_HealthPackFoodSmall_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(2);
        MaxStackCount(1);
        Mesh("apple_a.msh");
        Skin("apple");
        InventoryMesh("apple_a.msh");
        ColorPreset("red");
        AnimPrefix("Fruit");
        HudIcon("medkit_big");
        UseTime(0.1);
        UseSound("eating.wav");
        Buff("FoodSmall");
        UseOnPickUp(true);
        LootType(LootType_Powerup);
        Color(Color_White);
    }

Modify it to look like this:

    Item("Medkit_HealthPackFoodSmall", CategoryType_Medkit)
    {
        Name("&Medkit_HealthPackFoodSmall_N&");
        Description("&Medkit_HealthPackFoodSmall_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(2);
        MaxStackCount(30);
        Mesh("apple_a.msh");
        Skin("apple");
        InventoryMesh("apple_a.msh");
        ColorPreset("red");
        AnimPrefix("Fruit");
        HudIcon("medkit_big");
        UseTime(0.1);
        UseSound("eating.wav");
        Buff("FoodSmall");
        UseOnPickUp(false);
        LootType(LootType_Powerup);
        Color(Color_White);
    }

Change the MaxStackCount to however many items you want to be able to carry, and change the UseOnPickUp to false.

Now when you play the game you can carry apples with you.

You can do this with any of the following:

    Item("Medkit_HealthPackFoodSmall", CategoryType_Medkit)
    {
        Name("&Medkit_HealthPackFoodSmall_N&");
        Description("&Medkit_HealthPackFoodSmall_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(2);
        MaxStackCount(1);
        Mesh("apple_a.msh");
        Skin("apple");
        InventoryMesh("apple_a.msh");
        ColorPreset("red");
        AnimPrefix("Fruit");
        HudIcon("medkit_big");
        UseTime(0.1);
        UseSound("eating.wav");
        Buff("FoodSmall");
        UseOnPickUp(true);
        LootType(LootType_Powerup);
        Color(Color_White);
    }
    Item("Medkit_HealthPackFood", CategoryType_Medkit)
    {
        Name("&Medkit_HealthPackFood_N&");
        Description("&Medkit_HealthPackFood_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(4);
        MaxStackCount(1);
        Mesh("snack.msh");
        InventoryMesh("snack.msh");
        ColorPreset("red");
        AnimPrefix("Snack");
        HudIcon("medkit_big");
        UseTime(0.1);
        UseSound("eating_Medkit_HealthPackFood.wav");
        Buff("FoodNormal");
        UseOnPickUp(true);
        LootType(LootType_Powerup);
        Color(Color_White);
    }
    Item("Medkit_HealthPackFoodLarge", CategoryType_Medkit)
    {
        Name("&Medkit_HealthPackFoodLarge_N&");
        Description("&Medkit_HealthPackFoodLarge_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(6);
        MaxStackCount(1);
        Mesh("snack.msh");
        Skin("power");
        InventoryMesh("snack.msh");
        ColorPreset("red");
        AnimPrefix("Snack");
        HudIcon("medkit_big");
        UseTime(0.1);
        UseSound("eating_Medkit_HealthPackFood.wav");
        Buff("FoodLarge");
        UseOnPickUp(true);
        LootType(LootType_Powerup);
        Color(Color_White);
    }
    Item("Medkit_HealthPackSmall", CategoryType_Medkit)
    {
        IdNameOld("Medkit_SmallHealthPack");
        Name("&Medkit_HealthPackSmall_N&");
        Description("&Medkit_HealthPackSmall_D&");
        Visibility(true);
        ItemType(ItemType_Medkit);
        PhysicsScript("DroppedInventory.scr");
        Price(5);
        MaxStackCount(1);
        Mesh("cola_can.MSH");
        InventoryMesh("cola_can_use.MSH");
        ColorPreset("red");
        AnimPrefix("Bottle");
        HudIcon("medkit");
        SelfHealing(25.0);
        CoopHealing(25.0);
        UseTime(0.66);
        Buff("MedKitWeak");
        UseOnPickUp(true);
        LootType(LootType_Powerup);
        Color(Color_White);
    }
Advertisement