WOF_NOINTERPOLATION for A_WeaponOffset
Moderator: GZDoom Developers
WOF_NOINTERPOLATION for A_WeaponOffset
Offset interpolation is cool as hell, but sometimes there are cases that cause odd transitions to occur (e.g. TNT1 A 0 with no offsets to a real sprite with heavy offsets). A WOF_NOINTERPOLATION flag would let us handle these without inserting extra frames with delays (which is currently slowing down my current weapon's fire rate a bit... grr).
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: WOF_NOINTERPOLATION for A_WeaponOffset
Indeed, it looks completely dumb when mixed with pre-offset, frame-by-frame animation. Though personally, I'd say that no interpolation should be the default. This is supposed to be a replacement for Offset(), isn't it?
My other concern is that there's no override for interpolated select/deselect. I have a set of weapons that use stacked A_Raise/Lower with some custom animation, which is a little choppy-looking and deliberately so. Now the weapons slide up at lightspeed then switch to the framed animation, which both looks stupid and completely ruins the effect I was trying to achieve by doing it that way.
Lastly, there needs to be a client cvar to disable the effect entirely. 3D movement at 75Hz doesn't bother me, but something about this is messing with my eyes. (I'm venturing into "make another suggestion thread" territory here, I know.
)
My other concern is that there's no override for interpolated select/deselect. I have a set of weapons that use stacked A_Raise/Lower with some custom animation, which is a little choppy-looking and deliberately so. Now the weapons slide up at lightspeed then switch to the framed animation, which both looks stupid and completely ruins the effect I was trying to achieve by doing it that way.
Lastly, there needs to be a client cvar to disable the effect entirely. 3D movement at 75Hz doesn't bother me, but something about this is messing with my eyes. (I'm venturing into "make another suggestion thread" territory here, I know.

Re: WOF_NOINTERPOLATION for A_WeaponOffset
Yeah, this is starting to get into new-thread territory. A similar flag tor A_Raise/Lower would probably make sense and a CVAR to turn it off globally is a good idea.
The default shouldn't be switched -- Offset() is interpolated too; it's a global change that needs an off-switch, not the other way around.
The default shouldn't be switched -- Offset() is interpolated too; it's a global change that needs an off-switch, not the other way around.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: WOF_NOINTERPOLATION for A_WeaponOffset
Oy. Perhaps a weapon flag is in order, this would be the least-messy way to make weapons behave "classic-like". (I'm not of the mind to outright break it always and forever, but I'm doing something very specific with this project.)Xaser wrote:Offset() is interpolated too
Re: WOF_NOINTERPOLATION for A_WeaponOffset
A weapon-level off-switch is yet another separate suggestion. To clarify to any potential devs, such a thing would not fulfill the use case in the original post.
Just to tally up things so far in case anyone's interested in one-shotting this:
Just to tally up things so far in case anyone's interested in one-shotting this:
- WOF_NOINTERPOLATION for A_WeaponOffset
- A version of the same flag for A_Raise/A_Lower
- A weapon-level flag for disabling interpolation
- A global CVAR toggle for disabling interpolation
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: WOF_NOINTERPOLATION for A_WeaponOffset
Sorry, not trying to repurpose your thread.
Mostly I wanted your thoughts on whether this many switches/overrides is overkill. A weapon flag and cvar would be more than sufficient, were there a function to change a carried inventory actor's flags. (Bah, I should just make a thread for that already.) Failing that, the behavior flags are really the only other option, right?

Re: WOF_NOINTERPOLATION for A_WeaponOffset
Apologies if I'm coming off as "hey get out" -- I don't mean it that way. Just being a wordy dude. 
Having just the weapon flag would be cumbersome to use. My desire is to be able to disable the interpolation for a single frame, and it'd be icky to have to wrap it with A_ChangeFlag each time.
I'm personally not too concerned with the amount of overrides, though, since there's a natural hierarchy to it (unlike, say, CAUSEPAIN/FORCEPAIN/ALLOWPAIN, etc).

Having just the weapon flag would be cumbersome to use. My desire is to be able to disable the interpolation for a single frame, and it'd be icky to have to wrap it with A_ChangeFlag each time.
I'm personally not too concerned with the amount of overrides, though, since there's a natural hierarchy to it (unlike, say, CAUSEPAIN/FORCEPAIN/ALLOWPAIN, etc).
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: WOF_NOINTERPOLATION for A_WeaponOffset
Okay, I just spammed up the forum with individual suggestions. Wish me luck. 
