2016-10-18 13:15:06 +00:00
|
|
|
|
|
|
|
// Boost Armor Artifact (Dragonskin Bracers) --------------------------------
|
|
|
|
|
2016-11-26 09:08:25 +00:00
|
|
|
class ArtiBoostArmor : Inventory
|
2016-10-18 13:15:06 +00:00
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
+COUNTITEM
|
|
|
|
+FLOATBOB
|
|
|
|
Inventory.DefMaxAmount;
|
|
|
|
Inventory.PickupFlash "PickupFlash";
|
|
|
|
+INVENTORY.INVBAR +INVENTORY.FANCYPICKUPSOUND
|
|
|
|
Inventory.Icon "ARTIBRAC";
|
|
|
|
Inventory.PickupSound "misc/p_pkup";
|
|
|
|
Inventory.PickupMessage "$TXT_ARTIBOOSTARMOR";
|
|
|
|
Tag "$TAG_ARTIBOOSTARMOR";
|
|
|
|
}
|
|
|
|
States
|
|
|
|
{
|
|
|
|
Spawn:
|
|
|
|
BRAC ABCDEFGH 4 Bright;
|
|
|
|
Loop;
|
|
|
|
}
|
2016-11-26 09:08:25 +00:00
|
|
|
|
|
|
|
override bool Use (bool pickup)
|
|
|
|
{
|
|
|
|
int count = 0;
|
|
|
|
|
|
|
|
if (gametype() == GAME_Hexen)
|
|
|
|
{
|
|
|
|
HexenArmor armor;
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; ++i)
|
|
|
|
{
|
|
|
|
armor = HexenArmor(Spawn("HexenArmor"));
|
|
|
|
armor.bDropped = true;
|
|
|
|
armor.health = i;
|
|
|
|
armor.Amount = 1;
|
|
|
|
if (!armor.CallTryPickup (Owner))
|
|
|
|
{
|
|
|
|
armor.Destroy ();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
count++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return count != 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
BasicArmorBonus armor = BasicArmorBonus(Spawn("BasicArmorBonus"));
|
|
|
|
armor.bDropped = true;
|
|
|
|
armor.SaveAmount = 50;
|
|
|
|
armor.MaxSaveAmount = 300;
|
|
|
|
if (!armor.CallTryPickup (Owner))
|
|
|
|
{
|
|
|
|
armor.Destroy ();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-10-18 13:15:06 +00:00
|
|
|
}
|