Height Check for Switchable Decorations

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Height Check for Switchable Decorations

Re: Height Check for Switchable Decorations

by Zan » Tue Jul 10, 2018 1:45 am

Alright, no problem, it can be done with a decorate expression check in any case. Thanks for looking into it anyway!

Re: Height Check for Switchable Decorations

by Graf Zahl » Mon Jul 09, 2018 3:11 pm

There's just one tiny little problem here: The entire code to check for stuff to use has absolutely zero concept of height. It's not something that's quickly added without potentially causing secondary issues.

Re: Height Check for Switchable Decorations

by Zan » Mon Jul 09, 2018 3:01 pm

ZZYZX wrote:Actors can switch on use (+USESPECIAL, either special or THINGSPEC_Switch)

Not sure if this is the case for the author though.
Yes this is what I'm talking about https://zdoom.org/wiki/Creating_decorat ... )activated
These actors can currently be activated regardless of the player Z axis distance from their position.

Re: Height Check for Switchable Decorations

by ZZYZX » Mon Jul 09, 2018 7:47 am

Actors can switch on use (+USESPECIAL, either special or THINGSPEC_Switch)

Not sure if this is the case for the author though.

Re: Height Check for Switchable Decorations

by Graf Zahl » Sun Jul 08, 2018 1:15 pm

A switchable decoration is just a dumb thing. All actions will normally be done by some external trigger, so you'll need to change that to handle the height - or use a script instead of a direct Thing_Activate invocation

Height Check for Switchable Decorations

by Zan » Fri Jul 06, 2018 3:08 am

Would it be possible to add a flag or something to check the player's height when activating switchable decorations?

For example, right now, you can toggle a lamp that's on a tower above you if you are in front of it in plan view. It would be nice to have something similar to the switch height check when using these decorations.

Top