Jump to content
  • 0

How do I add a custom mugshot to a powerup


asd1994

Question

I've ben working on a new power up and it's pretty much done. I would like to have it set the mugshot to a custom one I made, like how the Invulnerability powerup does, but I can't figure out how. I've tried using A_SetMugshotState and a custom SBARINFO file, but the new face doesn't pop up at all. Then when I take damage or shoot a bunch, it reverts back to the normal face after the pain/attacking faces and I'm not sure why.

My current code:

 

For the powerup itself:

  Pickup:
    TNT1 A 0 A_SetMugshotState("TripleFace")
    TRIP A 0 Bright A_GiveInventory("TPowerWeaponLevel2",1)
    Stop

 

And the SBARINFO:

mugshot "TripleFace"
{
    TFACE -1;
}

 

I do have the actual image named "TFACE" and it has it's offsets set to line up with the normal face too. 

 

Any suggestions? 

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...