Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Sign in to follow this  
Foxhead

Consumable Items animation

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×