by Xaser » Sat Jul 16, 2016 12:10 pm
All right, here's my set of recommendations (weapon modder's perspective):
- Bobbing: Interpolated by default. Can be disabled on a per-state basis by setting a parameter flag on A_WeaponReady.
- Raise/Lower: Interpolated by default. Can be disabled on a per-state basis by setting a parameter flag on A_Raise/A_Lower.
- A_WeaponOffset: No interpolation by default. Can be enabled on a per-state basis by setting a parameter flag on A_WeaponOffset.
- "Offset" keyword: No interpolation, period, as it's been superseded by A_WeaponOffset.
- Finally, add a CVAR which disables interpolation globally, since some folks are not fond of it in general.
This likely strikes the right balance. Bobbing interpolation is on-by-default as it has not caused any issues as far as I know, and we know that offsets
do cause weirdness with existing stuff (e.g. Eriguns2, Hexen), so they're opt-in. Raise/Lower are the grey area since there's at least one claim of it causing a 'jump' in a custom animation (though others work fine -- Zero Tolerance shows no faults, for instance), but since it affects
all weapons, it's gotta stay on or else we'll never get PrBoom-style interpolation on vanilla guns and the like. Any issues caused by it ought to be a vast minority.
This scheme offers full control for modders, and for the people who dislike interpolation in general, they can turn it all off.
All right, here's my set of recommendations (weapon modder's perspective):
[list][*][b]Bobbing:[/b] Interpolated by default. Can be disabled on a per-state basis by setting a parameter flag on A_WeaponReady.
[*][b]Raise/Lower:[/b] Interpolated by default. Can be disabled on a per-state basis by setting a parameter flag on A_Raise/A_Lower.
[*][b]A_WeaponOffset:[/b] No interpolation by default. Can be enabled on a per-state basis by setting a parameter flag on A_WeaponOffset.
[*][b]"Offset" keyword:[/b] No interpolation, period, as it's been superseded by A_WeaponOffset.
[*]Finally, add a CVAR which [b]disables interpolation globally[/b], since some folks are not fond of it in general.[/list]
This likely strikes the right balance. Bobbing interpolation is on-by-default as it has not caused any issues as far as I know, and we know that offsets [i]do[/i] cause weirdness with existing stuff (e.g. Eriguns2, Hexen), so they're opt-in. Raise/Lower are the grey area since there's at least one claim of it causing a 'jump' in a custom animation (though others work fine -- Zero Tolerance shows no faults, for instance), but since it affects [i]all[/i] weapons, it's gotta stay on or else we'll never get PrBoom-style interpolation on vanilla guns and the like. Any issues caused by it ought to be a vast minority.
This scheme offers full control for modders, and for the people who dislike interpolation in general, they can turn it all off.