- If the monster killed is a Zombieman or a inherited actor, he will drop a clip but if he's not, he will drop something else.
Code: Select all
Class ClipDrop : CustomInventory replaces Clip
{
Default {}
States
{
Spawn:
TNT1 A 0 NoDelay
{
If(invoker.bTOSSED) // Credits
Return ResolveState("Drop.Weapon"); // to
Return ResolveState(Null); // SanyaWaffles
}
TNT1 A 0 A_SpawnItem("Clip");
Stop;
Drop.Weapon:
TNT1 A 0
{
If( ... ) // What should I wrote ?
{ A_DropItem("Clip"); } // For Zombieman only
Else
{ A_DropItem("Shell",4,256); } // Drop 4 Shells if the monster is not a Zombieman.
}
Stop;
}
}