[ZScript] OnSecretFound event listener

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
kevansevans
Spotlight Team
Posts: 430
Joined: Tue Oct 05, 2010 12:04 am
Graphics Processor: nVidia with Vulkan support

[ZScript] OnSecretFound event listener

Post by kevansevans »

Title. Current approaches include either A) Checking every frame if a secret has been found, which isn't resource intensive but shouldn't be a thing we need to check every frame, or B) Using some form of ActorEntersSector in a map, such as SecretTrigger, which doesn't cover when picking up an item flagged as a secret, and can't reliably be retroactively added to a map from how complicated it can be to find a point in concave shapes.
User avatar
inkoalawetrust
Posts: 83
Joined: Mon Aug 26, 2019 9:18 pm
Graphics Processor: nVidia with Vulkan support

Re: [ZScript] OnSecretFound event listener

Post by inkoalawetrust »

After looking into it, it seems like this would be relatively simple to do, so I'll see about maybe making it into a pull request in the near future. Main problem will just be having to learn how new events are defined.

Return to “Feature Suggestions [GZDoom]”