View Single Post
Old 10-10-2011, 06:22 AM   #2118
Sick_of_This
 
Join Date: Oct 2006
Reputation: 70
Posts: 1,675
I posted this in someones request thread for an "Exploding Meat Mod".

Code:
Item("Throwable_MeatJar", CategoryType_Throwable)
    {
        IdNameOld("Item_MeatJar");
        Name("&Throwable_MeatJar_N&");
        Description("&Throwable_MeatJar_D&");
        ItemType(ItemType_MeatJar);
        Visibility(true);
        MaxStackCount(30);
        Price(5);
        Mesh("weapon_atractor_a.msh");
        Skin("default");
        AnimPrefix("Molotov");
        PhysicsScript("DroppedInventory.scr");
        HudIcon("jar");
        Damage(5000.0);
        DamageDuration(10.0);
        PhysicsDamage(70.0);
	DamageType(DamageType_Blast);
        ThrowImpulseLook(1300.0);
        ThrowImpulseUp(200.0);
        ExplodeDelay(5.0);
        ThrowEndSound("throw_spin_01.wav");
        StatsType(StatsType_None);
        LootLevel(5);
        LootType(LootType_Throwable);
        Color(Color_White);
    }
Add/Change these lines in Inventory.scr
Place it in Documents>deadisland>out>data.
You now have exploding meat bait.

The lines marked in red were either added, or their value changed.

Tweak the ExplodeDelay to suit. I chose 5 seconds, but 10 seconds would be "optimal"

Last edited by Sick_of_This: 10-10-2011 at 06:29 AM.
Sick_of_This is offline   Reply With Quote