CallACS builtin is accessible from non-play scope

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

CallACS builtin is accessible from non-play scope

Postby argv » Sun Aug 12, 2018 9:54 pm

As of GZDoom 3.5.0, the builtin function CallACS (and, presumably, the other ACS_* builtins) can be used from outside the play scope. This is obviously unsafe.

The attached pk3 demonstrates that unsafety, by spawning an imp from ui scope. To use:
  1. Load it into GZDoom, along with a Doom-compatible IWAD.
  2. Start a game.
  3. Walk into an area where there's a decent amount of room above you.
  4. Press the Use key.
That'll spawn an imp on top of you—from StaticEventHandler.UiTick!
Attachments
misscope.pk3
(1.39 KiB) Not downloaded yet
argv
 
Joined: 30 Aug 2016

Re: CallACS builtin is accessible from non-play scope

Postby Graf Zahl » Mon Aug 13, 2018 1:29 am

Crap. And wanna bet that changing this will break several mods which use ACS to do some of their HUD work?
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest