player.viewbop for custom PlayerPawn
Moderator: GZDoom Developers
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
player.viewbop for custom PlayerPawn
Is there a way to add something like a "player.viewbop" to a custom player?
Re: player.viewbop for custom PlayerPawn
Do you mean how much the view moves up and down? If so, there are the user configurable options of movebob and stillbob. Because they are user options, I'm going to guess that it will not be exposed to be set by mods.
(BTW, I have stillbob=0.2 in my ini which I like because it give a nice "doomguy breathing" effect without being so obvious as to get in the way.)
(BTW, I have stillbob=0.2 in my ini which I like because it give a nice "doomguy breathing" effect without being so obvious as to get in the way.)
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: player.viewbop for custom PlayerPawn
I already expected that
The problem is that with lower movement speeds the standard viewbop looks very unnatural and it doesn't make much sense to provide a ini for that 


- 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: player.viewbop for custom PlayerPawn
That's fricking cool. Thanks!Enjay wrote:(BTW, I have stillbob=0.2 in my ini which I like because it give a nice "doomguy breathing" effect without being so obvious as to get in the way.)

- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Re: player.viewbop for custom PlayerPawn
Wasn't there a feature request to make the viewbob relative to the player's speed? Whatever happened to that?
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: player.viewbop for custom PlayerPawn
Someone should dig it out...
Yesterday, Enjay did a short test through what I have so far done and he also noticed that the viewbop looks terribly ugly for low player speeds. I also do not understand why this is placed into the INI instead of the KEYCONF settings. I mean, "stillbop" and "viewbop" are definitely playerpawn dependent properties that should be changeable by the author of a mod 


Re: player.viewbop for custom PlayerPawn
@Torm: I know you shot down the idea when TCoTD2 was in development, but for your new mod you're going to have to consider bundling a custom .cfg and batch file with it. That way you can control the bob settings (plus automap colours, GL lighting settings and other things you'll no doubt wish to change in some way) in a way that isn't destructive to the user's general-purpose zdoom.ini file.
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: player.viewbop for custom PlayerPawn
I am still no friend of custom cfgs, especially if it concerns light settings - don't forget, every person has a different monitor - so a feature for at least the viewbop think might be a better solution. 

Re: player.viewbop for custom PlayerPawn
You custom cfg doesn't have to set everything, just the items that are important to your mod.
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: player.viewbop for custom PlayerPawn
Sure, but in my opinion it just sucks if the player has to load a custom cfg instead of simply loading a pk3... oh well... is it possible to put a cfg in a pk3?
Re: player.viewbop for custom PlayerPawn
What you could do, and I've seen it done before, is just copy the user's config to a custom config file (only if it doesn't exist), and launch ZDoom executing a console script to set defaults (only if the config hasn't existed before), then afterwards, the player would be allowed to set their own options from there. I know it was done with one of the more recent Wolfensttein TC's, I forgot who did it but that's what he did.
After the first run, the bat file would load the alternate config, however, it would not reload the defaults again. I suppose it could have helped if he added in an alias "reloaddefaults" or something in case players wanted it, which would run the console script again, but it's still pretty simple to just delete the alternate config file.
After the first run, the bat file would load the alternate config, however, it would not reload the defaults again. I suppose it could have helped if he added in an alias "reloaddefaults" or something in case players wanted it, which would run the console script again, but it's still pretty simple to just delete the alternate config file.

- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: player.viewbop for custom PlayerPawn
That solution doesn't feel right, it's simply too hacky for my taste 

Re: player.viewbop for custom PlayerPawn
Oh god, I feel so terrible for being the guy to do this, but it's a bit pet-peevy to a certain person (me) so I can't resist...
B-O-B

B-O-B

Re: player.viewbop for custom PlayerPawn
*twitch*Enjay wrote:Image

But yeah, I think the best you're going to get without modifying players' configs is a suggestion to players to alter thier movebob value in your .txt file.