AttackZOffset as exposed variable?

Moderator: GZDoom Developers

Post Reply
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

AttackZOffset as exposed variable?

Post by Ed the Bat »

There are situations where I need to dynamically upscale players. So far, I'm able to change the size of their sprite, and I'm still patiently waiting on progress from DOOMERO-21's suggestion to expose viewheight as a customizable variable. Along with these, one piece of the puzzle still missing is the ability to change AttackZOffset. Can this be exposed in ACS, or is this another deeply-buried property that would need something more robust, like DoomScript?
User avatar
TheFortuneTeller
Posts: 36
Joined: Sun Oct 28, 2012 4:20 pm
Location: United States

Re: AttackZOffset as exposed variable?

Post by TheFortuneTeller »

Since this and ViewHeight come hand-in-hand, these patches define both APROP_ViewHeight and APROP_AttackZOffset in ACS, which do what you'd expect them to (see [wiki]SetActorProperty[/wiki]). (N.B. these are [wiki]fixed point numbers[/wiki])

EDIT: btw, is there any particular reason to use this instead of morphing player classes?
Attachments
zdoom_diff.txt
(2.06 KiB) Downloaded 66 times
acc_diff.txt
(355 Bytes) Downloaded 51 times
Last edited by TheFortuneTeller on Wed Aug 07, 2013 6:04 pm, edited 1 time in total.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: AttackZOffset as exposed variable?

Post by Ed the Bat »

8D

I can't tell you how big a smile this will put on my face if this makes it in!
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: AttackZOffset as exposed variable?

Post by amv2k9 »

TheFortuneTeller wrote: btw, is there any particular reason to use this instead of morphing player classes?
Lack of viewbob, possibly?
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: AttackZOffset as exposed variable?

Post by Ed the Bat »

amv2k9 wrote:
TheFortuneTeller wrote: btw, is there any particular reason to use this instead of morphing player classes?
Lack of viewbob, possibly?
This, and the issue with health and armor getting rewritten when morphing/unmorphing, which will have to happen between levels since morphs don't last more than one map. Plus, only one morph can be active at a time, so it the player needs to be morphed for something else, this would get in the way.

I even tried making a feature suggestion (as well as asking in Editing what might be missing in the source code) for morph viewbobs, but never got a response.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: AttackZOffset as exposed variable?

Post by Graf Zahl »

added
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: AttackZOffset as exposed variable?

Post by Ed the Bat »

Happy day! Thanks so much. :D
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”