diff --git a/cvarinfo.txt b/cvarinfo.txt index 611f100..f93b7d5 100644 --- a/cvarinfo.txt +++ b/cvarinfo.txt @@ -1,3 +1,3 @@ -server bool smpb_enable = false; +server bool smpb_enable = true; server float smpb_range = 3000; server int smpb_tics = 8; \ No newline at end of file diff --git a/language.enu b/language.enu new file mode 100644 index 0000000..1c59feb --- /dev/null +++ b/language.enu @@ -0,0 +1,5 @@ +[enu default] +SMPBOptions = "Slaughter Map Performance Booster Options"; +SMPBEnabled = "Enable SMPB"; +SMPBTicRate = "SMPB Slowdown Rate (Tics) (longer - slower, more performance boost)"; +SMPBRange = "SMPB Range Check (lower = more strict, more performance boost)"; diff --git a/menudef.txt b/menudef.txt new file mode 100644 index 0000000..91bdda2 --- /dev/null +++ b/menudef.txt @@ -0,0 +1,25 @@ +OptionValue "YesNo" +{ + 0, "$TXT_NO" + 1, "$TXT_YES" +} + +AddOptionMenu "OptionsMenuSimple" +{ + StaticText " " + Submenu "$SMPBOptions", "SMPBOptions" +} + +AddOptionMenu "OptionsMenu" +{ + StaticText " " + Submenu "$SMPBOptions", "SMPBOptions" +} + +OptionMenu "SMPBOptions" +{ + Title "$SMPBOptions" + Option "$SMPBEnabled", "smpb_enable", "YesNo" + Slider "$SMPBTicRate", "smpb_tics", 3, 15, 1 + Slider "$SMPBRange", "smpb_range", 1500, 5000, 250 +}