fabiangreffrath / woof

Woof! is a continuation of the Boom/MBF bloodline of Doom source ports.
GNU General Public License v2.0
212 stars 35 forks source link

add obituaries from ZDoom (optional) #1092

Closed fabiangreffrath closed 1 year ago

fabiangreffrath commented 1 year ago

Now that we are able to selectively enable or disable specific types of messages in the game, it would be nice to add support for obituaries (as found in the ZDoom family of ports), but have them disabled by default. The obituary strings should be modifyable by DEHACKED. There are default strings available in the old Doom wiki (and in the GZDoom sources, I guess): https://doom.fandom.com/wiki/ZDoom_obituaries

Since our player "object" does not distinguish between different sexualities, I think it is safest to always refer to them as they/them.

fabiangreffrath commented 1 year ago

Substitutions for the format strings: https://github.com/ZDoom/gzdoom/blob/22271d146a0bca6b432f458c96c4ca18a1b6b143/src/playsim/p_interaction.cpp#L119

fabiangreffrath commented 1 year ago

Method of Death types: https://github.com/ZDoom/gzdoom/blob/22271d146a0bca6b432f458c96c4ca18a1b6b143/src/playsim/p_lnspec.cpp#L113

fabiangreffrath commented 1 year ago

Default strings: https://github.com/ZDoom/gzdoom/blob/22271d146a0bca6b432f458c96c4ca18a1b6b143/wadsrc/static/language.csv#L1191

fabiangreffrath commented 1 year ago

@rfomin what would you say, where is the best place to set the player names from the colors to the actual chosen names?

rfomin commented 1 year ago

@rfomin what would you say, where is the best place to set the player names from the colors to the actual chosen names?

I don't know. I found that very few Boom/MBF PWADs have obituaries in Dehacked, this feature might not be worth it.

fabiangreffrath commented 1 year ago

I don't know. I found that very few Boom/MBF PWADs have obituaries in Dehacked, this feature might not be worth it.

Do you mean the obituaries feature itself or just the part that replaces "player 1" or "green player" with their chosen name?

rfomin commented 1 year ago

Do you mean the obituaries feature itself or just the part that replaces "player 1" or "green player" with their chosen name?

I mean the feature itself. I know only two compatible PWADs where it has been used: Ancient Aliens and Doom 2 in Spain Only.

fabiangreffrath commented 1 year ago

I mean the feature itself. I know only two compatible PWADs where it has been used: Ancient Aliens and Doom 2 in Spain Only.

Okay, but we could nevertheless have "Vanilla" obituaries for multiplayer games. The feature doesn't only start to make sense if the strings got dehacked, right?

rfomin commented 1 year ago

The feature doesn't only start to make sense if the strings got dehacked, right?

Sure. Then I like the player colors better, vanilla doesn't have player names.

fabiangreffrath commented 1 year ago

What's the default color for obituaries in gzdoom?

fabiangreffrath commented 1 year ago

What's the default color for obituaries in gzdoom?

Seems that's gold, but we should make this configurable anyway.

fabiangreffrath commented 1 year ago

Default strings: https://github.com/ZDoom/gzdoom/blob/22271d146a0bca6b432f458c96c4ca18a1b6b143/wadsrc/static/language.csv#L1191

This file contains a lot of strings. We should at least support those listed here:

https://github.com/freedoom/freedoom/blob/c11acd60099e5202ed816139be472d5e35d970f4/lumps/dehacked/dehacked.txt#L612