That actually sounds like a pretty good idea. I have an idea on how to do it, but I only have access to an Android tablet right now...
Basically something like this:
Code: Select all
Heal:
TNT1 A 0 A_CheckFlag("FRIENDLY", "IsFriendly", AAPTR_DEFAULT) // Only heal enemies
TNT1 A 0 A_JumpIfInventory("HealItem", 1, 1)
Goto See
TNT1 A 0 HealThing(1)
TNT1 A 0 A_TakeInventory("HealItem", 1)
Goto Heal
IsFriendly:
TNT1 A 0 A_JumpIfInventory("HealItem", 1, 1)
Goto See
TNT1 A 0 A_TakeInventory("HealItem", 9999) // Prevent 0-tic loop, can 0x7FFFFFFF be
// used instead of 9999?
Goto See





