Advanced Search

Author Topic: Questions regarding the "MugShot" feature.  (Read 4550 times)

0 Members and 1 Guest are viewing this topic.

December 18, 2014, 09:08:31 AM
Read 4550 times

Offline Hilman170499

  • MM8BDM Extender

  • BLUE FOR DAYS!!!
  • **
  • Date Registered: March 18, 2012, 05:49:26 AM

    • View Profile
Questions regarding the "MugShot" feature.
« on: December 18, 2014, 09:08:31 AM »
Recently, I have learned about the MugShot feature from the ZDoom wiki, which apparently allows a display of the user's "face" if defined in SBARINFO and the class/actor. Sounds like something cool that I would use. However, before I could, I have a few questions for those who are familiar with this feature.
1) Obviously, images are needed to be displayed. Do the images for the MugShot feature need to be "sprites" or "graphics"?
2) Branching off from 1, when used in MM8BDM, the images tend to scale up when drawn in SBARINFO. To remedy this for mug shots, should we still define the images in TEXTURES?
3) Some of the individual states feature flags by default. When tampering with these states while defining a custom mug shot, are these flags necessary to avoid errors?
4) When defining the mug shots, do they have to be in a sub-block(i.e.: inside the {}) under the DrawMugShot command or as a separate piece outside the 'statusbar' block?
5) Is it possible to disable "accuracy" by setting it to 0 or does it have to be at least 1?

Thanks in advance.

December 18, 2014, 07:19:46 PM
Reply #1

Offline Laggy Blazko

  • MM8BDM Extender

  • Unf
  • **
  • Date Registered: April 01, 2011, 02:08:23 AM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #1 on: December 18, 2014, 07:19:46 PM »
1) Graphics.
4) Outside, IIRC.
5) 1 would probably disable it.

But last time I checked, Zandronum didn't support custom mugshot states (not sure if it does, now), so when I used it in CSCC I had to use DrawMugShot conditionally, and use DrawImage under certain circumstances.

December 18, 2014, 11:32:32 PM
Reply #2

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #2 on: December 18, 2014, 11:32:32 PM »
1) Graphics.
2) Yes, scale them up, not down. Scaling on TEXTURES is reciprocal to the values you give it, 2.0 scaling will half the size of the patches and 0.5 will double them.
3) They are unnecessary, but they might be of use depending on what you're looking for.
4) Function in SBARINFO concerned with drawing things don't usually require their own sub block, so no.
5) If you're referring to medals, it's a client option that's disabled in the default ini for 8BDM, but I don't recall the variable off hand.

December 19, 2014, 12:02:53 AM
Reply #3

Offline Hilman170499

  • MM8BDM Extender

  • BLUE FOR DAYS!!!
  • **
  • Date Registered: March 18, 2012, 05:49:26 AM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #3 on: December 19, 2014, 12:02:53 AM »
Alright, thanks guys.

By the way, to clarify question 5, "accuracy" is the first value after the DrawMugShot command, which according to the ZDoom wiki, "can be a number in the 1-9 range which specifies how many blood levels there are before death". My question is that are we allowed to turn off this feature by setting it to 0, or whether this is relevant when used in MM8BDM?

Thanks in advance.

December 19, 2014, 12:07:16 AM
Reply #4

Offline Laggy Blazko

  • MM8BDM Extender

  • Unf
  • **
  • Date Registered: April 01, 2011, 02:08:23 AM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #4 on: December 19, 2014, 12:07:16 AM »
Note that it doesn't actually need to have "blood". It basically shows damage according to the player's health. In example, Doom uses 5 levels, so if your health is between 100 and 80 the face would look fine, and from 20 to 1 it would look like a raw hamburger.
I think 1 should disable it.
EDIT: If it's even supported by zandronum. If not, just use the same graphics for all levels.

December 19, 2014, 01:18:24 AM
Reply #5

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #5 on: December 19, 2014, 01:18:24 AM »
If it works like that when running Doom in Zandronum, then it should be editable.

December 04, 2016, 06:45:16 PM
Reply #6

Offline Hilman170499

  • MM8BDM Extender

  • BLUE FOR DAYS!!!
  • **
  • Date Registered: March 18, 2012, 05:49:26 AM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #6 on: December 04, 2016, 06:45:16 PM »
Sorry for bumping this after more than a year, but I felt it's relevant to post this question here without making a new thread.(yay recycling!)

Anyway, if anyone has experience with this, may I please know how to make a mugshot that changes based on health? Like let's say, the mug changes at 25% health or so.
Thanks in advance.

December 07, 2016, 09:57:50 PM
Reply #7

Offline Laggy Blazko

  • MM8BDM Extender

  • Unf
  • **
  • Date Registered: April 01, 2011, 02:08:23 AM

    • View Profile
Re: Questions regarding the "MugShot" feature.
« Reply #7 on: December 07, 2016, 09:57:50 PM »
Setting the accuracy to 4 should work, shouldn't it?