Advertisement
jar3817

q2pro.meny

Feb 6th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.80 KB | None | 0 0
  1. /*
  2. This is example menu definition file for Q2PRO.
  3.  
  4. File format is line based, whitespace is ignored. C and C++ style comments are
  5. supported. Long lines can be broken into multiple ones by escaping linefeed
  6. characters with backslashes.
  7.  
  8. Lines are macro expanded at script load time just as usual console commands.
  9. Any cvars and macros can be referenced.
  10.  
  11. Duplicate menu entries override previous ones. Built-in menus (‘demos’,
  12. ‘servers’ and ‘players’) can not be overridden. When user presses ESC while
  13. disconnected, ‘main’ menu is pushed. When user presses ESC while spawned in
  14. game, ‘game’ menu is pushed if it is found, otherwise ‘main’ menu is pushed.
  15.  
  16. Supported keywords and their syntax:
  17.  
  18. include <filename>
  19.  
  20. background <color|image>
  21. font <image>
  22. cursor <image>
  23. weapon <model>
  24.  
  25. color <state> <color>
  26.  
  27. begin <menuname>
  28. title <menutitle>
  29. banner <image>
  30. background <color|image>
  31. plaque <plaque> [logo]
  32.  
  33. range <name> <cvar> <min> <max> [step]
  34.  
  35. pairs <name> <cvar> <string1> <value1> [...]
  36. values <name> <cvar> <string1> [...]
  37. strings <name> <cvar> <value1> [...]
  38. toggle <name> <cvar> [~][bit]
  39.  
  40. bind <name> <command>
  41. action <name> <command>
  42. bitmap <image> <command>
  43. savegame <slot>
  44. loadgame <slot>
  45. blank
  46.  
  47. field [options] <name> <cvar>
  48. end
  49. */
  50.  
  51. background black
  52. font conchars
  53. cursor ch1
  54. weapon w_railgun.md2
  55.  
  56. color normal #0f90eb64
  57. color active #0f90ff64
  58. color selection #0f90eb64
  59. color disabled #7f7f7f
  60.  
  61. begin video
  62. //title "Video Setup"
  63. banner m_banner_video
  64. values "video mode" vid_fullscreen windowed $vid_modelist
  65. toggle "vertical sync" gl_swapinterval
  66. range "texture gamma" vid_gamma 1.3 0.3
  67. toggle "hardware gamma" vid_hwgamma
  68. range "texture quality" gl_picmip 3 0 -1
  69. pairs "texture filter" gl_texturemode \
  70. nearest GL_NEAREST \
  71. linear GL_LINEAR \
  72. bilinear GL_LINEAR_MIPMAP_NEAREST \
  73. trilinear GL_LINEAR_MIPMAP_LINEAR
  74. pairs "anisotropic filter" gl_anisotropy no 0 2x 2 4x 4 8x 8 16x 16
  75. range "texture saturation" gl_saturation 0 1
  76. pairs "texture intensity" intensity 1x 1 2x 2 3x 3
  77. range "lightmap saturation" gl_coloredlightmaps 0 1
  78. range "lightmap brightness" gl_brightness 0 0.3
  79. end
  80.  
  81. begin options
  82. //title "Options"
  83. banner m_banner_options
  84. action "player setup" pushmenu players
  85. action "input setup" pushmenu input
  86. action "key bindings" pushmenu keys
  87. action "weapon bindings" pushmenu weapons
  88. action "video setup" pushmenu video
  89. action "sound setup" pushmenu sound
  90. action "effects setup" pushmenu effects
  91. action "screen setup" pushmenu screen
  92. action "download options" pushmenu downloads
  93. action "address book" pushmenu addressbook
  94. end
  95.  
  96. begin sound
  97. title "Sound Setup"
  98. values "sound engine" s_enable "no sound" "software" "OpenAL"
  99. values "hardware access" s_direct "max compatibility" "max performance"
  100. range "effects volume" s_volume 0 1
  101. values "ambient sounds" s_ambient "no" "yes" "only player's own"
  102. values "chat beep" cl_chat_sound "disabled" "default" "alternative"
  103. end
  104.  
  105. begin railtrail
  106. title "Railgun Trail Setup"
  107. values "rail trail type" cl_railtrail_type \
  108. "default" "core only" "core and spiral"
  109. range "rail trail duration" cl_railtrail_time 0.1 3.0 0.1
  110. range "core width" cl_railcore_width 1 6 1
  111. range "spiral radius" cl_railspiral_radius 1 6 1
  112. pairs "core color" cl_railcore_color \
  113. black black red red green green yellow yellow \
  114. blue blue cyan cyan magenta magenta white white
  115. pairs "spiral color" cl_railspiral_color \
  116. black black red red green green yellow yellow \
  117. blue blue cyan cyan magenta magenta white white
  118. end
  119.  
  120. begin effects
  121. title "Effects Setup"
  122. values "dynamic lighting" gl_dynamic "no" "yes" "only switchable"
  123. values "entity cel-shading" gl_celshading no 1x 2x 3x
  124. toggle "entity glowing" cl_noglow ~0
  125. toggle "ground shadows" gl_shadows
  126. toggle "screen blending" gl_polyblend
  127. toggle "grenade explosions" cl_disable_explosions ~0
  128. toggle "rocket explosions" cl_disable_explosions ~1
  129. blank
  130. action --align "railgun trail setup..." pushmenu railtrail
  131. end
  132.  
  133. begin crosshair
  134. title "Crosshair Setup"
  135. values "crosshair type" crosshair none cross dot angle
  136. pairs "crosshair scale" ch_scale 1x 1 2x 2 4x 4
  137. toggle "color by health" ch_health
  138. range "red channel" ch_red 0 1
  139. range "green channel" ch_green 0 1
  140. range "blue channel" ch_blue 0 1
  141. range "alpha channel" ch_alpha 0 1
  142. end
  143.  
  144. begin screen
  145. title "Screen Setup"
  146. range "screen size" viewsize 40 100 10
  147. toggle "ping graph" scr_lag_draw
  148. values "demo bar" scr_demobar no yes verbose
  149. range "HUD opacity" scr_alpha 0 1
  150. range "console opacity" con_alpha 0 1
  151. pairs "HUD scale" scr_scale 1x 1 2x 2 4x 4
  152. pairs "console scale" con_scale 1x 1 2x 2 4x 4
  153. pairs "menu scale" ui_scale 1x 1 2x 2 4x 4
  154. blank
  155. action --align "crosshair setup..." pushmenu crosshair
  156. end
  157.  
  158. begin downloads
  159. title "Download Options"
  160. toggle "allow downloading" allow_download
  161. toggle "maps" allow_download_maps
  162. toggle "player models/skins" allow_download_players
  163. toggle "models" allow_download_models
  164. toggle "sounds" allow_download_sounds
  165. toggle "textures" allow_download_textures
  166. toggle "pics" allow_download_pics
  167. blank
  168. toggle "HTTP downloads" cl_http_downloads
  169. end
  170.  
  171. begin gameflags
  172. title "Deathmatch Flags"
  173. toggle "falling damage" dmflags ~3
  174. toggle "weapons stay" dmflags 2
  175. toggle "instant powerups" dmflags 4
  176. toggle "allow powerups" dmflags ~1
  177. toggle "allow health" dmflags ~0
  178. toggle "allow armor" dmflags ~11
  179. toggle "spawn farthest" dmflags 9
  180. toggle "same map" dmflags 5
  181. toggle "force respawn" dmflags 10
  182. toggle "infinite ammo" dmflags 13
  183. toggle "fixed FOV" dmflags 15
  184. toggle "quad drop" dmflags 14
  185. end
  186.  
  187. begin startserver
  188. //title "Start Server"
  189. banner m_banner_start_server
  190. strings "initial map" _ui_nextserver $com_maplist
  191. field --integer --status "0 - no time limit" --width 3 "time limit" timelimit
  192. field --integer --status "0 - no frag limit" --width 3 "frag limit" fraglimit
  193. field --integer --width 3 "max players" maxclients
  194. field --width 16 "host name" hostname
  195. blank
  196. action --align "deathmatch flags..." pushmenu gameflags
  197. action --align "begin game!" "forcemenuoff; map $_ui_nextserver force"
  198. end
  199.  
  200. begin multiplayer
  201. banner m_banner_multiplayer
  202. action "browse address book" pushmenu servers "favorites://" "file:///servers.lst" "broadcast://"
  203. action "browse q2servers.com" pushmenu servers "+http://q2servers.com/?raw=2"
  204. action "browse demos" pushmenu demos
  205. action "start server" pushmenu startserver
  206. end
  207.  
  208. begin singleplayer
  209. banner m_banner_game
  210. action easy "skill 0; deathmatch 0; coop 0; maxclients 1; newgame"
  211. action medium "skill 1; deathmatch 0; coop 0; maxclients 1; newgame"
  212. action hard "skill 2; deathmatch 0; coop 0; maxclients 1; newgame"
  213. action nightmare "skill 3; deathmatch 0; coop 0; maxclients 1; newgame"
  214. blank
  215. action "load game..." pushmenu loadgame
  216. action "save game..." pushmenu savegame
  217. end
  218.  
  219. begin loadgame
  220. banner m_banner_load_game
  221. loadgame save0
  222. blank
  223. loadgame save1
  224. loadgame save2
  225. loadgame save3
  226. loadgame save4
  227. loadgame save5
  228. loadgame save6
  229. loadgame save7
  230. loadgame save8
  231. loadgame save9
  232. loadgame save10
  233. loadgame save11
  234. loadgame save12
  235. loadgame save13
  236. loadgame save14
  237. loadgame save15
  238. end
  239.  
  240. begin savegame
  241. banner m_banner_save_game
  242. savegame save1
  243. savegame save2
  244. savegame save3
  245. savegame save4
  246. savegame save5
  247. savegame save6
  248. savegame save7
  249. savegame save8
  250. savegame save10
  251. savegame save11
  252. savegame save12
  253. savegame save13
  254. savegame save14
  255. savegame save15
  256. end
  257.  
  258. begin main
  259. //title "Main Menu"
  260. plaque m_main_plaque m_main_logo
  261. bitmap m_main_multiplayer pushmenu multiplayer
  262. bitmap m_main_game pushmenu singleplayer
  263. bitmap m_main_options pushmenu options
  264. bitmap m_main_video pushmenu video
  265. bitmap m_main_quit quit
  266. end
  267.  
  268. begin game
  269. background #0000ff20
  270. style --compact
  271. action "browse q2servers.com" pushmenu servers "+http://q2servers.com/?raw=2"
  272. action "browse address book" pushmenu servers "favorites://" "file:///servers.lst" "broadcast://"
  273. action "browse demos" pushmenu demos
  274. action "single player" pushmenu singleplayer
  275. action "options" pushmenu options
  276. action "disconnect" disconnect
  277. action "quit" quit
  278. end
  279.  
  280. begin addressbook
  281. //title "Address Book"
  282. banner m_banner_addressbook
  283. field --width 32 --center adr0
  284. field --width 32 --center adr1
  285. field --width 32 --center adr2
  286. field --width 32 --center adr3
  287. field --width 32 --center adr4
  288. field --width 32 --center adr5
  289. field --width 32 --center adr6
  290. field --width 32 --center adr7
  291. field --width 32 --center adr8
  292. field --width 32 --center adr9
  293. field --width 32 --center adr10
  294. field --width 32 --center adr11
  295. field --width 32 --center adr12
  296. field --width 32 --center adr13
  297. field --width 32 --center adr14
  298. field --width 32 --center adr15
  299. end
  300.  
  301. begin input
  302. title "Input Setup"
  303. field --numeric --width 8 "mouse sens" sensitivity
  304. toggle "auto sens" m_autosens
  305. toggle "mouse filter" m_filter
  306. toggle "free look" freelook
  307. toggle "always run" cl_run
  308. end
  309.  
  310. begin keys
  311. title "Key Bindings"
  312. bind "attack" +attack
  313. bind "next weapon" weapnext
  314. bind "walk forward" +forward
  315. bind "backpedal" +back
  316. bind "turn left" +left
  317. bind "turn right" +right
  318. bind "run" +speed
  319. bind "step left" +moveleft
  320. bind "step right" +moveright
  321. bind "sidestep" +strafe
  322. bind "look up" +lookup
  323. bind "look down" +lookdown
  324. bind "center view" centerview
  325. bind "mouse look" +mlook
  326. bind "keyboard look" +klook
  327. bind "up / jump" +moveup
  328. bind "down / crouch" +movedown
  329. bind "inventory" inven
  330. bind "use item" invuse
  331. bind "drop item" invdrop
  332. bind "prev item" invprev
  333. bind "next item" invnext
  334. bind "help computer" help
  335. bind "pause game" pause
  336. end
  337.  
  338. begin weapons
  339. title "Weapon Bindings"
  340. bind "blaster" "use Blaster"
  341. bind "shotgun" "use Shotgun"
  342. bind "super shotgun" "use Super Shotgun"
  343. bind "machinegun" "use Machinegun"
  344. bind "chaingun" "use Chaingun"
  345. bind "grenade launcher" "use Grenade Launcher"
  346. bind "rocket launcher" "use Rocket Launcher"
  347. bind "hyperblaster" "use HyperBlaster"
  348. bind "railgun" "use Railgun"
  349. bind "bfg10k" "use BFG10K"
  350. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement