An Extra +UseSpecial Flag to Check Height

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

An Extra +UseSpecial Flag to Check Height

Postby Ral22 » Fri Oct 17, 2014 11:23 pm

In the current implementation of actors that use the flag "UseSpecial" it does not (Or cannot) check the player's height in relation to the object. As such, you can be directly above the actor, even with a 3-d floor separating you, but still be able to activate it.

An additional flag, or altered, flag, such as "+UseSpecialCheckRange" or "+CheckRange", that does check the height distance (Much like "CheckSwitchRange") would be greatly appreciated and useful should anyone be creating a multi-floored building that utilizes "UseSpecial" actors.

I assumed that the lack of height checking was an intentional thing (Much like how Doom is that way by default), so that's why this idea is in the Feature Suggestions, not listed as a Bug.
User avatar
Ral22
stoneshipMapper
 
Joined: 05 Sep 2010
Location: Land of Dawn and Thunder

Re: An Extra +UseSpecial Flag to Check Height

Postby NeuralStunner » Fri Oct 17, 2014 11:57 pm

I've thought of this before. I looked into adding it myself, but I never actually figured out where the activations are done.
User avatar
NeuralStunner
Not "Neutral"
 
 
 
Joined: 21 Jul 2009
Location: capital N, capital S, no space
Discord: NeuralStunner#4201
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: An Extra +UseSpecial Flag to Check Height

Postby Nash » Sat Oct 18, 2014 12:12 am

Another useful check would be checking if the player's pitch is within the range of the actor also (so it shouldn't be possible to talk to someone in front of you when you are looking 90 degrees up :P)
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: An Extra +UseSpecial Flag to Check Height

Postby NeuralStunner » Sat Oct 18, 2014 10:46 am

It would be nicest if it "simply" respected CheckSwitchRange, without need for another addition. But that would be harmful to backward compatibility, wouldn't it? :?
User avatar
NeuralStunner
Not "Neutral"
 
 
 
Joined: 21 Jul 2009
Location: capital N, capital S, no space
Discord: NeuralStunner#4201
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests