Jump to content
  • 0

I can't add timers to the screen.


K_Doom

Question

This project has some new weapons and items added, so I was forced to modify a HUD for this. I'm trying to add timers to the effect of new powerups on the screen, but I can't seem to find the right code for this. I dug through the files and commented out/deleted everything remotely related to "powerup timers", if that stopped working I would figure out the right code to add the new items. But I couldn't find it, Doom's default powerup timers keep working no matter what I do. I couldn't find the right code to insert my powerups. I've looked on the wiki too, but to no avail. So I need help knowing what is the correct code responsible for the powerup timers on this HUD.


Below are some details;


Notice the partial invisibility timer in the red rectangle. I want the same effect for custom items.

Screenshot_Doom_20230804_021300.png.99196ce0476ef1bf48ef5640266747a6.png

 

 

The HUD is merged with the other map files in a pk3. Here are screenshots to easily find HUD files.

cap.PNG.a221fa5455719fb7454b73526d90c501.PNG

cap1.PNG.70844679c6bb876167b55a4cb0c55cbb.PNG

cap2.PNG.ea4c02522ecdbb2e767a485d42911f5c.PNG

cap3.PNG.5f2eee35b45bc6cd3b7f282818740f6b.PNG

 

 

The pk3 file: test_mnstrs&wpns.rar


Thank you for your attention.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

All right, this HUD material seems to be taken from a different mod https://forum.zdoom.org/viewtopic.php?t=60356 (specifically the "LevelInfo" part)

 

I would recommend taking a look at the material in the original, unadulterated mod linked above. Specifically, I would recommend looking at the two files in the "source" directory of levelinfo.pk3; there's some helpful information you should be able to find there.

Share this post


Link to post
  • 0

@SMG_Man Thanks, this seems a lot more complex than I thought but it's a direction. If you don't answer again, it's because it worked.

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