Add tags for monsters

Like feature suggestions, but you've actually written code to make it happen. More likely to make it into the game than some random request in feature suggestions.

Moderator: Developers

Forum rules
Please see Code submission guidelines

GZDoom Status:
Image Image

Link to Legacy Repo

QZDoom Status:
Image Image

Add tags for monsters

Postby m8f » Sun Jun 24, 2018 5:40 am

Why? So mods that reveal enemy names don't show internal monster class names.

Tags are based on language.enu lump:

- Tags for Doom/Doom 2 monsters are referring directly to CC_* strings.
- Tags for Heretic monsters are based on obituaries.
- All tags match corresponding obituaries.

Pull request
User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia
Discord: m8f#0629

Re: Add tags for monsters

Postby Rachael » Sun Jun 24, 2018 6:34 am

It's fairly standard for all internal strings to reference language strings, and this should not be any exception.

If the strings are not currently available, you can make them, and only English is required, but you can translate to your native language if it's available. You can use the prefix FN_* or something ("FriendlyName").
User avatar
Rachael
QZDoom + Webmaster
 
Joined: 13 Jan 2004

Re: Add tags for monsters

Postby m8f » Sun Jun 24, 2018 7:02 am

Understood. For Doom monsters, should I create FN_* too, or referencing CC_* is okay?
User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia
Discord: m8f#0629

Re: Add tags for monsters

Postby Gez » Sun Jun 24, 2018 8:55 am

Create new.

I mean, you have mods that change the CC_ names for reasons and the result isn't always usable for the purpose you want. Try Ancient Aliens for example.
Code: Select allExpand view
CC_HERO = Alien?
CC_HEAVY = Illegal Alien
CC_CACO = Alien UFO
CC_PAIN = Alien :(
CC_HELL = Little Green Alien
CC_LOST = Alien Invader
CC_REVEN = Gray Alien
CC_DEMON = Amphibian Alien
CC_IMP = An Alien
CC_ZOMBIE = A Alien
CC_SPIDER = Alien Queen
CC_MANCU = Alien Pastry Chef
CC_SHOTGUN = Alien Sympathizer
CC_ARACH = Robo-Alien
CC_ARCH = Reptilian Alien
CC_BARON = Big Green Alien
CC_CYBER = Xenu, Alien Emperor


Oh, and don't forget not all monsters appear in the cast anyway. No spectre for example. No dog. No stealth monsters or scripted marines either.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Add tags for monsters

Postby m8f » Sun Jun 24, 2018 9:25 am

Okay, done. Tags are FN_* in language.enu.
I didn't add tags for stealth monsters because they inherit tags from their base classes. Scripted marines don't appear in IWADs.
User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia
Discord: m8f#0629


Return to Code Submissions

Who is online

Users browsing this forum: No registered users and 1 guest