Skip to content

Medal/icon system overhaul and MEDALDEF special lump

Adam Kaminski requested to merge topic/default/medal-overhaul into branch/default

This is a huge overhaul of the medal (and partly the icon) system that's existed since Skulltag. Here are the notable changes:

  • Added a new MEDALDEF special lump that allows modders to define their own medals.
  • Modders can award players with players with the new ACS and DECORATE functions: GivePlayerMedal and A_GivePlayerMedal, with an option to silently award the player with the medal if they want to.
  • All built-in Skulltag medals have been removed from the source code completely. This frees up a lot of . These medals can, and should be, handled in skulltag_content via ACS.
  • Removed the GIVEFISTINGMEDAL and GIVESPAMMEDAL actor flags that were added earlier in 3.2.
  • Returned the enemy icon to Zandronum, with new CVars to enable/disable the ally and enemy icons. By default, enemy icons are disabled.
  • Added new ally/enemy icons made by unknownna that look more modern and less intrusive.
  • Added a new flag to the GAMEMODE lump: PLAYERSEARNMEDALS, to determine which game modes allow players to earn medals. By default, only non-cooperative game modes have this flag enabled.
  • New SCORINFO margin commands: DrawMedals and IfPlayerHasMedals, both of which are used to draw all of the medals the player has earned on the scoreboard. This replaces and removes the +showmedals screen, which is no longer necessary to keep around.

Here's a screenshot of how the medals look on the scoreboard: Screenshot_Doom_20240511_105457

And here's another screenshot of how the new ally/enemy icons look: Screenshot_Doom_20240512_104759

Edited by Adam Kaminski

Merge request reports