Slider to configure weapon bobbing speed

Moderator: GZDoom Developers

User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Slider to configure weapon bobbing speed

Post 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?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Slider to configure weapon bobbing speed

Post 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.
User avatar
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

Post by YukiHerz »

Can the BobSpeed property be linked to a cvar in some unholy way?
User avatar
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

Post 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
User avatar
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

Post 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.
User avatar
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

Post 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?
User avatar
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

Post 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.
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: Slider to configure weapon bobbing speed

Post by enderkevin13 »

I feel like it would be a neat feature to add in.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Slider to configure weapon bobbing speed

Post 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 :P).

This gets more annoying to consider with the case of bob style, since then you're looking into straight override-the-mod territory.
User avatar
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

Post 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 :P).

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.
User avatar
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

Post 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?
User avatar
Caligari87
Admin
Posts: 6233
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Slider to configure weapon bobbing speed

Post 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.

8-)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Slider to configure weapon bobbing speed

Post 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?
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: Slider to configure weapon bobbing speed

Post 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*
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Slider to configure weapon bobbing speed

Post by Edward-san »

It's like the automap 'invisible lines', just a bit different, if you know what I mean.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”