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.

Making lock notices into regular non-centered messages

Postby CasualChris » Sun Apr 04, 2021 10:32 am

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!
CasualChris
 
Joined: 30 Dec 2016

Re: Making lock notices into regular non-centered messages

Postby Player701 » Mon Apr 05, 2021 12:35 am

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.
User avatar
Player701
 
 
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests