Turning jumping/crouching off permanently in (G)ZDoom?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Lukario
Posts: 5
Joined: Sun May 08, 2016 12:47 pm

Turning jumping/crouching off permanently in (G)ZDoom?

Post by Lukario »

This might be a stupid question, but is there any way to make it so that when you turn jumping or crouching off in (G)ZDoom, it doesn't turn back on when you restart the game?

I've already figured out how to make it stop turning freelook back on with CVARs, but I've tried to use the same method for jumping and crouching to no avail. The only other option that I can think of is unbinding the jump and crouch keys, which would be inconvenient if I was playing a mod where jumping and crouching were mandatory, like Demonsteele for example.

Any help would be greatly appreciated, and I apologize if the answer to this is obvious.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Turning jumping/crouching off permanently in (G)ZDoom?

Post by Graf Zahl »

Use an autoexec.cfg to run some console commands at each game launch.
Lukario
Posts: 5
Joined: Sun May 08, 2016 12:47 pm

Re: Turning jumping/crouching off permanently in (G)ZDoom?

Post by Lukario »

Graf Zahl wrote:Use an autoexec.cfg to run some console commands at each game launch.
I've been trying to do this, but it hasn't been working and I made sure that the location of autoexec.cfg was defined in both my ZDoom and GZDoom configuration files. Maybe I'm just putting the wrong CCMDs in autoexec.cfg?

EDIT: I figured out what the problem was, it was because I was launching GZDoom through the C#4rp Doom Launcher. Is there any way to make autoexec.cfg work with launchers/frontends?
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Turning jumping/crouching off permanently in (G)ZDoom?

Post by Nash »

You can try adding command line arguments to the launch parameter in C#4rp (assuming it supports that).

gzdoom.exe +sv_nofreelook 1 +sv_nocrouch 1 etc

(add a + in front of each cvar you'd like to set the value to at launch)
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: Turning jumping/crouching off permanently in (G)ZDoom?

Post by Kinsie »

...unbind the keys?
Lukario
Posts: 5
Joined: Sun May 08, 2016 12:47 pm

Re: Turning jumping/crouching off permanently in (G)ZDoom?

Post by Lukario »

Nash wrote:You can try adding command line arguments to the launch parameter in C#4rp (assuming it supports that).

gzdoom.exe +sv_nofreelook 1 +sv_nocrouch 1 etc

(add a + in front of each cvar you'd like to set the value to at launch)
No wonder why the command line arguments weren't working, I forgot to put pluses in front of the CVARs!

Thank you, I don't know how I didn't realize that sooner!
Post Reply

Return to “General”