SwitchableDecorations ignore the Z distance

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!

SwitchableDecorations ignore the Z distance

Postby Logan MTM » Sat Nov 28, 2020 6:43 pm

Considering the wiki documentations: Activation and USESPECIAL
Something is not wornkig as it should. This SwitchableDecoration sample just ignore the Z distance.
It's not a big problem to solve but I think it shouldn't happen that way.

Switch.pk3
You do not have the required permissions to view the files attached to this post.
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil

Re: SwitchableDecorations ignore the Z distance

Postby Marisa Kirisame » Sun Nov 29, 2020 2:57 am

Does it make any difference if CheckSwitchRange is added to the mapinfo? Because this sounds like typical vanilla behavior.

Edit: never mind that, seems like CheckSwitchRange only affects lines.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: SwitchableDecorations ignore the Z distance

Postby Logan MTM » Tue Dec 08, 2020 5:50 pm



Tue Dec 08, 2020 3:50 pm : "Not downloaded yet"

I need some feedback here. Is that a bug or i just did something wrong?
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil

Re: SwitchableDecorations ignore the Z distance

Postby wildweasel » Tue Dec 08, 2020 6:31 pm

Well, it happens that the people who could answer your question are busy - it's a rough year, probably even more rough this month in particular. So, though you probably didn't want to hear this, you're probably just going to have to wait.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: SwitchableDecorations ignore the Z distance

Postby Graf Zahl » Wed Dec 09, 2020 1:11 am

What's there to test? Yes, the check is not z-sensitive. I know. Sorry, I currently really have no time working on GZDoom. All the little spare time I have goes into Raze at the moment but even that's not nearly what I'd like to do with these engines.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: SwitchableDecorations ignore the Z distance

Postby Logan MTM » Wed Dec 09, 2020 7:17 am

Yeah. This year never ends.

Graf Zahl wrote:What's there to test? Yes, the check is not z-sensitive. I know...

That really help me already. I can fix this unexpected behaviour with some changes in Actor Decorate.
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil

Re: SwitchableDecorations ignore the Z distance

Postby Enjay » Wed Dec 09, 2020 12:36 pm

I don't know if it will help or not but you can use GetActorZ(0) in ACS to check the Z-height of the player and only do stuff if he is in the correct position.

e.g.
Code: Select allExpand view
if(GetActorZ(0) < 96.0)
   {
      do stuff
   }

will only "do stuff" if the player (specifically his feet if I remember correctly) is below height 96.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: SwitchableDecorations ignore the Z distance

Postby Logan MTM » Wed Dec 09, 2020 2:40 pm

Something like that.
I like to use A_CheckProximity and A_CheckRange in Switch Idle state to give or remove the USESPECIAL flag.

Thank you all
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil

Re: SwitchableDecorations ignore the Z distance

Postby Logan MTM » Mon Dec 14, 2020 6:12 am

A_checkRange has the same issue.
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest