menus_settings.cfg 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. //// Main > Settings ////
  2. newmenu Settings
  3. menuitem "Video settings\i\3" [ showmenu "\fsVideo" ]
  4. menuitem "Head-Up Display settings\i\3" [ showmenu HUD ]
  5. menuitem "Console settings\i\3" [ showmenu Console ]
  6. menuitem "Gameplay settings\i\3" [ showmenu "\fsGameplay" ]
  7. menuitem "Scoreboard settings\i\3" [ showmenu Scoreboard ]
  8. menuitem "Keyboard settings\i\3" [ showmenu Keyboard ]
  9. menuitem "Mouse settings\i\3" [ showmenu Mouse ]
  10. menuitem "Sound settings\i\3" [ showmenu "\fsSound" ]
  11. menuitem "Misc settings\i\3" [ showmenu Misc ]
  12. menuitem "Mod package settings\i\3" [ showmenu "Mod package" ]
  13. menuitem "" -1
  14. menuitem "Reset all settings\i\3" [ showmenu [Reset settings] ]
  15. //// Main > Settings > Video ////
  16. newmenu "\fsVideo"
  17. menuitemtextinput [Screen width: ] "$scr_w" [ scr_w $arg1 ] [] 11
  18. menuitemtextinput [Screen height: ] "$scr_h" [ scr_h $arg1 ] [] 11
  19. if (&& $desktopw $desktoph) [
  20. menuitem (concatword "\f2Set\f5 resolution as in desktop (" $desktopw "x" $desktoph ")") [ scr_w $desktopw ; scr_h $desktoph ; refreshcurmenudelayed ]
  21. ]
  22. menuitem "Choose resolution from list\i\3" [ showmenu [Display resolutions] ]
  23. menuitem "" -1
  24. menuitemslider "Graphics detail: " 1 6 "$gfxqualityalias" [Horrible Low Medium Good High "INSANE! (May perform slowly on older gfx)"] [ new_gfx_quality $arg1 ]
  25. menuitem "" -1
  26. menuitemslider "Field of view: " 75 120 "$fov" 2 [ fov $arg1 ] 1
  27. menuitemcheckbox "Fullscreen: " "$fullscreen" [ fullscreen $arg1 ]
  28. menuitemradio "Vsync: " -1 1 "$vsync" [Default Disabled Enabled] [ vsync $arg1 ]
  29. menuitem "" -1
  30. menuitemslider "Set temporary gamma for this map: " 30 300 "$gamma" 5 [ gamma $arg1 ]
  31. menuitemtextinput "Set default gamma for this map: " [$gamma] [setgamma $arg1]
  32. menuitemtextinput "Set default gamma for maps without own default: " [$defaultgamma] [ defaultgamma = $arg1 ]
  33. menuitem "" -1
  34. menuitem "Advanced video settings\i\3" [ showmenu [Advanced video settings] ]
  35. menuitem "" -1
  36. menuitem "\f2\t\t\t [ Apply now! ]" [ resetgl ]
  37. alias defaultgamma 100
  38. //// Main > Settings > Video > Display resolutions ////
  39. newmenu [Display resolutions]
  40. push __getar [
  41. push n (findlist [1250 1333 1777 1600] (div (* 1000 $arg1) $arg2))
  42. if (>= $n 0) [
  43. n = (at [5:4 4:3 16:9 16:10] $n)
  44. ][
  45. n = (at (concat (concatword "~16:" (div (+ (div (* 160 $arg2) $arg1) 5) 10))) ~5:4 ~4:3) (+ (findlist [125 133] (div (* 100 $arg1) $arg2)) 1))
  46. ]
  47. pop n
  48. ]
  49. push reslist (getdisplayresolutions)
  50. if (strlen $reslist) [
  51. menuitem "\f4Preferred resolutions:" -1
  52. looplist $reslist [w h] [
  53. menuitem (concatword (at ["" " "] (< $w 1000)) $w x $h "\t(" (__getar $w $h) ")") (concat scr_w $w ";" scr_h $h ";" closecurmenu)
  54. ]
  55. menuitem "" -1
  56. menuitem "\f4More resolutions:" -1
  57. ][
  58. reslist = "17001 17001"
  59. ]
  60. looplist [640 480 800 600 1024 768 1280 720 1280 800 1280 1024 1360 768 1366 768 1440 900 1600 900 1680 1050 1920 1080 1920 1200] [w h] [
  61. push d (&& (< $w (at $reslist 0)) (< $h (at $reslist 1)))
  62. looplist $reslist [rw rh] [
  63. if (&& (= $w $rw) (= $h $rh)) [d = 0]
  64. ]
  65. if (pop d) [
  66. menuitem (concatword (at ["" " "] (< $w 1000)) $w x $h "\t(" (__getar $w $h) ")") (concat scr_w $w ";" scr_h $h ";" closecurmenu)
  67. ]
  68. ]
  69. pop reslist __getar
  70. //// Main > Settings > Video > Advanced video settings ////
  71. newmenu [Advanced video settings]
  72. const __getshadowq [
  73. if (&& $stencilshadow (>= $stencilbits 8)) [result 2] [
  74. if $dynshadow [result 1] [result 0]
  75. ]
  76. ]
  77. const __setshadowq_0 [ stencilshadow 0 ; stencilbits 0 ; dynshadow 0 ] // Off
  78. const __setshadowq_1 [ stencilshadow 0 ; stencilbits 0 ; dynshadow 40 ] // Blob
  79. const __setshadowq_2 [ stencilshadow 40 ; stencilbits 8 ; dynshadow 40 ] // Stencil
  80. const __fsaa_valuemap [-1 0 2 4 8 16]
  81. const __aniso_valuemap [0 2 4 8 16]
  82. const __minlod_valuemap [60 100 200 250]
  83. const __watersubdiv_valuemap [16 8 4 2 1]
  84. menuitemslider [Scope FOV: ] 5 60 "$scopefov" 5 [ scopefov $arg1 ] 1
  85. menuitemslider [Antialiasing (FSAA): ] 0 5 "(findlist $__fsaa_valuemap $fsaa)" [Default Off 2 4 8 16] [ fsaa (at $__fsaa_valuemap $arg1) ]
  86. menuitemslider [Anisotropic filtering: ] 0 4 "(findlist $__aniso_valuemap $aniso)" [Off 2 4 8 16] [ aniso (at $__aniso_valuemap $arg1) ]
  87. menuitemslider [Minimal level of detail: ] 0 3 "(findlist $__minlod_valuemap $minlod)" [Low Decent Good Best] [ minlod (at $__minlod_valuemap $arg1) ]
  88. menuitemslider [Light error: ] 1 100 "$lighterror" 5 [ lighterror $arg1 ]
  89. menuitemslider [Water subdivision: ] 0 4 "(findlist $__watersubdiv_valuemap $watersubdiv)" ["Lowest quality" "Low quality" "Medium quality" "High quality" "Highest quality"] [ watersubdiv (at $__watersubdiv_valuemap $arg1) ]
  90. menuitemslider [Dynamic shadows: ] 0 2 __getshadowq [Off Blob Stencil] [ (concatword __setshadowq_ $arg1) ] 1
  91. menuitemslider [Tex-reduce: ] -1 3 "$texreduce" 1 [ texreduce $arg1 ]
  92. menuitemcheckbox [Water reflection: ] "$waterreflect" [ waterreflect $arg1 ]
  93. menuitemcheckbox [Dynamic lights: ] "$dynlight" [ dynlight $arg1 ]
  94. menuitemcheckbox [Bulletholes: ] "$bullethole" [ bullethole $arg1 ]
  95. menuitemcheckbox [Scorch: ] "$scorch" [ scorch $arg1 ]
  96. menuitemcheckbox "Ignore map override: Disable water reflection" "$ignoreoverride_nowaterreflect" [ ignoreoverride_nowaterreflect $arg1 ]
  97. menuitemcheckbox "Ignore map override: Limit water waveheight" "$ignoreoverride_limitwaveheight" [ ignoreoverride_limitwaveheight $arg1 ]
  98. menuitemcheckbox "Ignore map override: Disable stencil shadows" "$ignoreoverride_nostencilshadows" [ ignoreoverride_nostencilshadows $arg1 ]
  99. menuitem "" -1
  100. menuitem "FPS Range\i\3" [ showmenu [FPS Range] ]
  101. menuitem "" -1
  102. menuitem "\f2\t\t [ Apply now! ]" [ resetgl ]
  103. //// Main > Settings > Video > Advanced video settings > FPS Range ////
  104. newmenu [FPS Range]
  105. menuitem [My 486 0wnz y00 (8-10 FPS)] [ closecurmenu; fpsrange 8 10 ]
  106. menuitem [Slow machine (20-25 FPS)] [ closecurmenu; fpsrange 20 25 ]
  107. menuitem [Sensible default (30-40 FPS)] [ closecurmenu; fpsrange 30 40 ]
  108. menuitem [FPS whore (60-60 FPS)] [ closecurmenu; fpsrange 60 60 ]
  109. menuitem [I don't understand LOD (100+ FPS)] [ closecurmenu; fpsrange 100 1000 ]
  110. //// Main > Settings > HUD ////
  111. newmenu HUD
  112. alias wallclockformat "" // strftime formatting
  113. alias wallclockformatlist ["" %H:%M %H:%M:%S %I:%M%p %I:%M:%S%p U%H:%M U%H:%M:%S] //"U" at beginning means UTC/GMT time
  114. menuitem [Show:] -1
  115. menuitemcheckbox [ Gun ] "$hudgun" [ hudgun $arg1 ]
  116. menuitemcheckbox [ Team icon ] "(= $hideteam 0)" [ hideteam (= $arg1 0) ]
  117. menuitemcheckbox [ Icons ] "(= $hidehudequipment 0)" [ hidehudequipment (= $arg1 0) ]
  118. menuitemcheckbox [ Console ] "(= $hideconsole 0)" [ hideconsole (= $arg1 0) ]
  119. menuitemcheckbox [ Player names ] "$showtargetname" [ showtargetname $arg1 ]
  120. menuitemcheckbox [ Spectator info ] "(= $hidespecthud 0)" [ hidespecthud (= $arg1 0) ]
  121. menuitemcheckbox [ Quick messages ] "(= $hidehudmsgs 0)" [ hidehudmsgs (= $arg1 0) ]
  122. menuitemcheckbox [ Damage direction indicator ] "(= $hidedamageindicator 0)" [ hidedamageindicator (= $arg1 0) ]
  123. menuitemcheckbox [ Damage screen flash ] "$damagescreen" [ damagescreen $arg1 ]
  124. menuitemslider [ Damage maxroll: ] 0 (getvarrange max maxrolleffect) "$maxrolleffect" 1 [ maxrolleffect $arg1 ]
  125. menuitemcheckbox [ Team score counters ] "(= $hideteamscorehud 0)" [ hideteamscorehud (= $arg1 0) ]
  126. menuitemcheckbox [ KTF flag direction indicator ] "(! $hidektfindicator)" [ hidektfindicator (! $arg1) ]
  127. menuitemcheckbox [ Radar ] "(= $hideradar 0)" [ hideradar (= $arg1 0) ]
  128. menuitemslider [ Radar zoom: ] 5 500 [ $radarheight ] 5 [ radarheight $arg1 ] 1
  129. menuitemslider [ Votes: ] 0 2 "$hidevote" ["Always show" "Show until you vote" "Never show"] [ hidevote $arg1 ] 1
  130. menuitemradio [ Graphics statistics: ] 0 2 "$showstats" [None "FPS Only" All] [ showstats $arg1 ] 1
  131. menuitemslider [ Game time: ] 0 2 "$gametimedisplay" [None "Count backward" "Count forward"] [ gametimedisplay $arg1 ] 1
  132. menuitemslider [ Wall clock: ] 0 6 [findlist $wallclockformatlist $wallclockformat] [None "HH:MM (local, 24h)" "HH:MM:SS (local, 24h)" "HH:MM (local, 12h)" "HH:MM:SS (local, 12h)" "HH:MM (UTC/GMT)" "HH:MM:SS (UTC/GMT)"] [ alias wallclockformat (at $wallclockformatlist $arg1)] 1
  133. menuitemradio [ Hand alignment: ] 0 1 "$righthanded" [Left-handed Right-handed] [ righthanded $arg1 ] 1
  134. menuitemslider [ Max-roll: ] 0 (getvarrange max maxroll) "$maxroll" 1 [ maxroll $arg1 ]
  135. menuitemslider [ Spectator max-roll: ] 0 (getvarrange max maxrollremote) "$maxrollremote" 2 [ maxrollremote $arg1 ]
  136. //// Main > Settings > Console ////
  137. newmenu Console
  138. menuitem "\f4Regular console:" -1
  139. menuitemslider "Console size (lines): " 0 20 "$consize" 1 [ consize $arg1 ]
  140. menuitemslider "Console fade time (seconds until lines disappear): " 5 60 "$confade" 5 [ confade $arg1 ]
  141. menuitemslider "Console transparency: " 120 255 "$conalpha" 15 [ conalpha $arg1 ]
  142. menuitem "\f4Full consoles:" -1
  143. menuitemslider "Full console size (percent screen height): " 0 100 "$fullconsize" 5 [ fullconsize $arg1 ]
  144. menuitemslider "2nd full console size (percent screen height): " 0 100 "$altconsize" 5 [ altconsize $arg1 ]
  145. menuitem "\f4Keys:" -1
  146. menuitemkeyinput "Toggle (full-)console key: " key_toggleconsole
  147. menuitemkeyinput "Rewind console key: " key_console_rewind
  148. menuitemkeyinput "Forward console key: " key_console_forward
  149. menuitemkeyinput "End of console key: " key_console_end
  150. menuitemkeyinput "Scroll console key (+ mousewheel): " key_console_scroll
  151. menuitem "\f4Inlined console graphics settings:" -1
  152. menuitemslider (concatword "Igraph size (" (getigraph ")") "): ") 80 300 "$igraphsize" 5 [ igraphsize $arg1 ] 1
  153. menuitemslider "Igraph size for menu icons (\i\1): " 80 160 "$igraphsizehardcoded" 5 [ igraphsizehardcoded $arg1 ] 1
  154. menuitemcheckbox "Stop igraph animation: " "! $igraphanimate" [ igraphanimate (! $arg1) ]
  155. menuitemcheckbox "Disable igraphs: " "$hideigraphs" [ hideigraphs $arg1 ]
  156. //// Main > Settings > Gameplay ////
  157. newmenu "\fsGameplay"
  158. alias nickhighlight 0
  159. alias __gibsgore 1
  160. menuitemtextinput "Nickname: " "result $curname" [ name $arg1 ]
  161. menuitemslider "Player skins: " 0 2 "$teamdisplaymode" [Normal "Colored vests" "Full color"] [ teamdisplaymode $arg1 ] 1
  162. menuitemslider "Custom player skins: " 0 2 "$hidecustomskins" ["Always show" "Show in non-team modes" "Never show"] [ hidecustomskins $arg1 ] 1
  163. menuitem "" -1
  164. menuitemcheckbox "Reduced violence mode: " "$poniesmodeon" [ reducedviolencemode $arg1 ]
  165. menuitemslider "Gib gore: " 0 4 "$__gibsgore" [Off Normal Good Messy Unrealistic] [ gibsgore $arg1 ]
  166. menuitemslider "Name highlight color: " 0 9 "$nickhighlight" [ "\f0green \f5(default)" "\f1blue" "\f2yellow" "\f3red" "\f4gray" "white" "\f6dark brown" "\f7dark red" "\f8purple" "\f9orange" ] [ nickhighlight = $arg1; HIGHLIGHT = (concatword "\f" $nickhighlight) ]
  167. menuitemcheckbox "Show scores on death: " "$showscoresondeath" [ showscoresondeath $arg1 ]
  168. menuitem "Change to the enemy team" changeteam
  169. menuitem "Change weapon\i\3" [ showmenu Weapons ]
  170. menuitem "Change player skin\i\3" [ showmenu (at [CLA RVSF] (player1 team)) ]
  171. menuitem "Weapon settings\i\3" [ showmenu [Weapon Settings] ]
  172. menuitem "Edit kill messages\i\3" [ showmenu [Kill Messages] ]
  173. menuitem "Bot settings\i\3" [ showmenu [Bot settings] ]
  174. menuitem "" -1
  175. menuitemcheckbox "Use high-res player skins" "(>= (findlist (zipmodlist active) protox_hq_reskin) 0)" [ if $arg1 [addzipmod protox_hq_reskin; resetgl] [zipmodremove protox_hq_reskin; resetgl] ]
  176. //// Main > Settings > Gameplay > Weapons ////
  177. newmenu Weapons
  178. menuinit [ menuselection (curmenu) (findlist "assault subgun sniper shotgun carbine" $nextprimary) ]
  179. looplist [
  180. assault "MTP-57 Assault Rifle"
  181. subgun "A-ARD/10 Submachine Gun"
  182. sniper "Precision Tech AD-81 Sniper Rifle"
  183. shotgun "V-19 Combat Shotgun"
  184. carbine "TMP-M&A Carbine"
  185. ] [ w desc ] [execute (format [menuitem [%2] [nextprimary %1 ; echo %2 selected] [menumdl Weapons weapons/%1/menu mapmodel 75 12] ] $w $desc) ]
  186. //// Main > Settings > Gameplay > CLA ////
  187. newmenu CLA
  188. menuinit [ menuselection CLA (player1 skin_cla) ]
  189. menuitem [Comandante] [ skin_cla 0 ] [ menumdl CLA playermodels/CLA/01 all 50 4 ]
  190. menuitem [Psycho] [ skin_cla 1 ] [ menumdl CLA playermodels/CLA/02 all 50 4 ]
  191. menuitem [Bomber] [ skin_cla 2 ] [ menumdl CLA playermodels/CLA/03 all 50 4 ]
  192. menuitem [Ripper] [ skin_cla 3 ] [ menumdl CLA playermodels/CLA/04 all 50 4 ]
  193. //// Main > Settings > Gameplay > RVSF ////
  194. newmenu RVSF
  195. menuinit [menuselection RVSF (player1 skin_rvsf)]
  196. menuitem [Alpha] [ skin_rvsf 0 ] [ menumdl RVSF playermodels/RVSF/01 all 50 4 ]
  197. menuitem [Tango] [ skin_rvsf 1 ] [ menumdl RVSF playermodels/RVSF/02 all 50 4 ]
  198. menuitem [Cobra] [ skin_rvsf 2 ] [ menumdl RVSF playermodels/RVSF/03 all 50 4 ]
  199. menuitem [Viper] [ skin_rvsf 3 ] [ menumdl RVSF playermodels/RVSF/04 all 50 4 ]
  200. menuitem [Swat] [ skin_rvsf 4 ] [ menumdl RVSF playermodels/RVSF/05 all 50 4 ]
  201. menuitem [Police] [ skin_rvsf 5 ] [ menumdl RVSF playermodels/RVSF/06 all 50 4 ]
  202. //// Main > Settings > Gameplay > Weapon Settings ////
  203. newmenu [Weapon Settings]
  204. looplist [ subgun 3 assault 2 akimbo 2 ] [ g n ] [ alias (concatword __burstshots_ $g) $n ]
  205. menuitemslider [Play hit sounds: ] 0 2 "$hitsound" [Off "When server detects hits" "When client detects hits"] [ hitsound $arg1 ]
  206. menuitemcheckbox [Auto weapon reload: ] "$autoreload" [ autoreload $arg1 ]
  207. menuitemcheckbox [Auto switch to akimbo upon pickup: ] "$akimboautoswitch" [ akimboautoswitch $arg1 ]
  208. menuitemslider [Akimbo end action: ] 0 3 "$akimboendaction" ["Switch to knife" "Stay with pistol" "Switch to grenades" "Switch to primary"] [ akimboendaction $arg1 ] 1
  209. menuitemcheckbox [SMG - Full Auto?] "(= (burstshots SUBGUN -1) 0)" [ if (= $arg1 0) [ burstshots SUBGUN $__burstshots_subgun ] [ burstshots SUBGUN 0 ]; refreshcurmenu ]
  210. menuitemcheckbox [AR - Full Auto?] "(= (burstshots ASSAULT -1) 0)" [ if (= $arg1 0) [ burstshots ASSAULT $__burstshots_assault ] [ burstshots ASSAULT 0 ]; refreshcurmenu ]
  211. menuitemcheckbox [Akimbo - Full Auto?] "(= (burstshots AKIMBO -1) 0)" [ if (= $arg1 0) [ burstshots AKIMBO $__burstshots_akimbo ] [ burstshots AKIMBO 0 ]; refreshcurmenu ]
  212. menuitemslider [SMG - Shots per burst: ] 0 29 "$__burstshots_subgun" 1 [ burstshots SUBGUN $arg1; __burstshots_subgun = $arg1 ; refreshcurmenu ]
  213. menuitemslider [AR - Shots per burst: ] 0 19 "$__burstshots_assault" 1 [ burstshots ASSAULT $arg1; __burstshots_assault = $arg1 ; refreshcurmenu ]
  214. menuitemslider [Akimbo - Shots per burst: ] 0 19 "$__burstshots_akimbo" 1 [ burstshots AKIMBO $arg1; __burstshots_akimbo = $arg1 ; refreshcurmenu ]
  215. //// Main > Settings > Gameplay > Kill Messages ////
  216. newmenu [Kill Messages]
  217. menuitem "\f9Frag messages: " -1
  218. menuitemtextinput "Pistol: " [ fragmessage PISTOL ] [ fragmessage PISTOL $arg1 ] [] 15
  219. menuitemtextinput "Carbine: " [ fragmessage CARBINE ] [ fragmessage CARBINE $arg1 ] [] 15
  220. menuitemtextinput "Shotgun: " [ fragmessage SHOTGUN ] [ fragmessage SHOTGUN $arg1 ] [] 15
  221. menuitemtextinput "SMG: " [ fragmessage SUBGUN ] [ fragmessage SUBGUN $arg1 ] [] 15
  222. menuitemtextinput "Sniper: " [ fragmessage SNIPER ] [ fragmessage SNIPER $arg1 ] [] 15
  223. menuitemtextinput "AR: " [ fragmessage ASSAULT ] [ fragmessage ASSAULT $arg1 ] [] 15
  224. menuitemtextinput "Akimbo: " [ fragmessage AKIMBO ] [ fragmessage AKIMBO $arg1 ] [] 15
  225. menuitem "" -1
  226. menuitem "\f9Gib messages: " -1
  227. menuitemtextinput "Knife: " [ gibmessage KNIFE ] [ gibmessage KNIFE $arg1 ] [] 15
  228. menuitemtextinput "Shotgun: " [ gibmessage SHOTGUN ] [ gibmessage SHOTGUN $arg1 ] [] 15
  229. menuitemtextinput "Sniper: " [ gibmessage SNIPER ] [ gibmessage SNIPER $arg1 ] [] 15
  230. menuitemtextinput "Grenades: " [ gibmessage GRENADE ] [ gibmessage GRENADE $arg1 ] [] 15
  231. //// Main > Settings > Gameplay > Bot settings ////
  232. // see menus_bot.cfg
  233. //// Main > Settings > Scoreboard ////
  234. newmenu Scoreboard
  235. const __DEFAULT_SCOREBOARD [
  236. sc_flags Flags
  237. sc_frags Frags
  238. sc_deaths Deaths
  239. sc_ratio Ratio
  240. sc_score Score
  241. sc_lag Lag
  242. sc_clientnum "Client number"
  243. sc_name Name
  244. ]
  245. menuitem "\f40 has the highest priority" -1
  246. menuitem "\f4-1 disables the item entirely" -1
  247. menuitem "" -1
  248. looplist $__DEFAULT_SCOREBOARD [ var desc ] [
  249. menuitemslider (concatword $desc ": ") (getvarrange min $var) 7 (concatword "$" $var) 1 (concat $var "$arg1")
  250. ]
  251. menuitem "" -1
  252. menuitem "Reset to default scoreboard" [ looplist $__DEFAULT_SCOREBOARD [ var desc ] [ $var (getvarrange default $var) ] ; refreshcurmenudelayed ]
  253. //// Main > Settings > Keyboard ////
  254. newmenu Keyboard
  255. menuitem "General keys\i\3" [ showmenu [General keys] ]
  256. menuitem "Edit mode keys\i\3" [ showmenu [Editing keys] ]
  257. menuitem "Spectate mode keys\i\3" [ showmenu [Spectating keys] ]
  258. menuitem "" -1
  259. menuitem "Reset all keybinds to default settings\i\3" [ showmenu [Reset Binds] ]
  260. //// Main > Settings > Keyboard > General keys ////
  261. newmenu [General keys]
  262. menuitem [Select an action and press ENTER to bind a new key:] -1
  263. menuitem "" -1
  264. menuitem "\f2Movement:" -1
  265. menuitemkeyinput [Forwards: ] forward
  266. menuitemkeyinput [Left: ] left
  267. menuitemkeyinput [Backwards: ] backward
  268. menuitemkeyinput [Right: ] right
  269. menuitemkeyinput [Jump: ] jump
  270. menuitemkeyinput [Crouch: ] crouch
  271. menuitem "" -1
  272. menuitem "\f2Weapon:" -1
  273. menuitemkeyinput [Attack: ] attack
  274. menuitemkeyinput [Special action: ] altaction
  275. menuitemkeyinput [Knife attack: ] key_knifeattack
  276. menuitemkeyinput [Quick grenade throw: ] quicknadethrow
  277. menuitemkeyinput [Reload: ] reload
  278. menuitemkeyinput [Weapon menu: ] key_showmenuweapons
  279. menuitemkeyinput [Primary weapon: ] primary
  280. menuitemkeyinput [Secondary weapon: ] secondary
  281. menuitemkeyinput [Grenades: ] grenades
  282. menuitemkeyinput [Knife: ] melee
  283. menuitemkeyinput [Next weapon: ] key_universaldelta_plus
  284. menuitemkeyinput [Previous weapon: ] key_universaldelta_minus
  285. menuitemkeyinput [Last weapon: ] key_prevweapon
  286. menuitem "" -1
  287. menuitem "\f2Gameplay:" -1
  288. menuitemkeyinput [Show scores: ] key_showscores
  289. menuitemkeyinput [Map overview: ] key_showmap
  290. menuitemkeyinput [Drop flag: ] dropflag
  291. menuitemkeyinput [Chat: ] saycommand
  292. menuitemkeyinput [Team chat: ] key_teamchat
  293. menuitemkeyinput [Quick answer to private message: ] quickanswer
  294. menuitemkeyinput [Voice menu: ] key_showmenuvoicecom
  295. menuitem "" -1
  296. menuitem "\f2Console:" -1
  297. menuitemkeyinput [Toggle console: ] key_toggleconsole
  298. menuitemkeyinput [Rewind console: ] key_console_rewind
  299. menuitemkeyinput [Forward console: ] key_console_forward
  300. menuitemkeyinput [End of console: ] key_console_end
  301. menuitem "" -1
  302. menuitem "\f2Mousewheel actions (need holding the key):" -1
  303. menuitemkeyinput [Scroll console: ] key_console_scroll
  304. menuitemkeyinput [Adjust gamma: ] key_domodifier_1
  305. menuitemkeyinput [Adjust FOV: ] key_domodifier_2
  306. menuitem "" -1
  307. menuitem "\f2Misc keys:" -1
  308. menuitemkeyinput [Commandline: ] key_commandline
  309. menuitemkeyinput [Screenshot: ] screenshot
  310. menuitemkeyinput [Fullscreen: ] fullscreentoggle
  311. menuitemkeyinput [Enter edit mode: ] edittoggle
  312. menuitemkeyinput [Pause game: ] key_pause
  313. menuitem "" -1
  314. menuitemtextinput [Lookup a keybind: ] [] [
  315. if (strlen $arg1) [
  316. echo (concatword "\f9Contents of keybind " (addpunct $arg1) :)
  317. if (strcmp (result (keybind $arg1)) "") [
  318. echo (addpunct $arg1) is not bound
  319. ][
  320. echo (keybind $arg1)
  321. ]
  322. ]
  323. ] [] 256
  324. menuitem "" -1
  325. //// Main > Settings > Keyboard > Editing keys ////
  326. // see menus_edit.cfg
  327. //// Main > Settings > Keyboard > Spectating keys ////
  328. newmenu [Spectating keys]
  329. menuitem "Select an action and press ENTER to bind a new key:" -1
  330. menuitem "" -1
  331. menuitem "\f2Demo watching:" -1
  332. menuitemspectkeyinput [Toggle game speed: ] speckey_demo_togglespeed
  333. menuitemspectkeyinput [Increase game speed: ] speckey_demo_gamespeedup
  334. menuitemspectkeyinput [Decrease game speed: ] speckey_demo_gamespeeddown
  335. menuitemspectkeyinput [Reset game speed: ] speckey_demo_gamespeedreset
  336. menuitem "" -1
  337. menuitem "\f2Misc spectating keys:" -1
  338. menuitemspectkeyinput [Whois spectated player: ] speckey_whois_spectatecn
  339. menuitem "" -1
  340. menuitemtextinput [Lookup a keyspecbind: ] [] [
  341. if (strlen $arg1) [
  342. echo (concatword "\f9Contents of keyspecbind " (addpunct $arg1) :)
  343. if (strcmp (result (keyspecbind $arg1)) "") [
  344. echo (addpunct $arg1) is not bound
  345. ][
  346. echo (keyspecbind $arg1)
  347. ]
  348. ]
  349. ] [] 256
  350. menuitem "" -1
  351. //// Main > Settings > Keyboard > Reset Binds ////
  352. newmenu [Reset Binds]
  353. menuitemcheckbox [Yes, reset all binds: ] [ tempalias __resetbindsyes 0 ] [ __resetbindsyes = $arg1 ]
  354. menuitem "\f2 [ Apply! ] " [ if $__resetbindsyes resetbinds [ showmenu [] ] ]
  355. //// Main > Settings > Mouse ////
  356. newmenu Mouse
  357. menuinit [
  358. resetcurmenu
  359. menuitemcheckbox "Invert mouse:" "$invmouse" [ invmouse $arg1 ]
  360. menuitemtextinput "Mouse Sensitivity:" "$sensitivity" [ sensitivity $arg1 ]
  361. menuitemtextinput "Mouse Acceleration:" "$mouseaccel" [ mouseaccel $arg1 ]
  362. menuitemtextinput "Filter mouse (for bad ones):" "$mfilter" [ mfilter $arg1 ]
  363. menuitem "" -1
  364. menuitemradio "Sniper-scope sensitivity: " 0 1 "$autoscopesens" [manual automatic] [ autoscopesens $arg1 ; refreshcurmenu]
  365. if $autoscopesens [
  366. menuitem [@"\f4Sniper-scope sensitivity scale: \n\f4"@scopesensscale] -1
  367. ][
  368. menuitemtextinput "Sniper-scope sensitivity scale: " "$scopesensscale" [ scopesensscale $arg1 ]
  369. ]
  370. menuitem "" -1
  371. menuitem "Customize crosshairs\i\3" [ showmenu [Customize crosshairs] ]
  372. ]
  373. //// Main > Settings > Mouse > Customize crosshairs ////
  374. newmenu [Customize crosshairs]
  375. tempalias __crosshairset teammate
  376. menuinit [
  377. resetcurmenu
  378. menuitemslider "Crosshair size: " 0 50 "$crosshairsize" 5 [ crosshairsize $arg1 ]
  379. menuitem "Change default crosshair\i\3" [ tempalias __crosshairset default ; showmenu Crosshairs ]
  380. menuitem "Change scope crosshair\i\3" [ tempalias __crosshairset scope ; showmenu Crosshairs ]
  381. menuitem "" -1
  382. menuitemslider "Choose crosshair: " 0 -1 [findlist (listoptions crosshairnames) $__crosshairset] (listoptions crosshairnames) [ tempalias __crosshairset (at (listoptions crosshairnames) $arg1) ; refreshcurmenu ]
  383. menuitem (concat "Change" $__crosshairset "crosshair\i\3") [ showmenu Crosshairs ]
  384. menuitem "" -1
  385. menuitemcheckbox "Crosshair effect: change color for low health" [ (at "0 1 1 0" $crosshairfx) ] [ crosshairfx (at (if $arg1 ["2 1 2 1"] ["0 3 0 3"]) $crosshairfx) ]
  386. menuitemcheckbox "Crosshair effect: show assault rifle spread increase" [ (at "0 1 0 1" $crosshairfx) ] [ crosshairfx (at (if $arg1 ["3 1 1 3"] ["0 2 2 0"]) $crosshairfx) ]
  387. menuitemcheckbox "Crosshair effect: show team-sign when aiming at teammates " "$crosshairteamsign" [ crosshairteamsign $arg1 ]
  388. menuitem "" -1
  389. menuitem "Reset all crosshairs to defaults" [ loadcrosshair reset ]
  390. ]
  391. //// Main > Settings > Mouse > Customize crosshairs > Crosshairs ////
  392. newmenu Crosshairs
  393. menuinit [
  394. resetcurmenu
  395. menuheader "" ['@[__crosshairset]' crosshair]
  396. menudirlist "packages/crosshairs" png [ loadcrosshair @__crosshairset [@[arg1].png] ] 1
  397. ]
  398. //// Main > Settings > Sound ////
  399. newmenu "\fsSound"
  400. alias __soundquality 3
  401. menuitemslider "Sound volume: " 0 255 "$soundvol" 16 [ soundvol $arg1 ]
  402. menuitemslider "Music volume: " 0 255 "$musicvol" 16 [ musicvol $arg1 ]
  403. menuitemslider "Sound detail: " 1 3 "($__soundquality)" [Low Medium High] [ __set_sound_quality $arg1 ]
  404. menuitem "" -1
  405. menuitem "Mute/Un-mute specific sounds\i\3" [ showmenu [Mute specific sounds] ]
  406. menuitem "" -1
  407. menuitem "Advanced settings:" -1
  408. menuitemslider " Sounds at once: " 0 100 "$maxsoundsatonce" 2 [ maxsoundsatonce $arg1 ]
  409. menuitemslider " Voice-coms: " 0 2 "$voicecomsounds" [Off On "Team only"] [ voicecomsounds $arg1 ]
  410. menuitemslider " Heartbeat: " 0 99 "$heartbeat" 5 [ heartbeat $arg1 ]
  411. menuitemcheckbox " Footsteps: " "$footsteps" [ footsteps $arg1 ]
  412. menuitemcheckbox " Disable own footsteps: " "(= $localfootsteps)" [ localfootsteps (! $arg1) ]
  413. menuitemcheckbox " Bullet hit: " "$bulletbouncesound" [ bulletbouncesound $arg1 ]
  414. menuitemcheckbox " Bullet near-miss: " "$bulletairsound" [ bulletairsound $arg1 ]
  415. //// Main > Settings > Sound > Mute specific sounds ////
  416. newmenu [Mute specific sounds]
  417. menuitem "Weapon sounds\i\3" [ showmenu [Mute weapon sounds] ]
  418. menuitem "Bullet/explosion sounds\i\3" [ showmenu [Mute bullet/explosion sounds] ]
  419. menuitem "Pain/death sounds\i\3" [ showmenu [Mute pain/death sounds] ]
  420. menuitem "Pickup sounds\i\3" [ showmenu [Mute pickup sounds] ]
  421. menuitem "Movement sounds\i\3" [ showmenu [Mute movement sounds] ]
  422. menuitem "Voice-com sounds\i\3" [ showmenu [Mute voice-coms] ]
  423. menuitem "Other sounds\i\3" [ showmenu [Mute other sounds] ]
  424. menuitem "" -1
  425. menuitem "Un-mute all sounds" [ unmuteallsounds ]
  426. looplist [
  427. "Mute weapon sounds" WEAPON
  428. "Mute pickup sounds" PICKUP
  429. "Mute pain/death sounds" "PAIN OWNPAIN"
  430. "Mute movement sounds" MOVEMENT
  431. "Mute bullet/explosion sounds" BULLET
  432. "Mute other sounds" OTHER
  433. "Mute voice-coms" VOICECOM
  434. ] [ mt sc ] [
  435. newmenu $mt
  436. looplist (enumsounds $sc) [ idx desc ] [ menuitemcheckbox (concatword $desc ": ") (concat ! "(soundmuted" $idx ")") (concat mutesound $idx "$arg1") ]
  437. ]
  438. //// Main > Settings > Misc ////
  439. newmenu Misc
  440. alias askquit 1
  441. alias showmenuonstartup 1
  442. alias menufilesort_cgz 0
  443. alias menufilesort_dmo 0
  444. tempalias __fontlist [ default serif mono ]
  445. tempalias __screenshottypes ["JPEG (Terrible Quality)" "JPEG (Bad Quality)" "JPEG (Good Quality)" "JPEG (Best Quality)" "PNG (Lossless)" "BMP (Lossless)"]
  446. tempalias __getscreenshottype [
  447. tempalias __screenshottype (at "5 0 4" $screenshottype) // 0:BMP 1:JPG 2:PNG
  448. if (= $screenshottype 1) [
  449. looplist [50 70 85] q [ if (< $q $jpegquality) [ += __screenshottype 1 ] ]
  450. ]
  451. result $__screenshottype
  452. ]
  453. menuitemcheckbox "Auto map download: " "$autogetmap" [ autogetmap $arg1 ]
  454. menuitem "Configure auto media download \i\1" [ showmenu "Autodownload config"]
  455. menuitemradio "Show gamemode names " 0 1 "$modeacronyms" [ verbal abbreviated ] [ modeacronyms $arg1 ]
  456. menuitemcheckbox "Show quit dialog when quitting: " "$askquit" [ askquit = $arg1 ]
  457. menuitemcheckbox "Show main menu when starting AC: " "$showmenuonstartup" [ showmenuonstartup = $arg1 ]
  458. menuitemcheckbox "Auto-screenshot: " "$autoscreenshot" [ autoscreenshot $arg1 ]
  459. menuitemcheckbox "Allow HUD echos: " "$allowhudechos" [ allowhudechos $arg1 ]
  460. menuitemslider "Servers to ping at once: " 0 50 "$maxservpings" 5 [ maxservpings $arg1 ]
  461. menuitemslider "Milliseconds between pinging servers: " 1000 60000 "$servpingrate" 1000 [ servpingrate $arg1 ]
  462. menuitemslider "Screenshot type: " 0 5 __getscreenshottype $__screenshottypes [ screenshottype (at "1 1 1 1 2 0" $arg1) ; if (< $arg1 4) [ jpegquality (at [50 70 85 100] $arg1) ] ]
  463. menuitemslider "Font type: " 0 2 [findlist $__fontlist (curfont)] [Default Serif Monospace] [ setfont (at $__fontlist $arg1) ]
  464. menuitemslider "Mini-map background style: " 0 2 "$showmapbackdrop" ["Fully Transparent" Black White/Transparent] [ showmapbackdrop $arg1 ]
  465. menuitemslider "Menu map file sort order: " 0 -1 "$menufilesort_cgz" (listoptions menufilesortorders) [menufilesort_cgz = $arg1]
  466. menuitemslider "Menu demo file sort order: " 0 -1 "$menufilesort_dmo" (listoptions menufilesortorders) [menufilesort_dmo = $arg1]
  467. menuitem "Edit hook script \i\1" [ showmenu "Edit cubescript hook" ]
  468. menuitemcheckbox "Show command reference/documentation for console input: " "$docvisible" [ docvisible $arg1 ]
  469. menuitemcheckbox "Show related commands: " "$docrefvisible" [ docrefvisible $arg1 ]
  470. menuitemradio "Show docs detail: " 0 3 "$docidentverbose" [ default +ident verbose/debug +always] [ docidentverbose $arg1 ]
  471. //// Main > Settings > Misc > Autodownload config ////
  472. newmenu "Autodownload config"
  473. tempalias __pcksrv ""
  474. menuinit [
  475. resetcurmenu
  476. push serverlist (getpckserver)
  477. push words (listlen $serverlist)
  478. if (! $words) [
  479. menuitem "no package servers configured" -1
  480. ] [
  481. if (= $words 1) [
  482. menuitem $serverlist -1
  483. ] [
  484. menuitem "\f2priority\tping\tstatus\thost address" -1
  485. looplist $serverlist [host priority ping resolved] [
  486. resolved = (at ["\f2no response" "\f0ok"] $resolved)
  487. if (<= $priority -1000) [ resolved = "\f2disabled" ]
  488. if (<= $priority -10000) [ resolved = "\f3deleted" ]
  489. menuitem (concatword (if (<= $priority -1000) "" $priority) "\t" $ping "\t\fs" $resolved "\fr\t" $host) (concat alias __pcksrv "[" (escape $host) $priority $ping (escape $resolved) "] ; showmenu [Configure package server]")
  490. ]
  491. ]
  492. ]
  493. menuitem "" -1
  494. menuitemcheckbox "Enable auto media download: " "$autodownload" [ autodownload $arg1 ]
  495. menuitem "Add package server -->" [ inputcommand "" "addpckserver $cmdbuf" "enter host address:" ]
  496. menuitem "" -1
  497. menuitem "\f4you need to restart the game for changes to take effect" -1
  498. pop serverlist words
  499. ]
  500. //// Main > Settings > Misc > Autodownload config > Configure package server ////
  501. newmenu "Configure package server"
  502. menuinit [
  503. resetcurmenu
  504. if (!= (listlen $__pcksrv) 4) [
  505. menuitem "----- no server selected ------" -1
  506. ] [
  507. push priority (at $__pcksrv 1)
  508. menuitem (concatword "Host address \t\f2" (at $__pcksrv 0)) -1
  509. menuitemtextinput "Priority \t" $priority [addpckserver (at $__pcksrv 0) $arg1]
  510. menuitem (concatword "Ping \t" (at $__pcksrv 2)) -1
  511. menuitem (concatword "Status \t" (at $__pcksrv 3)) -1
  512. menuitem "" -1
  513. if (<= $priority -1000) [
  514. menuitem "\f0[Enable server]" (concat addpckserver (at $__pcksrv 0) 0 "; closecurmenu")
  515. ] [
  516. menuitem "\f3[Disable server]" (concat addpckserver (at $__pcksrv 0) -1000 "; closecurmenu")
  517. ]
  518. if (> $priority -10000) [
  519. menuitem "\f3[Mark server for deletion]" (concat addpckserver (at $__pcksrv 0) -10000 "; closecurmenu")
  520. ]
  521. pop priority
  522. ]
  523. ]
  524. //// Main > Settings > Misc > Edit cubescript hook ////
  525. newmenu "Edit cubescript hook"
  526. menuinit [
  527. resetcurmenu
  528. looplist [
  529. autoexec "after autoexec.cfg"
  530. afterinit "after saved.cfg but before autoexec.cfg"
  531. mapstartalways "when a map was loaded"
  532. onLastMin "when the last minute of a game has started"
  533. start_intermission "when a game ended"
  534. onNewMap "when a new (empty) map was created"
  535. onPM "when you got a private message"
  536. onConnect "after a player connected"
  537. onDisconnect "after a player disconnected"
  538. onCallVote "when a vote was called"
  539. onVoteEnd "after voting ended"
  540. onChangeVote "when a vote is changed"
  541. updateeditinfopanel "during editing"
  542. ] [ cmd desc ] [
  543. menuitem (concatword "\fs\f2" $cmd ":\fr gets executed " $desc) (concat editalias $cmd) "" (if (checkalias $cmd) [ concatword "\fs\f4current: \fr" $$cmd ])
  544. ]
  545. ]
  546. //// Main > Settings > Mod package ////
  547. newmenu "Mod package"
  548. tempalias __zip ""
  549. menuinit [
  550. resetcurmenu
  551. menurenderoffset -20 0
  552. push ecurmenu (escape (curmenu))
  553. push activezips (zipmodlist active)
  554. push inactivezips (zipmodlist inactive)
  555. if (strlen $activezips) [
  556. menuitem "\f2Currently used mod packages (highest priority listed first)" -1 (concat chmenutexture $ecurmenu "")
  557. looplist $activezips zip [
  558. menuitem (concatword "\fs\f9" $zip ":\fr " (at (zipmodgetdesc $zip) 0)) (concat alias __zip $zip "; showmenu [Configure mod package]") (concatword chmenutexture " " $ecurmenu "../modpreviews/" $zip ".jpg " $zip)
  559. ]
  560. menuitem "" -1 (concat chmenutexture $ecurmenu "")
  561. ]
  562. if (strlen $inactivezips) [
  563. menuitem "\f2Unused mod packages" -1 (concat chmenutexture $ecurmenu "")
  564. looplist $inactivezips zip [
  565. menuitem (concatword "\fs\f9" $zip ":\fr " (at (zipmodgetdesc $zip) 0)) (concat alias __zip $zip "; showmenu [Configure mod package]") (concatword chmenutexture " " $ecurmenu "../modpreviews/" $zip ".jpg " $zip)
  566. ]
  567. menuitem "" -1 (concat chmenutexture $ecurmenu "")
  568. ]
  569. if (|| (strlen $activezips) (strlen $inactivezips)) [ ] [ menuitem "--- no mod packages available ---" -1 ]
  570. if (strlen $activezips) [ menuitem "\f3Deactivate all mod packages" zipmodclear ]
  571. menuitem "\f3Refresh textures (has no effect on already loaded models)" [ resetgl ; updateigraphs ]
  572. pop activezips inactivezips ecurmenu
  573. ]
  574. //// Main > Settings > Mod package > Configure mod package ////
  575. newmenu "Configure mod package"
  576. menuinit [
  577. resetcurmenu
  578. menurenderoffset -20 0
  579. push ecurmenu (escape (curmenu))
  580. push activezips (zipmodlist active)
  581. if (strlen $__zip) [
  582. chmenutexture (curmenu) (concatword "../modpreviews/" $__zip ".jpg") $__zip
  583. push __c "\f2"
  584. looplist (zipmodgetdesc $__zip) desc [ if (strlen $desc) [ menuitem (concat $__c $desc) -1 ] ; alias __c "" ]
  585. pop __c
  586. menuitem (concat "\f4revision:" (zipmodgetrevision $__zip)) -1
  587. menuitem "" -1
  588. if (< (findlist $activezips $__zip) 0) [
  589. menuitem (concatword "\f0Add \f9" $__zip "\f0 to the list of used mod packages") (concat addzipmod $__zip)
  590. ] [
  591. menuitem (concatword "\f3Remove \f9" $__zip "\f0 from the list of used mod packages") (concat zipmodremove $__zip)
  592. ]
  593. menuitem "" -1
  594. menuitem "Show list of files in package" "showmenu [Show files in package]"
  595. ] [
  596. menuitem "no zip selected" -1
  597. ]
  598. pop activezips ecurmenu
  599. ]
  600. //// Main > Settings > Mod package > Configure mod package > Show files in package ////
  601. newmenu "Show files in package"
  602. menuinit [
  603. resetcurmenu
  604. if (strlen $__zip) [
  605. menuitem (concat "Files in package\f9" $__zip) -1
  606. menuitem "" -1
  607. looplist (zipmodgetfiles $__zip) aa [ menuitem $aa -1 ]
  608. ] [
  609. menuitem "no zip selected" -1
  610. ]
  611. ]
  612. //// Main > Settings > Reset settings ////
  613. newmenu [Reset settings]
  614. menuinit [ tempalias __resetyes 0 ]
  615. menuitemcheckbox "Yes, reset all settings: " [ $__resetyes ] [ __resetyes = $arg1 ]
  616. menuitem "\f2 [ Apply! ] " [ if $__resetyes [ resetcfg 1; quit ] [ showmenu [] ] ] [ if $__resetyes [ echo "\f3Choose [Apply] and AssaultCube will now quit and your settings will be reset." ] ]
  617. //// QUICK setup ////
  618. newmenu [QUICK setup]
  619. menuitemtextinput "Nickname: " [] [ name $arg1 ]
  620. menuitemcheckbox "Use high-res player skins" "(>= (findlist (zipmodlist active) protox_hq_reskin) 0)" [ if $arg1 [addzipmod protox_hq_reskin] [zipmodremove protox_hq_reskin] ]
  621. menuitemtextinput "Resolution (width): " "$scr_w" [ scr_w $arg1 ]
  622. menuitemtextinput "Resolution (height): " "$scr_h" [ scr_h $arg1 ]
  623. if (&& $desktopw $desktoph) [
  624. menuitem (concatword "\f2Set\f5 resolution as in desktop (" $desktopw "x" $desktoph ")") [ scr_w $desktopw ; scr_h $desktoph ; refreshcurmenudelayed ]
  625. ]
  626. menuitemcheckbox "Fullscreen: " "$fullscreen" [ fullscreen $arg1 ]
  627. menuitemtextinput "Mouse sensitivity: " "$sensitivity" [ sensitivity $arg1 ]
  628. menuitemcheckbox "Reduced violence mode: " "$poniesmodeon" [ reducedviolencemode $arg1 ]
  629. menuitemslider "Graphics detail: " 1 6 "$gfxqualityalias" [Horrible Low Medium Good High "INSANE! (May perform slowly on older gfx)"] [ new_gfx_quality $arg1 ]
  630. menuitemslider "Sound detail: " 1 3 "$__soundquality" [Low Medium High] [ __set_sound_quality $arg1 ]
  631. menuitemslider "Field of view: " 75 120 "$fov" 2 [ fov $arg1 ] 1
  632. menuitem "" -1
  633. menuitem "\f0\t\t\t [ OK; View FAQ ]" [ closecurmenu; resetgl; load_faq ; showmenu faq ]
  634. menuitem "\f2\t\t\t [ OK ]" [ closecurmenu; resetgl ]
  635. const new_gfx_quality [
  636. if (= $arg1 6) [ // "INSANE!" gfx quality
  637. fsaa 8
  638. aniso 8
  639. minlod 250
  640. gfxqualityalias = 6
  641. fpsrange 100 1000
  642. watersubdiv 1
  643. dynlight 1
  644. waterreflect 1
  645. stencilbits 8
  646. stencilshadow 40
  647. dynshadow 40
  648. lighterror 1
  649. scorch 1
  650. bullethole 1
  651. blood 1
  652. gib 1
  653. shotline 1
  654. echo Be mighty careful! This setting puts any & every graphics setting as high as absolutely possible!
  655. trilinear 1
  656. waterrefract 1
  657. texreduce 0
  658. hidebigmenuimages 0
  659. ] [
  660. if (= $arg1 5) [ // High gfx quality
  661. fsaa 4
  662. aniso 4
  663. minlod 200
  664. gfxqualityalias = 5
  665. fpsrange 100 1000
  666. watersubdiv 2
  667. dynlight 1
  668. waterreflect 1
  669. stencilbits 8
  670. stencilshadow 40
  671. dynshadow 40
  672. lighterror 1
  673. scorch 1
  674. bullethole 1
  675. blood 1
  676. gib 1
  677. shotline 1
  678. trilinear 1
  679. waterrefract 0
  680. texreduce 0
  681. hidebigmenuimages 0
  682. ] [
  683. if (= $arg1 4) [ // Good gfx quality
  684. fsaa 0
  685. aniso 0
  686. minlod 100
  687. gfxqualityalias = 4
  688. fpsrange 60 60
  689. watersubdiv 2
  690. dynlight 1
  691. waterreflect 1
  692. stencilbits 8
  693. stencilshadow 40
  694. dynshadow 40
  695. lighterror 4
  696. scorch 1
  697. bullethole 1
  698. blood 1
  699. gib 1
  700. shotline 1
  701. trilinear 1
  702. waterrefract 0
  703. texreduce 0
  704. hidebigmenuimages 0
  705. ] [
  706. if (= $arg1 3) [ // Medium gfx quality (DEFAULT)
  707. fsaa 0
  708. aniso 0
  709. minlod 60
  710. gfxqualityalias = 3
  711. fpsrange 30 40
  712. watersubdiv 4
  713. dynlight 1
  714. // Makes sure the 3D card is powerful enough for water reflection/shadow stencils...
  715. if (glext "GL_ARB_fragment_program") [ waterreflect 1 ] [ waterreflect 0 ]
  716. if (|| (glext "GL_EXT_stencil_two_side") (glext "GL_ATI_separate_stencil")) [
  717. stencilbits 8
  718. stencilshadow 40
  719. ] [
  720. stencilbits 0
  721. stencilshadow 0 ]
  722. dynshadow 40
  723. lighterror 4
  724. scorch 1
  725. bullethole 1
  726. blood 1
  727. gib 1
  728. shotline 1
  729. trilinear 1
  730. waterrefract 0
  731. texreduce 0
  732. hidebigmenuimages 0
  733. ] [
  734. if (= $arg1 2) [ // Low gfx quality
  735. fsaa 0
  736. aniso 0
  737. minlod 60
  738. gfxqualityalias = 2
  739. fpsrange 20 25
  740. watersubdiv 16
  741. dynlight 0
  742. waterreflect 0
  743. stencilshadow 0
  744. stencilbits 0
  745. dynshadow 0
  746. lighterror 10
  747. scorch 0
  748. bullethole 0
  749. blood 0
  750. gib 0
  751. shotline 0
  752. trilinear 1
  753. waterrefract 0
  754. texreduce 1
  755. hidebigmenuimages 1
  756. ] [ // Horrible gfx quality
  757. fsaa 0
  758. aniso 0
  759. minlod 60
  760. gfxqualityalias = 1
  761. fpsrange 20 25
  762. watersubdiv 64
  763. dynlight 0
  764. waterreflect 0
  765. stencilshadow 0
  766. stencilbits 0
  767. dynshadow 0
  768. lighterror 16
  769. scorch 0
  770. bullethole 0
  771. blood 0
  772. gib 0
  773. if (> $gibnum (getvarrange default gibnum)) [gibnum (getvarrange default gibnum)]
  774. shotline 0
  775. trilinear 0
  776. waterrefract 0
  777. texreduce -1
  778. hidebigmenuimages 1
  779. ]
  780. ]
  781. ]
  782. ]
  783. ]
  784. ]
  785. const __set_sound_quality [
  786. looplist [
  787. 3 (getvarrange default maxsoundsatonce) 1 1 1
  788. 2 (div (getvarrange default maxsoundsatonce) 2) 1 0 1
  789. 1 (div (getvarrange default maxsoundsatonce) 4) 0 0 0
  790. ] [ idx maxsounds foots bullair bullbounce ] [
  791. if (= $arg1 $idx) [
  792. __soundquality = $idx
  793. maxsoundsatonce $maxsounds
  794. footsteps $foots
  795. bulletairsound $bullair
  796. bulletbouncesound $bullbounce
  797. ]
  798. ]
  799. ]
  800. // Reduced game violence mode...
  801. alias poniesmodeon 0
  802. const reducedviolencemode [
  803. push x (! $arg1)
  804. poniesmodeon = (! $x)
  805. blood $x
  806. gib $x
  807. looplist (enumsounds PAIN) [i d] [ mutesound $i $x ] // (Un-) Mute pain sounds: 26 to 33 and 48
  808. echo "\f2OMG! \f8PW\f1NI\f3ES\f5! mode" (if $x [result "has been disabled."] [result "enabled - Violent game content has now been reduced."])
  809. pop x
  810. ]
  811. // game account management menus
  812. newmenu "enter password"
  813. menuitemtextinput "please enter the password for your game account\t" "" [ echo "checking..." ; authsetup passd $arg1 checkaccount ] [] 64 1
  814. newmenu "offer account"
  815. menuitem "To create a game account, AC needs some entropy. To generate" -1
  816. menuitem "that, you need to play against bots for 10 minutes first..." -1
  817. menuitem "" -1
  818. menuitem "\t\t\f0[Start]" [tmp_mode = 8; tmp_isbotteammode = 0; tmp_numbots = (+ 7 (rnd 4)) ; tmp_botmap = (at "ac_scaffold ac_desert2 ac_complex" (rnd 3)); sleep 605000 __createaccount 1 ; startbotmap]
  819. menuitem "\t\t[Not now...]" closemenu
  820. tempalias __createaccount [
  821. disconnect
  822. kickallbots
  823. showmenu "create account"
  824. ]
  825. newmenu "create account"
  826. menuinit [ authsetup genpre; authsetup genpriv; authsetup genpub; echo "\f4temp account created." ; tempalias ___ppass "" ; tempalias ___pass "" ]
  827. menuitemtextinput "please enter a password for account restoration\t" "" [___ppass = $arg1] [] 64
  828. menuitemtextinput "please enter a password for your game account\t" "" [___pass = $arg1] [] 64
  829. menuitem "" -1
  830. menuitem "\t\t\f0[Ok]" [ authsetup newppass $___ppass ; authsetup newpass $___pass ; ___ppass = "" ; ___pass = "" ; if (authsetup) [ echo "created account" (mypubkey)] checkaccount ]
  831. const checkaccount [
  832. if (authsetup) [
  833. echo "\f0using account " (mypubkey)
  834. ] [
  835. if (authsetup needpass) [] [ exec config/authprivate.cfg ]
  836. if (authsetup needpass) [
  837. showmenu "enter password"
  838. ] [
  839. showmenu "offer account"
  840. ]
  841. ]
  842. ]