
ListMenu "MainMenu"
{
	StaticPatch 94, 2, "M_DOOM"
	Position 97, 72
	IfOption(ReadThis)
	{
		Position 97, 64
	}
	PatchItem "M_NGAME", "n", "gametype_options"
//		TextItem "Debug options", "o", "BlorcPreferences"

	PatchItem "M_OPTION","o", "Preferences"
	PatchItem "M_LOADG", "l", "LoadGameMenu"
	PatchItem "M_SAVEG", "s", "SaveGameMenu"
	ifOption(ReadThis)
	{
		PatchItem "M_RDTHIS","r", "ReadThisMenu"
	}
	PatchItem "M_QUITG", "q", "QuitMenu"
}




OptionValue ZA_Modifier
{
	0, "None"
	1, "AWP Instagib spawn"
	2, "Knife/Grenade spawn"
}



OptionMenu "gametype_options"
{
	Title "New game settings"

	StaticText "Select if you want to play singleplayer", 0
	StaticText "or skirmish with bots (zandronum only)", 0
	StaticText " "
	StaticText " "
	
		Submenu "Singleplayer", "PlayerclassMenu"
		Submenu "Skirmish (Zandronum)", "ZA_SkirmishMenu"
}


OptionValue "gl_enhanced_nightvision_toggle"
{
	0, "Classic (Default)"
	1, "Modern (Green)"
}


OptionMenu "Preferences"
{
	Title "Options"
	
	Submenu "Sourceport options", "OptionsMenu"
	Submenu "Separate Weapon binds", "WeaponBindsMenu"
//	Submenu "Skirmish (Zandronum)", "ZA_SkirmishMenu"
	StaticText " "
	StaticText "Additional settings", 1
	StaticText " "
	Option "Always Mouselook",			"freelook", "OnOff"
	Option "Screen wipe style",			"wipetype", "Wipes"
	Slider "Move bobbing intensity",	"Movebob", 			  0,  1.0, 0.05, 2
	Option "night vision mode","gl_enhanced_nightvision",		"gl_enhanced_nightvision_toggle"
//	Option "Autoaim", "Autoaim", "Autoaim"
//	Option "Custom bob animation", "User_Custombob", "Custombob"
	Submenu "Crosshairs/HUD Options", "CrosshairMenu"	
	StaticText " "
	StaticText "Customize controls", 1
//	Control 	"Last weapon used",			"pukename Weapon_Lastused_Memoryscript"
	Control 	"Last weapon used",			"+lastused"
	StaticText 	""
	Control 	"Alternate fire/Zoom (mouse2)",		"+d_weaponalt"
	Control 	"Reload (r)",		"+altattack"
	Control 	"Delete current Weapon (g)",		"dropcurrent"
	Control 	"Fast Melee (Rip and Tear)",		"puke 781"
	Control 	"Throw grenade (Rip and Tear)",		"puke 780"
	StaticText 	""
	Control 	"Use / Open",			"+use"
//	Control 	"Weapon Melee",				"+zoom"
//	Control 	"Throw Grenade",			"+reload"
	Control 	"Move forward",			"+forward"
	Control 	"Move backward",		"+back"
	Control 	"Strafe left",			"+moveleft"
	Control 	"Strafe right",			"+moveright"


}

OptionMenu "CrosshairMenu"
{
	Title "Crosshair/HUD Menu"
	
	StaticText "Suggested crosshair settings:", 1
	StaticText "Sbarinfo crosshair enabled", 0
	StaticText "Zdoom crosshair disabled", 0
	StaticText "or viceversa, but not both crosshairs on.", 0
	StaticText "Then, update sbarinfo script to apply changes.", 0
	StaticText " "
//	StaticText "Set crosshairs:", 1
//	StaticText " "
	Option "Sbarinfo Crosshair", "User_CustomCrosshair", "CustomCrosshair"
	Command "Update crosshair script",	"pukename Crosshair_set_1"
	StaticText " "
	Option "Zdoom Crosshair",			"crosshair", "Crosshairs"
	Option "Force ZDoom crosshair",	"crosshairforce", "OnOff"
	StaticText " "
	StaticText " "
	StaticText "Hud aspect ratio (fullscreen bugfix)", 1
	StaticText "Regular hud detects automatically which aspect", 0
	StaticText "ratio you have on screen. There are minor chances", 0
	StaticText "it could fail. If that happens, then open console,", 0
	StaticText "set screenblocks to 11 and then select in here", 0
	StaticText "the option that works best for you.", 0
	StaticText " "
	Option "Select a ratio preset",				"fullscreenhudtype_value",	"fullscreenhudtypeOptions"
	Slider "Screenblocks",	"Screenblocks", 			  10,  11, 1, 1
	Command "Update Ratio script",	"pukename fullscreenhudtypescript"

}



OptionValue "Autoaim"
{
	0, "Never"
	1, "Very low"
	2, "Low"
	3, "Medium"
	4, "High"
	5, "Very high"
	6, "Always"
}

OptionValue "CustomBob"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "CustomCrosshair"
{
	0, "Disabled"
	1, "Enabled"
}

OptionValue "fullscreenhudtypeOptions"
{
	0, "4:3 Mode"
	1, "16:9 Mode"
}





OptionMenu "WeaponBindsMenu"
{
	Title "Customize Weapon binds"
	
//	StaticText "Vanilla Slot keybinds", 1
	StaticText "Allows you to set certain individual weapons", 0
	StaticText "from melee and grenade slots.", 0
	StaticText 	""

	StaticText "Slot keybinds", 1
	Control		"Knife",			"Use knife"
	Control		"Taser",			"Use taser"
	Control		"Healthshot",			"Use healthshot"
	StaticText 	""
	Control		"Knife/Taser (1)",				"slot 1"
	Control		"Pistol slot (2)",				"slot 2"
	Control		"Shotgun slot (3)",				"slot 3"
	Control		"SMG Slot (4)",					"slot 4"
	Control		"Sniper slot (5)",				"slot 5"
	Control		"Rifle slot (6)",				"slot 6"
	Control		"Heavy slot (7)",				"slot 7"
	Control		"HE/Flashbang slot (8)",				"slot 8"
	Control		"Incendiary slot (9)",			"slot 9"
	Control		"C4/Charge/Healthshot (0)",						"slot 0"
	StaticText 	""
	Control		"HE Grenade",				"pukename grenadechange 0"
	Control		"Flashbang",				"Use Flashbang"
	Control		"Incendiary grenade",		"pukename grenadechange 1"
	Control		"Molotov",					"use molotov"
	Control		"Breachcharge",			"Use Breachcharge"
	StaticText 	""
	Control 	"Last weapon used",			"pukename Weapon_Lastused_Memoryscript"



}