Code: Select all
#library "ammodropper"
#include "zcommon.acs"
script "AMMOdropper" KILL
{
if(CheckWeapon("Chainsaw"))
{
DropItem(0,"clip",20,255); DropItem(0,"clip",20,255); DropItem(0,"clip",20,255);
DropItem(0,"Shell",8,255); DropItem(0,"Shell",8,255);
DropItem(0,"RocketAmmo",1,255); DropItem(0,"RocketAmmo",1,255); DropItem(0,"RocketAmmo",1,255);
DropItem(0,"Cell",25,255); DropItem(0,"Cell",25,255); DropItem(0,"Cell",25,255);
}
} Does CheckWeapon not work in a kill script because the activator is the slain actor? If so, is there a better way to actually do this?
