A_SetScale Disallow Negative flag + invert Y scale?

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

A_SetScale Disallow Negative flag + invert Y scale?

Post by Major Cooke »

A_SetScale(int scalex, int scaley, bool allownegatives)

The purpose of this is to prevent unwanted behavior from altering mods and making some... rather corny effects happening. The allownegatives boolean would default to 0 (maintains compatibility purposes, even though it's just a cosmetic effect)

Also, if I may ask, Graf, since you implemented inverting (which I must say is a godsend... no more having to define them all via textures lump!) for X, can you do so for Y as well, please?
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: A_SetScale Disallow Negative flag + invert Y scale?

Post by TheMightyHeracross »

Inverted Y scale probably isn't happening:
Unfortunately for YScale this would be a lot more complicated because it has to change the actual sprite drawing direction. XScale just meant an additional check to toggle sprite flipping if a negative scale was passed.
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: A_SetScale Disallow Negative flag + invert Y scale?

Post by Major Cooke »

Oh. Where was that at?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_SetScale Disallow Negative flag + invert Y scale?

Post by Graf Zahl »

Why? I couldn't care less if some idiot abused a negative scale for making a sprite disappear. And that's the only thing that could be negatively affected. Any such mod would have been broken in GZDoom long ago.
User avatar
Enjay
 
 
Posts: 27022
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: A_SetScale Disallow Negative flag + invert Y scale?

Post by Enjay »

Major Cooke wrote:Oh. Where was that at?
http://forum.zdoom.org/viewtopic.php?f= ... 0&p=727117
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”