Heyo, this is my first time making a feature suggestion here. So I hope I don't waste your time too much.
I've noticed a lot of TC's and projects regarding the PS1/Doom64 mods and ports seem to be missing one thing. PS1 and Doom64 flashed the key I was missing from the door via audio visual feedback. The audio being the standard item pickup sound repeating at least three times as well as flashing the key in the hud. I haven't seen modders try to use ACS to make it a thing and I don't know if it is. The only project I know that has it is Doom64 EX which is completely different port and tries to be as faithful as possible to the original Doom64. All of which seems like old news by now. Sorry this is not some extreme mind-blowing or cool idea. It's pretty insignificant. I just thought it might be something to suggest since I heard you guys added some kind lighting system for maps defined with Doom64 lighting or something.
PS1/DOOM64 style missing key audio visual feedback.
Moderator: GZDoom Developers
-
- Posts: 6
- Joined: Tue Mar 06, 2018 2:39 am
-
-
- Posts: 1440
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Manjaro Linux
- Location: Siberia (UTC+7)
Re: PS1/DOOM64 style missing key audio visual feedback.
Audio: locked door sound is defined in SNDINFO as misc/keytry. For example, it is used in Beautiful Doom. So it is possible to make a mod with the sound that you like.
Video: don't know about flashing a key, but it is possible to set appropriate color for text message that appears when you try to open locked door. Example: Maybe this is sufficient.
Video: don't know about flashing a key, but it is possible to set appropriate color for text message that appears when you try to open locked door. Example: Maybe this is sufficient.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 13368
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: PS1/DOOM64 style missing key audio visual feedback.
The flashing key thing is not currently possible without a custom implementation in either ZScript or ACS.
I am not sure if this should be an engine feature or not, though, as I see merits both to the "DIY" mindset as well as actually having it available. So I am going to leave this open for Graf to decide.
I am not sure if this should be an engine feature or not, though, as I see merits both to the "DIY" mindset as well as actually having it available. So I am going to leave this open for Graf to decide.
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: PS1/DOOM64 style missing key audio visual feedback.
I can think of some ways to do this. It could either be added as a LOCKDEFS extension (like, for example a "LockedSpecial" parameter for executing an action special), or as some virtual static function on the Key class that can be set per-subclass that gets called when trying to open a locked door that needs said key.
-
-
- Posts: 17803
- Joined: Fri Jul 06, 2007 3:22 pm
Re: PS1/DOOM64 style missing key audio visual feedback.
The way I see it, it'd make more sense as a property of the status bar (since it's UI stuff). Alternatively, it could be a MAPINFO setting, but I like this less.
I don't see much point in mixing and matching "locked door" feedback within the same map. Consistency demands this kind of things to be a global property.
I don't see much point in mixing and matching "locked door" feedback within the same map. Consistency demands this kind of things to be a global property.
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: PS1/DOOM64 style missing key audio visual feedback.
I've thought of a way to do this easily. I was working on a "WorldLineActivated" event for a different purpose, but it would also allow for handling this. The way I'm writing it at the moment, it's fired on line activation before executing the special but right after checking if the line has a lock, so I can pass the fact that it's locked as a parameter to the event ("ActivatedLine" and "IsLocked" would be added to the WorldEvent struct for this). Linedefs already have the "locknumber" variable exported so it should be trivial to implement what you need.
I'm testing it right now to make sure things work properly.
Edit: A terrible misunderstanding happened. Seems like lock checking isn't done where I expected. This will require different handling.
I'm testing it right now to make sure things work properly.
Edit: A terrible misunderstanding happened. Seems like lock checking isn't done where I expected. This will require different handling.
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: PS1/DOOM64 style missing key audio visual feedback.
There are ways to do this now through WorldLinePreActivated.