AttackZOffset as exposed variable?
Moderator: GZDoom Developers
- 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?
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?
- TheFortuneTeller
- Posts: 36
- Joined: Sun Oct 28, 2012 4:20 pm
- Location: United States
Re: AttackZOffset as exposed variable?
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?
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.
- 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?
8D
I can't tell you how big a smile this will put on my face if this makes it in!
I can't tell you how big a smile this will put on my face if this makes it in!
Re: AttackZOffset as exposed variable?
Lack of viewbob, possibly?TheFortuneTeller wrote: btw, is there any particular reason to use this instead of morphing player classes?
- 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?
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.amv2k9 wrote:Lack of viewbob, possibly?TheFortuneTeller wrote: btw, is there any particular reason to use this instead of morphing player classes?
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.
- 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?
Happy day! Thanks so much. 
