Page 1 of 2
Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 2:11 pm
by enderkevin13
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
Posted: Wed Aug 17, 2016 3:42 pm
by Xaser
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.
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 5:51 pm
by YukiHerz
Can the BobSpeed property be linked to a cvar in some unholy way?
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 7:17 pm
by Rexen
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
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 7:21 pm
by wildweasel
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
Those settings control intensity, not speed.
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 7:27 pm
by Rexen
wildweasel wrote: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
Those settings control intensity, not speed.
Ah I see. Is their a command to set the speed?
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 8:17 pm
by wildweasel
Rexen wrote:Ah I see. Is their a command to set the speed?
Not yet, which is why this Feature Suggestions thread exists.
Re: Slider to configure weapon bobbing speed
Posted: Wed Aug 17, 2016 10:15 pm
by enderkevin13
I feel like it would be a neat feature to add in.
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 8:10 am
by Xaser
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.
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 9:19 am
by Rexen
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.
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.
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 9:31 am
by YukiHerz
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?
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 10:46 am
by Caligari87
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
Posted: Thu Aug 18, 2016 10:55 am
by Gez
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?
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 11:10 am
by enderkevin13
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?
*Smoke comes from brain*
Re: Slider to configure weapon bobbing speed
Posted: Thu Aug 18, 2016 4:41 pm
by Edward-san
It's like the automap 'invisible lines', just a bit different, if you know what I mean.