Weapon bobbing based on actual movement speed

Moderator: GZDoom Developers

User avatar
Sarah
Posts: 551
Joined: Wed Sep 06, 2006 12:36 pm
Preferred Pronouns: She/Her
Operating System Version (Optional): Debian 11 (bullseye), Windows 10
Location: Middle of Nowheresville Il.
Contact:

Re: Weapon bobbing based on actual movement speed

Post by Sarah »

Great Nightflame. Let me know when you're done. Fixing this issue any way possible right now would be great.
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Weapon bobbing based on actual movement speed

Post by Ryan Cordell »

This is the gist of it. (Thanks goes to Apothem for helping with the Vertical weapon movement script.)
Spoiler:
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Weapon bobbing based on actual movement speed

Post by Nash »

Look at all the manual offsetting... it'll never be as smooth as the in-game code's interpolated bobbing...
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Weapon bobbing based on actual movement speed

Post by Ryan Cordell »

You know who to blame. :laff:
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Weapon bobbing based on actual movement speed

Post by HotWax »

Nero wrote:If it's something the community wants, it will be put in.
See, that's where you assume wrong. You could find a load of feature suggestions that haven't made it in despite demand from the community. In almost every case, you'll find that the request was overly-ambitious, and usually the thread is bloated out of control by somebody wanting to over-complicate an otherwise simple suggestion. Every time you post in this thread, you reduce any chance of the feature making it in the foreseeable future.

When it comes to feature suggestions, KEEP IT SIMPLE, STUPID!
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Weapon bobbing based on actual movement speed

Post by XutaWoo »

HotWax wrote:KEEP IT SIMPLE, STUPID!
This could also be applied to Blade's custom bobbing. Sheesh. :P
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Weapon bobbing based on actual movement speed

Post by Snarboo »

I don't see how having some way to customize weapon bobbing is too much to ask. I would like to see some way to set it either by player class or by the weapon itself. I mean, there's even a DONTBOB flag that disables it entirely, and it can be done on a per weapon basis.

On an unrelated note, EDGE allows for custom bobbing per weapon, but I'm not sure how vastly EDGE differs from ZDoom, or even how Doom handles it to begin with.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Weapon bobbing based on actual movement speed

Post by XutaWoo »

Snarboo wrote:Doom handles it to begin with.
I'm pretty sure if the weapon is calling A_WeaponReady and the player is moving, is just draws the weapons sprite somewhere else.
skadoomer
Posts: 1026
Joined: Fri Sep 05, 2003 12:49 pm

Re: Weapon bobbing based on actual movement speed

Post by skadoomer »

Assuming that bobbing all works on arcs (sin cos?), why not just make a few custom properties of weapons to define how big an arc is, how high its radius is (this could also be used to make upwards and downwards bobbing depending if the value is positive or negative) and a time variable to say how far the object moves along the curve when the player is in motion. A multiplier can be used to determine how much faster the weapon moves on the arc whether running or walking is enabled / disabled. I know 4 extra args in a weapon isn't exactly the simplest method, but it would at least allow for maximum customization in this area.

Likewise, we already have a console based movebob value that can be used for those that need to turn down all weapon bobbing. In case of obnoxious weapon mods, the user can just turn off the movement or teak it to their liking.
MDenham
Posts: 161
Joined: Sun Oct 14, 2007 2:23 am

Re: Weapon bobbing based on actual movement speed

Post by MDenham »

Snarboo wrote:On an unrelated note, EDGE allows for custom bobbing per weapon, but I'm not sure how vastly EDGE differs from ZDoom
A lot.
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Weapon bobbing based on actual movement speed

Post by bagheadspidey »

The basic premise of this script is that it works in several ways
I lol'd
User avatar
Sarah
Posts: 551
Joined: Wed Sep 06, 2006 12:36 pm
Preferred Pronouns: She/Her
Operating System Version (Optional): Debian 11 (bullseye), Windows 10
Location: Middle of Nowheresville Il.
Contact:

Re: Weapon bobbing based on actual movement speed

Post by Sarah »

HotWax wrote:
Nero wrote:If it's something the community wants, it will be put in.
See, that's where you assume wrong. You could find a load of feature suggestions that haven't made it in despite demand from the community. In almost every case, you'll find that the request was overly-ambitious, and usually the thread is bloated out of control by somebody wanting to over-complicate an otherwise simple suggestion. Every time you post in this thread, you reduce any chance of the feature making it in the foreseeable future.

When it comes to feature suggestions, KEEP IT SIMPLE, STUPID!
You know, instead of getting pissy with me, you could just tell me to shut up.

On a lighter note, yeah the code seems a bit extreme but it would work for now. And this may sound unrelated, but has anybody played Foreverhood? They way it is set up is that GZDoom is packaged with the game so that the config file that sets the player bob only effects that version of GZDoom. This means we can set the bob value to whatever we want and not effect players other games. This works. I've set my game up on this format and it works really well.

By the way, off topic completely, but what are source ports dependent on. I mean, what files in the IWAD are required for a mod to run?
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Weapon bobbing based on actual movement speed

Post by XutaWoo »

MAP01.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Weapon bobbing based on actual movement speed

Post by Project Shadowcat »

Nero wrote:
HotWax wrote:
Nero wrote:If it's something the community wants, it will be put in.
See, that's where you assume wrong. You could find a load of feature suggestions that haven't made it in despite demand from the community. In almost every case, you'll find that the request was overly-ambitious, and usually the thread is bloated out of control by somebody wanting to over-complicate an otherwise simple suggestion. Every time you post in this thread, you reduce any chance of the feature making it in the foreseeable future.

When it comes to feature suggestions, KEEP IT SIMPLE, STUPID!
You know, instead of getting pissy with me, you could just tell me to shut up.
I was going to say that you weren't supposed to take this personally, but rather, everyone needs to listen. :P
User avatar
Sarah
Posts: 551
Joined: Wed Sep 06, 2006 12:36 pm
Preferred Pronouns: She/Her
Operating System Version (Optional): Debian 11 (bullseye), Windows 10
Location: Middle of Nowheresville Il.
Contact:

Re: Weapon bobbing based on actual movement speed

Post by Sarah »

XutaWoo wrote:MAP01.
That doesn't make any sense. All of the mods I've ever played have had their own MAP01.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”