Spoiler:this bug happens in r3334, and I am really hoping for a fix. Also, i tested whether increasing maxAmount had any effect, it didn't and this bug also happens with the console's give command.Ideas?
edit: a solution was found.
Moderator: GZDoom Developers
Spoiler:this bug happens in r3334, and I am really hoping for a fix. Also, i tested whether increasing maxAmount had any effect, it didn't and this bug also happens with the console's give command.Ideas?
Code: Select all
Actor superFlask : CustomInventory
{
+INVENTORY.ALWAYSPICKUP
+INVENTORY.INVBAR
states
{
Spawn:
PTN2 ABC 4
loop
Use://Pickup:
TNT1 A 0 A_GiveInventory ("doubleFlask")
TNT1 A 0 A_GiveInventory ("doubleFlask")
TNT1 A 0 A_GiveInventory ("doubleFlask")
stop
}
}
Actor doubleFlask : CustomInventory
{
+INVENTORY.ALWAYSPICKUP
INVENTORY.MaxAmount 1
+INVENTORY.AUTOACTIVATE
states
{
Spawn:
PTN2 ABC 4
loop
Use://Pickup:
TNT1 A 0 A_GiveInventory ("ArtiHealth", 10)
stop
}
}
Code: Select all
Actor superFlask : CustomInventory
{
+INVENTORY.HUBPOWER
+INVENTORY.ALWAYSPICKUP
+INVENTORY.AUTOACTIVATE
+INVENTORY.INVBAR
INVENTORY.MaxAmount 100
states { Spawn:
PTN2 ABC 4
loop
use:
TNT1 A 0 A_GiveInventory ("doubleFlask", 1)
stop
}}
Actor doubleFlask : CustomInventory
{ +INVENTORY.ALWAYSPICKUP
states {
Pickup:
TNT1 A 0 A_GiveInventory ("ArtiPoisonBag", 1)
TNT1 A 0 A_GiveInventory ("ArtiHealth", 1)
TNT1 A 0 A_TakeInventory ("superFlask", 1)
TNT1 A 0 a_jumpifinventory("superFlask",1,"pickup")
stop }}
// try giving yourself this, you'll now get 10 of both items meaning this works
Actor superFlaskTest : CustomInventory
{states { Spawn:
PTN2 ABC 4
loop
pickup:
TNT1 A 0 A_GiveInventory ("superFlask", 10)
stop
}}