[Decorate] Custom weapon bobbing

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [Decorate] Custom weapon bobbing

Re: [Decorate] Custom weapon bobbing

by Snarboo » Sun Jun 12, 2011 2:35 pm

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.

Re: [Decorate] Custom weapon bobbing

by NeuralStunner » Sun Jun 12, 2011 1:56 pm

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.

Re: [Decorate] Custom weapon bobbing

by ChronoSeth » Sun Jun 12, 2011 1:28 pm

NeuralStunner wrote:Those CVars affect view bobbing, not weapons.
Movebob affects both view bobbing and weapon bobbing.

Re: [Decorate] Custom weapon bobbing

by NeuralStunner » Sun Jun 12, 2011 12:00 pm

Those CVars affect view bobbing, not weapons.

[Decorate] Custom weapon bobbing

by Snarboo » Sun Jun 12, 2011 11:55 am

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.

Top