OptionMenu "MegabounceOptions"
{
	Class "MegabounceOptions"
	Title "Megabounce Options"
	StaticText " "
	StaticText " "
	Submenu "Presets", "MegabouncePresets"
	StaticText " "
	StaticText "Bounciness Settings", "Gold"
	MegabounceSlider "Bounce Strength", "Controls how high objects are bounced into the air.", "sv_megabounceplus_strength", 8, 96, 1, 0, "sv_megabounceplus_disablemapsettings"
	MegabounceSlider "Random Strength Offset", "Controls how far the random offset for each bounce's strength goes.", "sv_megabounceplus_strengthrandomoffset", 0, 96, 1, 0, "sv_megabounceplus_disablemapsettings"
	MegabounceSlider "Delay", "Controls the delay between world bounces (in tics).", "sv_megabounceplus_delay", 12, 64, 1, 0, "sv_megabounceplus_disablemapsettings"
	MegabounceSlider "Random Delay Offset", "Controls how far the random offset for each delay goes.", "sv_megabounceplus_delayrandomoffset", 0, 64, 1, 0, "sv_megabounceplus_disablemapsettings"
	StaticText " "
	MegabounceSlider "Air Control", "Controls how well players can move whilest airborne.", "sv_megabounceplus_aircontrol", 0.0, 1.0, 0.05, 2, "sv_megabounceplus_disablemapsettings"
	MegabounceOption "Object Displacement", "Objects are displaced in random directions each time the world bounces.", "sv_megabounceplus_displace", "MegabounceDisplace", "sv_megabounceplus_disablemapsettings"
	StaticText " "
	MegabounceOption "Use Map Defined Settings", "The current map uses its own bounciness settings, generated by the map's checksum.", "sv_megabounceplus_disablemapsettings", "OffOn"
	StaticText " "
	MegabounceSlider "Boots Spawn Chance (Percentage)", "Chance of spawning bounce-absorbing boots beside powerup items.", "sv_megabounceplus_bootschance", 0.0, 100.0, 5.0, 2
	StaticText " "
	StaticText " "
	StaticText "Audio / Visual Options", "Gold"
	MegabounceOption "Ambient Rumble", "Enables the ambient rumbling noise throughout the map.", "sv_megabounceplus_ambientrumble", "OnOff"
	MegabounceOption "Bounce Impact Sound", "Enables the large impacting noise whenever the world bounces.", "sv_megabounceplus_bouncesound", "OnOff"
	MegabounceOption "Dampen Screen Bouncing", "Smoothens down the bounce's vibration effect.", "sv_megabounceplus_dampenshake", "OnOff"
	MegabounceSlider "Screen Bounce Intensity", "Intensity of the screen bouncing (changes Earthquake Shake Intensity).", "r_quakeintensity", 0.0, 1.0, 0.05, 2
}

OptionMenu "MegabouncePresets"
{
	Title "Megabounce Presets"
	StaticText " "
	StaticText " "
	SafeCommand "Default", "preset_megabounceplus_default", "Restores all of Megabounce's settings to their defaults.    Are you sure?"
	MegabounceRandomizer "Randomize", "All bounciness settings will be randomized, but audio and visual options will not change.    Are you sure?"
	StaticText " "
	SafeCommand "Consistent Bounce", "preset_megabounceplus_consistent", "The bouncing has consistent strength and delay.    Use this preset?"
	SafeCommand "'Venture into the Bouncy Castle", "preset_megabounceplus_venture", "Emulates the bouncing effect in DUMP 3: BFG Edition's MAP11.    Use this preset?"
	SafeCommand "Typical Earthquake", "preset_megabounceplus_earthquake", "Very low bouncing, but the rapid frequency will constantly mess with your footing.    Use this preset?"
	SafeCommand "Unpredictable Bounciness", "preset_megabounceplus_unpredictability", "Large random factors on the strength with fairly long delays.    Use this preset?"
	SafeCommand "Like that one room in Serious Sam: The Second Encounter", "preset_megabounceplus_serioussam", "Have fun. :)    Use this preset?"
}

AddOptionMenu "OptionsMenu"
{
	StaticText ""
	Submenu "Megabounce Options", "MegabounceOptions"
}

OptionValue "MegabounceDisplace"
{
	0, "Off"
	1, "Players only"
	2, "Players, Monsters"
	3, "Players, Monsters, Items"
	4, "Everything!"
}