[Decorate] Custom weapon bobbing

Moderator: GZDoom Developers

Post Reply
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

[Decorate] Custom weapon bobbing

Post by Snarboo »

I noticed there are a couple [wiki=CVARs:Configuration]CVARs[/wiki] that change how view bobbing is handled, namely movebob and stillbob. Would it be possible to expand this to apply to weapons too? There are times when you want the bobbing to vary based on weapon. For example, a heavy weapon should in theory bob less than a light pistol.

The new weapon properties might look like this:
Weapon.MoveBob Horizontal (x) weapon bobbing, Vertical (y) weapon bobbing
Weapon.StillBob Weapon still bob value
Weapon.StillBobDelay Delay in tics before still bob takes over


If the weapon does not have these properties set, the weapon uses the defaults.

Edit:
Had weapon bobbing and view bobbing confused, so I updated the post with a more relevant suggestion.
Last edited by Snarboo on Sun Jun 12, 2011 2:39 pm, edited 1 time in total.
User avatar
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: [Decorate] Custom weapon bobbing

Post by NeuralStunner »

Those CVars affect view bobbing, not weapons.
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: [Decorate] Custom weapon bobbing

Post by ChronoSeth »

NeuralStunner wrote:Those CVars affect view bobbing, not weapons.
Movebob affects both view bobbing and weapon bobbing.
User avatar
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: [Decorate] Custom weapon bobbing

Post by NeuralStunner »

ChronoSeth wrote:Movebob affects both view bobbing and weapon bobbing.
Not particularly. I have MoveBob set at a small fraction of the default value, and weapons swing as heartily as ever. All it really affects is how quickly they transfer into a full swing.
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: [Decorate] Custom weapon bobbing

Post by Snarboo »

In any case, I'd like to be able to set the weapon bobbing on a per weapon basis. The property name probably needs to be changed to something more appropriate however. Perhaps Weapon.Bob or Weapon.Bobbing? In fact, let me edit my first post.

While I'm at it, I wouldn't mind seeing overall view bobbing set by the player class, but that will have to wait for another suggestion.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”