#library "AMMODROPSTER"
#include "zcommon.acs"

Script "ZandroUniversalInv_CVar" (Void)
{
	SetResultValue(GetCvar("zandrouniversalinv_power"));
}

Script "AmmoDropster_Mook_Kill_Reward" KILL
{
	if(!CheckFlag(0, "ISMONSTER"))
	{
		terminate;
	}
	if(GetActorProperty(0, APROP_SpawnHealth) <= 30)
	DropItem(0, "PortableFieldKit", -1, 27);
	DropItem(0, "EmergencyAmmoSatchel", -1, 27);
	DropItem(0, "PortableArmorSet", -1, 27);
	DropItem(0, "DeployableSentryBox", -1, 12);
	DropItem(0, "PackMedikit", -1, 12);
	DropItem(0, "PackArmor", -1, 12);
	DropItem(0, "MarineReinforcementsBeacon", -1, 6);
}

Script "AmmoDropster_Fodder_Kill_Reward" KILL
{
	if(!CheckFlag(0, "ISMONSTER"))
	{
		terminate;
	}
	if(GetActorProperty(0, APROP_SpawnHealth) >= 30)
	if(GetActorProperty(0, APROP_SpawnHealth) <= 150)
	{
	DropItem(0, "PortableFieldKit", -1, 32);
	DropItem(0, "EmergencyAmmoSatchel", -1, 32);
	DropItem(0, "PortableArmorSet", -1, 32);
	DropItem(0, "DeployableSentryBox", -1, 27);
	DropItem(0, "DeployableShield", -1, 32);
	DropItem(0, "PackMedikit", -1, 32);
	DropItem(0, "PackArmor", -1, 32);
	DropItem(0, "MarineReinforcementsBeacon", -1, 12);
	}
}

Script "AmmoDrop_MicroBoss_Kill_Reward" KILL
{
	if(!CheckFlag(0, "ISMONSTER"))
	{
		terminate;
	}
	if(GetActorProperty(0, APROP_SpawnHealth) >= 150)
	if(GetActorProperty(0, APROP_SpawnHealth) <= 500)
	{
	DropItem(0, "PortableFieldKit", -1, 64);
	DropItem(0, "EmergencyAmmoSatchel", -1, 64);
	DropItem(0, "SupplyPack", -1, 64);
	DropItem(0, "DeployableSentryBox", -1, 64);
	DropItem(0, "PortableArmorSet", -1, 64);
	DropItem(0, "DeployableShield", -1, 32);
	DropItem(0, "PackMedikit", -1, 32);
	DropItem(0, "PackArmor", -1, 32);
	DropItem(0, "MarineReinforcementsBeacon", -1, 25);
	}
}

Script "AmmoDrop_MiniBoss_Kill_Reward" KILL
{
	if(!CheckFlag(0, "ISMONSTER"))
	{
		terminate;
	}
	if(GetActorProperty(0, APROP_SpawnHealth) >= 500)
	if(GetActorProperty(0, APROP_SpawnHealth) <= 1000)
	{
	DropItem(0, "PortableFieldKit", -1, 128);
	DropItem(0, "MissilePod", -1, 128);
	DropItem(0, "SupplyPack", -1, 128);
	DropItem(0, "PortableArmorSet", -1, 128);
	DropItem(0, "DeployableSentryBox", -1, 27);
	DropItem(0, "DeployableShield", -1, 27);
	DropItem(0, "PackMedikit", -1, 27);
	DropItem(0, "PackArmor", -1, 27);
	DropItem(0, "MarineReinforcementsBeacon", -1, 27);
	
	}
}

Script "AmmoDrop_Boss_Kill_Reward" KILL
{
	if(!CheckFlag(0, "ISMONSTER"))
	{
		terminate;
	}
	if(GetActorProperty(0, APROP_SpawnHealth) >= 2000)
	{
	DropItem(0, "EmergencyAmmoSatchel", -1, 256);
	DropItem(0, "MissilePod", -1, 256);
	DropItem(0, "SupplyPack", -1, 256);
	DropItem(0, "PortableArmorSet", -1, 256);
	DropItem(0, "PackMedikit", -1, 256);
	DropItem(0, "PackArmor", -1, 256);
	DropItem(0, "MarineReinforcementsBeacon", -1, 256);
	}
}