Code: Select all
class LiquidMetalHealth : custominventory {
DEFAULT{
+COUNTITEM;
+INVENTORY.ALWAYSPICKUP;
}
states{
Pickup:
TNT1 A 0{
if (health < 30)
{
A_giveinventory("HealthReginT1000");
until(health == 30);
}
}
loop;
}
}
Code: Select all
class HealthReginT1000 : health{
Default
{
Inventory.Amount 1;
Inventory.Maxamount 30;
+INVENTORY.ALWAYSPICKUP;
}
}
it doesn't seem to be working at all, it runs, but does nothing


