newmenu settings

menuitem "Video settings"                    "showmenu video"
menuitem "Head-Up Display settings"                "showmenu HUD"
menuitem "Gameplay settings"                    "showmenu gameplay"
menuitem "Keyboard settings"			"showmenu Keyboard"
menuitem "Mouse settings"			"showmenu Mouse"
menuitem "Sound settings"                    "showmenu sound"
menuitem "Misc settings"                    "showmenu Misc"
menuitem "" -1
menuitem "Reset all settings"                          [ showmenu "Reset settings" ]

newmenu Weapons

menumdl weapons/assault/menu mapmodel 75 12
menuitem "MTP-57 Assault Rifle"            "nextprimary 6;echo MTP-57 Assault Rifle selected" "chmenumdl Weapons weapons/assault/menu mapmodel 75 12"
menuitem "A-ARD/10 Submachine Gun"        "nextprimary 4;echo A-ARD/10 Submachine Gun selected" "chmenumdl Weapons weapons/subgun/menu mapmodel 75 12"
menuitem "Precision Tech AD-81 Sniper Rifle"     "nextprimary 5;echo Precision Tech AD-81 Sniper Rifle selected" "chmenumdl Weapons weapons/sniper/menu mapmodel 75 12"
menuitem "V-19 Combat Shotgun"            "nextprimary 3;echo V-19 Combat Shotgun selected" "chmenumdl Weapons weapons/shotgun/menu mapmodel 75 12"
menuitem "TMP-M&A Carbine"            "nextprimary 2;echo TMP-M&A Carbine selected" "chmenumdl Weapons weapons/rifle/menu mapmodel 75 12"
//menuitem "Combat Pistol"            "nextprimary 7;echo Combat Pistol selected" "chmenumdl Weapons weapons/cpistol/menu mapmodel 75 12"

newmenu CLA

menuinit [menuselection CLA (skin_cla)]
menumdl playermodels/CLA/01 all 50 4
menuitem "Comandante"           "skin_cla 0" "chmenumdl CLA playermodels/CLA/01 all 50 4"
menuitem "Psycho"               "skin_cla 1" "chmenumdl CLA playermodels/CLA/02 all 50 4"
menuitem "Bomber"               "skin_cla 2" "chmenumdl CLA playermodels/CLA/03 all 50 4"
menuitem "Ripper"               "skin_cla 3" "chmenumdl CLA playermodels/CLA/04 all 50 4"


newmenu RVSF

menuinit [menuselection RVSF (skin_rvsf)]
menumdl playermodels/RVSF/01 all 50 4
menuitem "Alpha"            "skin_rvsf 0" "chmenumdl RVSF playermodels/RVSF/01 all 50 4"
menuitem "Tango"            "skin_rvsf 1" "chmenumdl RVSF playermodels/RVSF/02 all 50 4"
menuitem "Cobra"            "skin_rvsf 2" "chmenumdl RVSF playermodels/RVSF/03 all 50 4"
menuitem "Viper"            "skin_rvsf 3" "chmenumdl RVSF playermodels/RVSF/04 all 50 4"
menuitem "Swat"             "skin_rvsf 4" "chmenumdl RVSF playermodels/RVSF/05 all 50 4"
menuitem "Police"           "skin_rvsf 5" "chmenumdl RVSF playermodels/RVSF/06 all 50 4"


newmenu "QUICK setup"

menuitemtextinput "Nickname:" "" "name $arg1"
menuitemtextinput "Resolution (Width): " "$scr_w" "scr_w $arg1"
menuitemtextinput "Resolution (Height): " "$scr_h" "scr_h $arg1"
menuitemtextinput "Mouse sensitivity: " "$sensitivity" "sensitivity $arg1"
menuitemcheckbox "Reduced violence mode: " "$poniesmodeon" "reducedviolencemode $arg1"
menuitemslider "Graphics detail: " 1 6 "$gfxqualityalias" 1 [ Horrible Low Medium Good "High (Performs slow)" "INSANE! (Performs really slow)"] "new_gfx_quality $arg1"
menuitemslider "Sound detail: " 1 3 "$soundqualityalias" 1 "Low Medium High" "new_sound_quality $arg1"
menuitemslider "Field of view: " 75 120 "$fov" 2 "" "fov $arg1"
menuitem "" -1
menuitem "0			        [ OK; View Tutorial ]" [ closemenu "QUICK setup"; resetgl; showmenu "Confirm tutorial"; ]
menuitem "2			        [ OK ]" [ closemenu "QUICK setup"; resetgl ]

newmenu "Confirm tutorial"

menuitem "Proceed with tutorial" "tutstart 1"
menuitem "3Cancel" [ closemenu "Confirm tutorial" ]


alias new_gfx_quality [
    if (= $arg1 6) [    // "INSANE!" gfx quality
        fsaa 8
        minlod 250
        alias gfxqualityalias 6
        fpsrange 100 1000
        watersubdiv 1
        dynlight 1
        waterreflect 1
        stencilbits 8
        stencilshadow 40
        dynshadow 40
        lighterror 1
        scorch 1
        bullethole 1
        blood 1
        gib 1
        gibnum 16
        shotline 1
        echo "Be mighty careful! This setting puts any & every graphics setting as high as absolutely possible!"
        trilinear 1
        waterrefract 1
        texreduce 0
        hidebigmenuimages 0
        ] [
        if (= $arg1 5) [    // High gfx quality
            fsaa 4
            minlod 200
            alias gfxqualityalias 5
            fpsrange 100 1000
            watersubdiv 2
            dynlight 1
            waterreflect 1
            stencilbits 8
            stencilshadow 40
            dynshadow 40
            lighterror 1
            scorch 1
            bullethole 1
            blood 1
            gib 1
            gibnum 12
            shotline 1
            trilinear 1
            waterrefract 0
            texreduce 0
            hidebigmenuimages 0
            ] [
            if (= $arg1 4) [    // Good gfx quality
                fsaa 0
                minlod 100
                alias gfxqualityalias 4
                fpsrange 60 60
                watersubdiv 2
                dynlight 1
                waterreflect 1
                stencilbits 8
                stencilshadow 40
                dynshadow 40
                lighterror 4
                scorch 1
                bullethole 1
                blood 1
                gib 1
                gibnum 8
                shotline 1
                trilinear 1
                waterrefract 0
                texreduce 0
                hidebigmenuimages 0
                ] [
                if (= $arg1 3) [    // Medium gfx quality (DEFAULT)
                    fsaa 0
                    minlod 60
                    alias gfxqualityalias 3
                    fpsrange 30 40
                    watersubdiv 4
                    dynlight 1
                    // Makes sure the 3D card is powerful enough for water reflection/shadow stencils...
                    if (glext "GL_ARB_fragment_program") [ waterreflect 1 ] [ waterreflect 0 ]
                    if (|| (glext "GL_EXT_stencil_two_side") (glext "GL_ATI_separate_stencil")) [
                        stencilbits 8
                        stencilshadow 40
                        ] [
                        stencilbits 0
                        stencilshadow 0 ]
                    dynshadow 40
                    lighterror 4
                    scorch 1
                    bullethole 1
                    blood 1
                    gib 1
                    gibnum 6
                    shotline 1
                    trilinear 1
                    waterrefract 0
                    texreduce 0
                    hidebigmenuimages 0
                    ] [
                    if (= $arg1 2) [    // Low gfx quality
                        fsaa 0
                        minlod 60
                        alias gfxqualityalias 2
                        fpsrange 20 25
                        watersubdiv 16
                        dynlight 0
                        waterreflect 0
                        stencilshadow 0
                        stencilbits 0
                        dynshadow 0
                        lighterror 10
                        scorch 0
                        bullethole 0
                        blood 0
                        gib 0
                        shotline 0
                        trilinear 1
                        waterrefract 0
                        texreduce 1
                        hidebigmenuimages 1
                            ] [    // Horrible gfx quality
                            fsaa 0
                            minlod 60
                            alias gfxqualityalias 1
                            fpsrange 20 25
                            watersubdiv 64
                            dynlight 0
                            waterreflect 0
                            stencilshadow 0
                            stencilbits 0
                            dynshadow 0
                            lighterror 16
                            scorch 0
                            bullethole 0
                            blood 0
                            gib 0
                            shotline 0
                            trilinear 0
                            waterrefract 0
                            texreduce -1
                            hidebigmenuimages 1
                        ]
                    ]
                ]
            ]
        ]
    ]

alias new_sound_quality [
    if (= $arg1 3) [ // high sound (DEFAULT)
        soundqualityalias = 3
        maxsoundsatonce 10
        footsteps 1
        bulletairsound 1
        bulletbouncesound 1
    ] [
        if (= $arg1 2) [ // medium
            soundqualityalias = 2
            maxsoundsatonce 8
            footsteps 1
            bulletairsound 0
            bulletbouncesound 1
        ] [                         // low
            soundqualityalias = 1
            maxsoundsatonce 5
            footsteps 0
            bulletairsound 0
            bulletbouncesound 0
        ]
    ]
]


newmenu "Reset settings"
menuinit [ alias resetyes 0 ] // Ensures this menu works correctly.
menuitemcheckbox "Yes, reset all settings: " "alias resetyes 1" "alias resetyes $arg1"
menuitem "2         [ Apply! ]        " [ if $resetyes [ resetcfg 1; quit ] [ showmenu "" ] ] [ echo "3If the above option is ticked, AssaultCube will now quit and your settings will be reset." ] //If checkbox is ticked, reset settings and quit, otherwise, close menus.


newmenu Keyboard

menuitem "Select an action and press ENTER to bind a new key:" -1
menuitem "" -1
menuitemkeyinput "Forwards: "        forward
menuitemkeyinput "Left: "           left
menuitemkeyinput "Backwards: "       backward
menuitemkeyinput "Right: "          right
menuitemkeyinput "Attack: "         attack
menuitemkeyinput "Special action: " altaction
menuitemkeyinput "Jump: "           jump
menuitemkeyinput "Crouch: "         crouch
menuitemkeyinput "Reload: "         reload
menuitemkeyinput "Weapon menu: "    "showmenu Weapons"
menuitemkeyinput "Next weapon: "     "universaldelta  1"
menuitemkeyinput "Previous weapon: " "universaldelta -1"
menuitemkeyinput "Show scores: "    showscores
menuitemkeyinput "Chat: "           saycommand
menuitemkeyinput "Team chat: "      "saycommand %"
menuitemkeyinput "Commandline: "    "saycommand /"
menuitemkeyinput "Console output: " toggleconsole
menuitemkeyinput "Screenshot: "     screenshot
menuitemkeyinput "Map overview: "   toggleshowmap
menuitemkeyinput "Drop CTF flag: "  dropflag
menuitemkeyinput "Fullscreen: "        fullscreenscript
menuitem "" -1
menuitem "Reset keybinds to default settings..." [ showmenu "Reset Binds" ]

newmenu "Mouse"
menuitemcheckbox "Invert mouse: " "$invmouse" "invmouse $arg1"
menuitemcheckbox "Automatic Sniper-scope sensitivity: " "$autoscopesens" "autoscopesens $arg1"
menuitemtextinput "Mouse Sensitivity:                    " "$sensitivity" "sensitivity $arg1"
menuitemtextinput "Mouse Acceleration:                    " "$mouseaccel" "mouseaccel $arg1"
menuitemtextinput "Filter mouse (for bad ones):  " "$mfilter" "mfilter $arg1"
menuitemtextinput "Sniper-scope sensitivity scale:  " "$scopesensscale" "scopesensscale $arg1"
menuitem "" -1
menuitemslider "Crosshair size: " 0 50 "$crosshairsize" 5 "" "crosshairsize $arg1"
menuitem "Change crosshair...                "      "showmenu Crosshairs"
menuitem "Change scope crosshair...            "      "showmenu [Scope crosshairs]"

newmenu "Crosshairs"
menudirlist "packages/misc/crosshairs" "png" "loadcrosshair (concatword $arg1 .png)" 1

newmenu "Scope crosshairs"
menudirlist "packages/misc/crosshairs" "png" "loadcrosshair (concatword $arg1 .png) scope" 1

newmenu "Reset Binds"
menuinit [ alias resetbindsyes 0 ] // Ensures this menu works correctly.
menuitemcheckbox "Yes, reset all binds: " "alias resetbindsyes 1" "alias resetbindsyes $arg1"
menuitem "2         [ Apply! ]        " [ if $resetbindsyes [ resetbinds ] [ showmenu "" ] ]

newmenu video

menuitemtextinput "Screen width:                " "$scr_w" "scr_w $arg1" "" 11
menuitemtextinput "Screen height:                " "$scr_h" "scr_h $arg1" "" 11
menuitemslider "Graphics detail: " 1 6 "$gfxqualityalias" 1 [ Horrible Low Medium Good "High (Performs slow)" "INSANE! (Performs really slow)"] "new_gfx_quality $arg1"
menuitem "" -1
menuitemslider "Field of view: " 75 120 "$fov" 2 "" "fov $arg1"
menuitemslider "Gamma: " 30  300 "$gamma"  5 "" "gamma $arg1"
menuitemcheckbox "Fullscreen: " "$fullscreen" "fullscreen $arg1"
menuitemslider "Vsync: " -1 1 "$vsync" 1 "Default Disabled Enabled" "vsync $arg1"
menuitem "" -1
menuitem "Advanced video settings..."    [ showmenu "Advanced video settings" ]
menuitem "" -1
menuitem "2			  [ Apply now! ]" resetgl



newmenu "Advanced video settings"

menuitemslider "Scope FOV: " 5 50 "$scopefov" 5 "" "scopefov $arg1"
alias fsaa_valuemap "-1 2 4 8 16"
menuitemslider "Antialiasing (FSAA): " 0 4 "(findlist $fsaa_valuemap $fsaa)" 1 "Off 2 4 8 16" "fsaa (at $fsaa_valuemap $arg1)"

alias minlod_valuemap "60 100 200 250"
menuitemslider "Minimal level of detail: " 0 3 "(findlist $minlod_valuemap $minlod)" 1 [ "Low" "Decent" "Good" "Best" ] "minlod (at $minlod_valuemap $arg1)"
menuitemslider "Light error: " 1 100 "$lighterror" 5 "" "lighterror $arg1"

alias watersubdiv_valuemap "16 8 4 2 1"
menuitemslider "Water subdivision: " 0 4 "(findlist $watersubdiv_valuemap $watersubdiv)" 1 ["Lowest quality" "Low quality" "Medium quality" "High quality" "Highest quality"] "watersubdiv (at $watersubdiv_valuemap $arg1)"
menuitemslider "Dynamic shadows: " 0 2 [getshadowq] 1 ["Off" "Blob" "Stencil"] [setshadowq $arg1]
menuitemslider "Tex-reduce: " -1 3 "$texreduce" 1 "" "texreduce $arg1"
menuitemcheckbox "Water reflection: " "$waterreflect" "waterreflect $arg1"

getshadowq = [
    if (&& $stencilshadow (>= $stencilbits 8)) [result 2] [
        if $dynshadow [result 1] [result 0]
    ]
]

setshadowq = [
    if (= $arg1 2) [
        stencilshadow 40
        stencilbits 8
        dynshadow 40
    ] [
        if (= $arg1 1) [
            stencilshadow 0
            stencilbits 0
            dynshadow 40
        ] [
            stencilshadow 0
            stencilbits 0
            dynshadow 0
        ]
    ]
]

menuitemcheckbox "Dynamic lights: " "$dynlight" "dynlight $arg1"
menuitemcheckbox "Bulletholes: " "$bullethole" "bullethole $arg1"
menuitemcheckbox "Scorch: " "$scorch" "scorch $arg1"
menuitem "Enable 0.93 FOV compatiblity..." [ fovcompat; sleep 100 [ fovcompatmenu ] ]
menuitem "" -1
menuitem "FPS Range..." [ showmenu "FPS Range" ]
menuitem "" -1
menuitem "2		        [ Apply now! ]" "resetgl"

alias fovcompatmenu [ showmenu settings; showmenu video; showmenu "Advanced video settings" ]

newmenu "FPS Range"

menuitem "My 486 0wnz y00       (8-10 FPS)" [closemenu "FPS Range"; fpsrange 8 10]
menuitem "Slow machine           (20-25 FPS)" [closemenu "FPS Range"; fpsrange 20 25]
menuitem "Sensible default       (30-40 FPS)" [closemenu "FPS Range"; fpsrange 30 40]
menuitem "FPS whore           (60-60 FPS)" [closemenu "FPS Range"; fpsrange 60 60]
menuitem "I don't understand LOD (100+ FPS)" [closemenu "FPS Range"; fpsrange 100 1000]


newmenu gameplay

menuitemtextinput "Nickname:        " "result $curname" "name $arg1"
menuitemslider "Player skins: " 0 2 "$teamdisplaymode" 1 [Normal "Colored vests" "Full color"] "teamdisplaymode $arg1"
menuitemslider "Custom player skins: " 0 2 "$hidecustomskins" 1 [ "Always show" "Show in non-team modes" "Never show" ] "hidecustomskins $arg1"
menuitem "" -1
menuitemcheckbox "Reduced violence mode: " "$poniesmodeon" "reducedviolencemode $arg1"
menuitemcheckbox "Auto weapon reload: " "$autoreload" "autoreload $arg1"
menuitemslider "Gib gore: " 0 4 "$__gibsgore" 1 [ "Off" "Normal" "Good" "Messy" "Unrealistic" ] "gibsgore $arg1"
menuitemcheckbox "Hit sound: " "$hitsound" "hitsound $arg1"
menuitemcheckbox "Show scores on death: " "$showscoresondeath" "showscoresondeath $arg1"
menuitem "Change to the enemy team" "changeteam"
menuitem "Change weapon..."        "showmenu Weapons"
menuitem "Change player skin..."          [showmenu (at [CLA RVSF] (curteam))]
menuitemslider "Akimbo end action: " 0 2 "$akimboendaction" 1 [ "Switch to pistol" "Switch to primary weapon" "Switch to grenades" ] "akimboendaction $arg1"


newmenu Misc
alias __fontsetting 0		// Initial setting for status of fonts so AC doesn't give errors.
alias __screenshottype 1	// Initial setting for status of fonts so AC doesn't give errors.
menuitemcheckbox "Auto map download: " "$autogetmap" "autogetmap $arg1"
menuitemcheckbox "Show gamemodes as acronyms: " "$modeacronyms" "modeacronyms $arg1"
menuitemcheckbox "Show quit dialog when quitting: " "$askquit" "askquit = $arg1"
menuitemcheckbox "Auto-screenshot: " "$autoscreenshot" "autoscreenshot $arg1"
menuitemslider "Servers to ping at once: " 0 50 "$maxservpings" 5 "" "maxservpings $arg1"
menuitemslider "Screenshot type: " -1 3 "$__screenshottype" 1 [ "JPEG (Terrible Quality)" "JPEG (Bad Quality)" "JPEG (Good Quality)" "JPEG (Best Quality)" "BMP" ] [ if (= $arg1 -1) [ screenshottype 1; jpegquality 25; alias __screenshottype -1 ] [ if (= $arg1 0) [ screenshottype 1; jpegquality 50; alias __screenshottype 0 ] [ if (= $arg1 1) [ screenshottype 1; jpegquality 70; alias __screenshottype 1 ] [ if (= $arg1 2) [ screenshottype 1; jpegquality 100; alias __screenshottype 2 ] [ if (= $arg1 3) [ screenshottype 0; alias __screenshottype 3 ] ] ] ] ] ]
menuitemslider "Console size: " 0 20 "$consize" 1 "" "consize $arg1"
menuitemslider "Font type: " 0 2 "$__fontsetting" 1 [ "Default" "v104" "Mono" ] [ if (= $arg1 1) [ setfont v104; alias __fontsetting 1 ] [ if (= $arg1 2) [ setfont mono; alias __fontsetting 2 ] [ setfont default; alias __fontsetting 0 ] ] ]
menuitemslider "Mini-map background style: " 0 2 "$showmapbackdrop" 1 [ "Fully Transparent" "Black" "White/Transparent" ] "showmapbackdrop $arg1"
//menuitemslider "Voicecom menu version (requires restart): " 1 2 "$voicecomver" 1 "v1 v2" [ voicecomver $arg1 ]



// Reduced game violence mode...
alias reducedviolencemode [
    if (= $arg1 1) [
    alias poniesmodeon 1
        blood 0
        gib 0
        mutesound 48 0; loop i 8 [ mutesound (+ $i 26) 0 ]	// Mute pain sounds: 26 to 33 and 48
        echo "2OMG! 8PW1NI3ES5! mode enabled - Violent game content has now been reduced."
    ] [ // Violent
    alias poniesmodeon 0
        blood 1
        gib 1
        mutesound 48 1; loop i 8 [ mutesound (+ $i 26) 1 ]	// Un-mute pain sounds
        echo "2OMG! 8PW1NI3ES5! mode has been disabled."
    ]
]

newmenu HUD

menuitem "Show:" -1
menuitemcheckbox "   Gun " "$hudgun" "hudgun $arg1"
menuitemcheckbox "   Team icon " "(= $hideteam 0)" "hideteam (= $arg1 0)"
menuitemcheckbox "   Icons " "(= $hidehudequipment 0)" "hidehudequipment (= $arg1 0)"
menuitemcheckbox "   Console " "(= $hideconsole 0)" "hideconsole (= $arg1 0)"
menuitemcheckbox "   Spectator info " "(= $hidespecthud 0)" "hidespecthud (= $arg1 0)"
menuitemcheckbox "   Quick messages " "(= $hidehudmsgs 0)" "hidehudmsgs (= $arg1 0)"
menuitemcheckbox "   Damage direction indicator " "(= $hidedamageindicator 0)" "hidedamageindicator (= $arg1 0)"
menuitemcheckbox "   Damage screen flash    " "$damagescreen" "damagescreen $arg1"
menuitemcheckbox "   Crosshair team-sign " "$crosshairteamsign" "crosshairteamsign $arg1"
menuitemcheckbox "   CTF icons"    "(= $hidectfhud 0)" "hidectfhud  (= $arg1 0)"
menuitemcheckbox "   Radar " "(= $hideradar 0)" "hideradar (= $arg1 0)"
menuitemslider   "   Radar zoom: " 20 70 [ $radarheight ] 5 [][ radarheight $arg1 ]
menuitemslider   "   Votes: " 0 2 [$hidevote] 1 [ "Always show" "Show until you vote" "Never show" ] [hidevote $arg1]
menuitemslider   "   Graphics statistics: " 0 2 [ $showstats ] 1 [ "None" "FPS Only" "All" ] [ showstats $arg1 ]
menuitemslider   "   Extra messages: " 0 3 "$hudextras" 1 [ "No extra messages" "Show extra messages in console" "Pop up extra messages!" "SPAM EXTRA MESSAGES!" ] "hudextras $arg1"
menuitemslider   "   Hand alignment: " 0 1 "$righthanded" 1 [ "Left-handed" "Right-handed" ] "righthanded $arg1"
menuitemslider   "   Max-roll: " 0 20 "$maxroll" 1 "" "maxroll $arg1"
menuitemslider   "   Spectator max-roll: " 0 1 "$maxrollremote" 1 [ "Off" "On" ] "maxrollremote $arg1"




newmenu sound

menuitemslider "Sound volume: " 0 255 "$soundvol" 16 "" "soundvol $arg1"
menuitemslider "Music volume: " 0 255 "$musicvol" 16 "" "musicvol $arg1"
menuitemslider "Sound detail: " 1 3 "($soundqualityalias)" 1 "Low Medium High" "new_sound_quality $arg1"
menuitem "" -1
menuitem "Mute/Un-mute specific sounds..."    [ showmenu "Mute specific sounds" ]
menuitem "" -1
menuitem "Advanced settings:" -1
menuitemcheckbox "   Footsteps: " "$footsteps" "footsteps $arg1"
menuitemcheckbox "   Disable own footsteps: " "(= $localfootsteps)" "localfootsteps (! $arg1)"
menuitemslider "   Sounds at once: " 0 100 "$maxsoundsatonce" 2 "" "maxsoundsatonce $arg1"
menuitemslider "   Voice-coms: " 0 2 "$voicecomsounds" 1 [Off On "Team only"] "voicecomsounds $arg1"

newmenu "Mute specific sounds"

menuitem "Weapon sounds"            [ showmenu "Mute weapon sounds" ]
menuitem "Bullet/explosion sounds"    [ showmenu "Mute bullet/explosion sounds" ]
menuitem "Pain/death sounds"         [ showmenu "Mute pain/death sounds" ]
menuitem "Pickup sounds"             [ showmenu "Mute pickup sounds" ]
menuitem "Movement sounds"            [ showmenu "Mute movement sounds" ]
menuitem "Voice-com sounds"            [ showmenu "Mute voice-coms" ]
menuitem "Other sounds"                [ showmenu "Mute other sounds" ]
menuitem "" -1
menuitem "Un-mute all sounds..."    "unmuteallsounds"

newmenu  "Mute weapon sounds"

menuitemcheckbox "Knife: "            "(soundmuted 7)"  "mutesound  7 (! $arg1)"
menuitemcheckbox "Pistol: "            "(soundmuted 8)"  "mutesound  8 (! $arg1)"
menuitemcheckbox "Pistol reloading: "        "(soundmuted 9)"  "mutesound  9 (! $arg1)"
menuitemcheckbox "Carbine: "            "(soundmuted 10)" "mutesound 10 (! $arg1)"
menuitemcheckbox "Carbine reloading: "        "(soundmuted 11)" "mutesound 11 (! $arg1)"
menuitemcheckbox "Shotgun: "            "(soundmuted 12)" "mutesound 12 (! $arg1)"
menuitemcheckbox "Shotgun reloading: "        "(soundmuted 13)" "mutesound 13 (! $arg1)"
menuitemcheckbox "Submachine gun: "        "(soundmuted 14)" "mutesound 14 (! $arg1)"
menuitemcheckbox "Submachine gun reloading: "    "(soundmuted 15)" "mutesound 15 (! $arg1)"
menuitemcheckbox "Sniper: "            "(soundmuted 16)" "mutesound 16 (! $arg1)"
menuitemcheckbox "Sniper reloading: "        "(soundmuted 17)" "mutesound 17 (! $arg1)"
menuitemcheckbox "Assault Rifle: "        "(soundmuted 18)" "mutesound 18 (! $arg1)"
menuitemcheckbox "Assault Rifle reloading: "    "(soundmuted 19)" "mutesound 19 (! $arg1)"
menuitemcheckbox "Grenade pull: "        "(soundmuted 41)" "mutesound 41 (! $arg1)"
menuitemcheckbox "Grenade throw: "        "(soundmuted 42)" "mutesound 42 (! $arg1)"
menuitemcheckbox "Grenade bounce 1: "        "(soundmuted 43)" "mutesound 43 (! $arg1)"
menuitemcheckbox "Grenade bounce 2: "        "(soundmuted 44)" "mutesound 44 (! $arg1)"
menuitemcheckbox "Akimbo reload: "        "(soundmuted 45)" "mutesound 45 (! $arg1)"
menuitemcheckbox "Change weapon: "        "(soundmuted 46)" "mutesound 46 (! $arg1)"
menuitemcheckbox "Empty clip: "            "(soundmuted 24)" "mutesound 24 (! $arg1)"

newmenu "Mute pickup sounds"

menuitemcheckbox "Ammo pickup: "     "(soundmuted 20)" "mutesound 20 (! $arg1)"
menuitemcheckbox "Health pickup: "   "(soundmuted 21)" "mutesound 21 (! $arg1)"
menuitemcheckbox "Armour pickup: "   "(soundmuted 22)" "mutesound 22 (! $arg1)"
menuitemcheckbox "Akimbo pickup: "   "(soundmuted 23)" "mutesound 23 (! $arg1)"
menuitemcheckbox "Akimbo finished: " "(soundmuted 25)" "mutesound 25 (! $arg1)"

newmenu "Mute pain/death sounds"

menuitemcheckbox "Pain 1: "     "(soundmuted 26)" "mutesound 26 (! $arg1)"
menuitemcheckbox "Pain 2: "     "(soundmuted 27)" "mutesound 27 (! $arg1)"
menuitemcheckbox "Pain 3: "     "(soundmuted 28)" "mutesound 28 (! $arg1)"
menuitemcheckbox "Pain 4: "     "(soundmuted 29)" "mutesound 29 (! $arg1)"
menuitemcheckbox "Pain 5: "     "(soundmuted 30)" "mutesound 30 (! $arg1)"
menuitemcheckbox "Pain 6: "     "(soundmuted 31)" "mutesound 31 (! $arg1)"
menuitemcheckbox "Die 1: "      "(soundmuted 32)" "mutesound 32 (! $arg1)"
menuitemcheckbox "Die 2: "      "(soundmuted 33)" "mutesound 33 (! $arg1)"
menuitemcheckbox "Gib sounds: " "(soundmuted 48)" "mutesound 48 (! $arg1)"
menuitemcheckbox "Tinnitus: "   "(soundmuted 62)" "mutesound 62 (! $arg1)"

newmenu "Mute movement sounds"

menuitemcheckbox "Footsteps: "       "$footsteps"      "footsteps $arg1"
menuitemcheckbox "Crouch: "          "(soundmuted 54)" "mutesound 54 (! $arg1)"
menuitemcheckbox "Water footsteps: " "(soundmuted 55)" "mutesound 55 (! $arg1)"
menuitemcheckbox "Water crouching: " "(soundmuted 56)" "mutesound 56 (! $arg1)"
menuitemcheckbox "Crouch-in: "       "(soundmuted 57)" "mutesound 57 (! $arg1)"
menuitemcheckbox "Crouch-out: "      "(soundmuted 58)" "mutesound 58 (! $arg1)"
menuitemcheckbox "Jump: "            "(soundmuted  0)" "mutesound  0 (! $arg1)"
menuitemcheckbox "Soft landing: "    "(soundmuted  1)" "mutesound  1 (! $arg1)"
menuitemcheckbox "Hard landing: "    "(soundmuted  2)" "mutesound  2 (! $arg1)"
menuitemcheckbox "Splash 1: "        "(soundmuted 35)" "mutesound 35 (! $arg1)"
menuitemcheckbox "Splash 2: "        "(soundmuted 36)" "mutesound 36 (! $arg1)"
menuitemcheckbox "Underwater: "      "(soundmuted 61)" "mutesound 61 (! $arg1)"

newmenu "Mute bullet/explosion sounds"

menuitemcheckbox "Ricochet air 1: "        "(soundmuted  3)" "mutesound  3 (! $arg1)"
menuitemcheckbox "Ricochet air 2: "        "(soundmuted  4)" "mutesound  4 (! $arg1)"
menuitemcheckbox "Ricochet hit: "          "(soundmuted  5)" "mutesound  5 (! $arg1)"
menuitemcheckbox "Bullet (water impact): " "(soundmuted  6)" "mutesound  6 (! $arg1)"
menuitemcheckbox "Grenade explosion: "     "(soundmuted 34)" "mutesound 34 (! $arg1)"
menuitemcheckbox "Bullet hit: " "$bulletbouncesound" "bulletbouncesound $arg1"
menuitemcheckbox "Bullet near-miss: " "$bulletairsound" "bulletairsound $arg1"
menuitemcheckbox "HitSound: "   "(! $hitsound)"   "hitsound (! $hitsound)"

newmenu "Mute other sounds"

menuitemcheckbox "Flag drop: "   "(soundmuted 37)" "mutesound 37 (! $arg1)"
menuitemcheckbox "Flag pickup: " "(soundmuted 38)" "mutesound 38 (! $arg1)"
menuitemcheckbox "Flag return: " "(soundmuted 39)" "mutesound 39 (! $arg1)"
menuitemcheckbox "Flag score: "  "(soundmuted 40)" "mutesound 40 (! $arg1)"
menuitemcheckbox "Headshot: "    "(soundmuted 49)" "mutesound 49 (! $arg1)"
menuitemcheckbox "Call vote: "   "(soundmuted 50)" "mutesound 50 (! $arg1)"
menuitemcheckbox "Pass vote: "   "(soundmuted 51)" "mutesound 51 (! $arg1)"
menuitemcheckbox "Fail vote: "   "(soundmuted 52)" "mutesound 52 (! $arg1)"
menuitemcheckbox "Menu select: " "(soundmuted 59)" "mutesound 59 (! $arg1)"
menuitemcheckbox "Menu enter: "  "(soundmuted 60)" "mutesound 60 (! $arg1)"

newmenu "Mute voice-coms"

menuitemcheckbox "Affirmative: "             "(soundmuted 63)" "mutesound 63 (! $arg1)"
menuitemcheckbox "All-right sir: "           "(soundmuted 64)" "mutesound 64 (! $arg1)"
menuitemcheckbox "Come on, move: "           "(soundmuted 65)" "mutesound 65 (! $arg1)"
menuitemcheckbox "Coming in with the flag: " "(soundmuted 66)" "mutesound 66 (! $arg1)"
menuitemcheckbox "Cover me: "                "(soundmuted 67)" "mutesound 67 (! $arg1)"
menuitemcheckbox "Defend the flag: "         "(soundmuted 68)" "mutesound 68 (! $arg1)"
menuitemcheckbox "Enemy down: "              "(soundmuted 69)" "mutesound 69 (! $arg1)"
menuitemcheckbox "Go get 'em boys!: "        "(soundmuted 70)" "mutesound 70 (! $arg1)"
menuitemcheckbox "Good job team: "           "(soundmuted 71)" "mutesound 71 (! $arg1)"
menuitemcheckbox "I got one!: "              "(soundmuted 72)" "mutesound 72 (! $arg1)"
menuitemcheckbox "I made contact: "          "(soundmuted 73)" "mutesound 73 (! $arg1)"
menuitemcheckbox "I'm attacking: "           "(soundmuted 74)" "mutesound 74 (! $arg1)"
menuitemcheckbox "I'm on defense: "          "(soundmuted 75)" "mutesound 75 (! $arg1)"
menuitemcheckbox "I'm on your team: "        "(soundmuted 76)" "mutesound 76 (! $arg1)"
menuitemcheckbox "Negative: "                "(soundmuted 77)" "mutesound 77 (! $arg1)"
menuitemcheckbox "No can do: "               "(soundmuted 78)" "mutesound 78 (! $arg1)"
menuitemcheckbox "Recover the flag: "        "(soundmuted 79)" "mutesound 79 (! $arg1)"
menuitemcheckbox "Sorry: "                   "(soundmuted 80)" "mutesound 80 (! $arg1)"
menuitemcheckbox "Spread out: "              "(soundmuted 81)" "mutesound 81 (! $arg1)"
menuitemcheckbox "Stay here: "               "(soundmuted 82)" "mutesound 82 (! $arg1)"
menuitemcheckbox "Stay together: "           "(soundmuted 83)" "mutesound 83 (! $arg1)"
menuitemcheckbox "There's no way sir: "      "(soundmuted 84)" "mutesound 84 (! $arg1)"
menuitemcheckbox "We did it!: "              "(soundmuted 85)" "mutesound 85 (! $arg1)"
menuitemcheckbox "Yes: "                     "(soundmuted 86)" "mutesound 86 (! $arg1)"
menuitemcheckbox "Under way: "               "(soundmuted 87)" "mutesound 87 (! $arg1)"
menuitemcheckbox "On the move: "             "(soundmuted 88)" "mutesound 88 (! $arg1)"
menuitemcheckbox "Got your back: "           "(soundmuted 89)" "mutesound 89 (! $arg1)"
menuitemcheckbox "Got you covered:"          "(soundmuted 90)" "mutesound 90 (! $arg1)"
menuitemcheckbox "In position: "             "(soundmuted 91)" "mutesound 91 (! $arg1)"
menuitemcheckbox "In position now: "         "(soundmuted 92)" "mutesound 92 (! $arg1)"
menuitemcheckbox "Report In!: "              "(soundmuted 93)" "mutesound 93 (! $arg1)"
menuitemcheckbox "Nice shot: "               "(soundmuted 94)" "mutesound 94 (! $arg1)"
menuitemcheckbox "Thanks: "                  "(soundmuted 95)" "mutesound 95 (! $arg1)"
menuitemcheckbox "Thanks, man: "             "(soundmuted 96)" "mutesound 96 (! $arg1)"
menuitemcheckbox "Awesome (1): "             "(soundmuted 97)" "mutesound 97 (! $arg1)"
menuitemcheckbox "Awesome (2): "             "(soundmuted 98)" "mutesound 98 (! $arg1)"
