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: GZDoom 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.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

CallACS builtin is accessible from non-play scope

Postby argv » Sun Aug 12, 2018 8: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!
You do not have the required permissions to view the files attached to this post.
Joined: 30 Aug 2016

Re: CallACS builtin is accessible from non-play scope

Postby Graf Zahl » Mon Aug 13, 2018 12: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+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests