Jump to content
  • 0

Consumable Items animation


Foxhead

Question

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

  • 1
3 hours ago, Thfpjct said:

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.

 

https://forum.zdoom.org/viewtopic.php?f=123&t=66479

Try that

Edited by Kappes Buur

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...