Slider to configure weapon bobbing speed
Moderator: GZDoom Developers
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Slider to configure weapon bobbing speed
I was thinking about how interesting it would be to have control over how fast a weapon HUD graphic bobs. Would this be possible to add into ZDoom/GZDoom?
Re: Slider to configure weapon bobbing speed
User-customizable modifiers for the bobbing properties are something that have been on the wanted list for a few folks for a while. The trick is figuring out how to set them up in such a way that they don't conflict with or otherwise muck up their corresponding DECORATE properties.
Right now you can mod in a faster bob via Weapon.BobSpeed, if you're willing to give that a go. Not the same thing as a user option, but it exists.
Right now you can mod in a faster bob via Weapon.BobSpeed, if you're willing to give that a go. Not the same thing as a user option, but it exists.
- YukiHerz
- Global Moderator
- Posts: 1503
- Joined: Mon Dec 02, 2013 6:01 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Where corruption is redefined daily.
Re: Slider to configure weapon bobbing speed
Can the BobSpeed property be linked to a cvar in some unholy way?
- Rexen
- Posts: 110
- Joined: Thu Jun 30, 2016 3:08 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11 Home
- Graphics Processor: nVidia with Vulkan support
- Location: E1M1: Hangar
- Contact:
Re: Slider to configure weapon bobbing speed
There is a command to set weapon bob, one is stillbob and one is movebob. Its best to set these to a valve between 0 and 1
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Slider to configure weapon bobbing speed
Those settings control intensity, not speed.Rexen wrote:There is a command to set weapon bob, one is stillbob and one is movebob. Its best to set these to a valve between 0 and 1
- Rexen
- Posts: 110
- Joined: Thu Jun 30, 2016 3:08 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11 Home
- Graphics Processor: nVidia with Vulkan support
- Location: E1M1: Hangar
- Contact:
Re: Slider to configure weapon bobbing speed
Ah I see. Is their a command to set the speed?wildweasel wrote:Those settings control intensity, not speed.Rexen wrote:There is a command to set weapon bob, one is stillbob and one is movebob. Its best to set these to a valve between 0 and 1
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Slider to configure weapon bobbing speed
Not yet, which is why this Feature Suggestions thread exists.Rexen wrote:Ah I see. Is their a command to set the speed?
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Re: Slider to configure weapon bobbing speed
I feel like it would be a neat feature to add in.
Re: Slider to configure weapon bobbing speed
I feel like my earlier post is written in invisible ink. D:
I suppose the least intrusive way of doing this would be to add a CVAR multiplier that just gets applied on top of Weapon.BobSpeed (e.g. if both are set to 2.0, you get 4.0x bob speed), but I'm always worried about people being doofy and setting it to something that makes custom weapons that specify bob properties look downright awful (then reporting it as a mod bug, of course
).
This gets more annoying to consider with the case of bob style, since then you're looking into straight override-the-mod territory.
I suppose the least intrusive way of doing this would be to add a CVAR multiplier that just gets applied on top of Weapon.BobSpeed (e.g. if both are set to 2.0, you get 4.0x bob speed), but I'm always worried about people being doofy and setting it to something that makes custom weapons that specify bob properties look downright awful (then reporting it as a mod bug, of course

This gets more annoying to consider with the case of bob style, since then you're looking into straight override-the-mod territory.
- Rexen
- Posts: 110
- Joined: Thu Jun 30, 2016 3:08 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11 Home
- Graphics Processor: nVidia with Vulkan support
- Location: E1M1: Hangar
- Contact:
Re: Slider to configure weapon bobbing speed
Maybe make it so the mod has priority then the user setting? Eg if a mod sets it 4.0 and user sets it 2.5 use 4.0.Xaser wrote:I feel like my earlier post is written in invisible ink. D:
I suppose the least intrusive way of doing this would be to add a CVAR multiplier that just gets applied on top of Weapon.BobSpeed (e.g. if both are set to 2.0, you get 4.0x bob speed), but I'm always worried about people being doofy and setting it to something that makes custom weapons that specify bob properties look downright awful (then reporting it as a mod bug, of course).
This gets more annoying to consider with the case of bob style, since then you're looking into straight override-the-mod territory.
- YukiHerz
- Global Moderator
- Posts: 1503
- Joined: Mon Dec 02, 2013 6:01 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Where corruption is redefined daily.
Re: Slider to configure weapon bobbing speed
What about 2 user settings, one is a slider that lets you set a replacement for Weapon.BobSpeed, and a Yes/No setting that, when enabled, overrides the BobSpeed property of the weapons with the one set by the user?
- Caligari87
- Admin
- Posts: 6233
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: Slider to configure weapon bobbing speed
No, the user's setting should take priority. Having an explosion of "Override X" options gets confusing. If a user changes the default, they do it for a reason and the game must respect that.


Re: Slider to configure weapon bobbing speed
You have a user setting, and then a modding option to override user setting, and then a user setting to prevent the modding option from overriding the user setting, and then a modding option to prevent the user setting from preventing the modding option from overriding the user setting, and then a user setting to prevent the modding option from preventing the user setting from preventing the modding option from overriding the user setting. Everyone got that?
- enderkevin13
- Posts: 1383
- Joined: Tue Jul 07, 2015 7:30 am
- Location: :noiƚɒɔo⅃
Re: Slider to configure weapon bobbing speed
*Smoke comes from brain*Gez wrote:You have a user setting, and then a modding option to override user setting, and then a user setting to prevent the modding option from overriding the user setting, and then a modding option to prevent the user setting from preventing the modding option from overriding the user setting, and then a user setting to prevent the modding option from preventing the user setting from preventing the modding option from overriding the user setting. Everyone got that?
-
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Slider to configure weapon bobbing speed
It's like the automap 'invisible lines', just a bit different, if you know what I mean.