Custom Cvar defining with MenuDef

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Custom Cvar defining with MenuDef

Post by Major Cooke »

The one thing that I find the MENUDEF lump lacking is a way to create cvars that will automatically store into Zdoom's .ini file for use in things such as ACS.

If you look here, you can see that cvars are creatable via console command, but not really by MENUDEF without using a hack. If you're making a mod, this would be especially important because otherwise it wouldn't allow clients who downloaded this to play properly unless they put it in their zdoom.ini files themselves.

So what if we could get something like this to be implemented:

Code: Select all

CustomCvars
{
	DefineCvar <CvarName>, <Int>
}
Where Int, if defined, could be the default starting number until someone changes it, and is thus written into their zdoom's .INI file.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”