You know in EFT (Escape from Tarkov) there is an "Crackers" food item. i trying to make that in Zdoom but my code is not working, for some reason i can't use the item, only pick up. Also the item is supposed to loop 3 times, to get that feel that you are eating.
Here is the Code
ACTOR Crackers : Custominventory
{
Inventory.PickupMessage "You Got a bag of Crackers"
Inventory.InterHubAmount 0
+INVENTORY.INVBAR
Inventory.Pickupsound "misc/w_pkup"
Inventory.Icon "CRSPA0"
STATES
{
SPAWN:
CRSP A -1
STOP
Use:
EATI ABCDEFGHiJKL 5
EATI M 2 A_GiveInventory("Health",5)
EATI NOPFGHIJKL 5
EATI M 2 A_GiveInventory("Health",3)
EATI NOPFGHIJKL 5
EATI M 2 A_GiveInventory("Health",2)
EATI NOPQR 5
}
}
Question
Foxhead
You know in EFT (Escape from Tarkov) there is an "Crackers" food item. i trying to make that in Zdoom but my code is not working, for some reason i can't use the item, only pick up. Also the item is supposed to loop 3 times, to get that feel that you are eating.
Here is the Code
ACTOR Crackers : Custominventory { Inventory.PickupMessage "You Got a bag of Crackers" Inventory.InterHubAmount 0 +INVENTORY.INVBAR Inventory.Pickupsound "misc/w_pkup" Inventory.Icon "CRSPA0" STATES { SPAWN: CRSP A -1 STOP Use: EATI ABCDEFGHiJKL 5 EATI M 2 A_GiveInventory("Health",5) EATI NOPFGHIJKL 5 EATI M 2 A_GiveInventory("Health",3) EATI NOPFGHIJKL 5 EATI M 2 A_GiveInventory("Health",2) EATI NOPQR 5 } }
And if necessary the .Wad
Crackers.zip
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.