[Not a bug] Freeze CMD: Frozen Actors still do certain actions

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Freeze CMD: Frozen Actors still do certain actions

Postby XxMiltenXx » Wed May 15, 2019 3:46 pm

Actors will still perform overriden Tick() when frozen.

Code: Select allExpand view
   override void Tick()
   {
      angle += 4;
      SetXYZ((Pos.X + 0.1, Pos.Y, Pos.Z));
      A_LogFloat(angle);
      Super.Tick();
   }


Testable Example is attached.
Start a Level in Doom
Open the Console
Summon Turner
Freeze or Give PowerTimeFreeze

The Actor will still turn and move, even though it shouldn't.
Attachments
Freeze_Bug.wad
(232 Bytes) Downloaded 8 times
XxMiltenXx
 
Joined: 08 Jan 2014
Location: Germany
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Freeze CMD: Frozen Actors still do certain actions

Postby Arctangent » Wed May 15, 2019 4:10 pm

You've got it backwards: it's not that the game checks for whether or not an actor is frozen and calls Tick() based on that, Tick() itself checks if the actor is frozen and just doesn't do anything if it is. Subsequently, any code in an Tick() override will run regardless if it doesn't check for that itself.
User avatar
Arctangent
squawky
 
Joined: 06 Nov 2014
Discord: SquawkyAtan#2371

Re: Freeze CMD: Frozen Actors still do certain actions

Postby Graf Zahl » Wed May 15, 2019 4:43 pm

More to the point, even when frozen, Tick still runs some actions. This cannot be disabled globally. Tick needs to be called and a Tick override needs to check itself and ensure that the base function still performs the needed actions.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Freeze CMD: Frozen Actors still do certain actions

Postby XxMiltenXx » Wed May 15, 2019 4:52 pm

Ah, thanks for the clarification, I wasn't aware of that. Sorry for the false report then.
XxMiltenXx
 
Joined: 08 Jan 2014
Location: Germany
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests