Making lock notices into regular non-centered messages

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
CasualChris
Posts: 54
Joined: Fri Dec 30, 2016 3:43 pm

Making lock notices into regular non-centered messages

Post by CasualChris »

I have one request that hopefully should not be too difficult to fulfill.

I want to make it so that the messages that show up whenever you try to open a locked door, activate a locked object, etc., show up as simple "top-left" messages (the same vein as the ones that show up when you pick up things like items/weapons/ammo) like in the original Doom, rather than centered messages.

Any and all help would be greatly appreciated!
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Making lock notices into regular non-centered messages

Post by Player701 »

Unfortunately, it appears that this behavior is hard-coded: P_CheckKeys calls PrintMessage which in turn calls C_MidPrint. If you want to change the message style for your own map only, you could try emulating the "locked" action specials with an ACS script by checking for keys manually via CheckInventory and calling Log and PlaySound if the check fails.
Post Reply

Return to “Scripting”