splitted menus

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1617 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-02-09 13:11:42 +00:00
parent 1b5c67b469
commit 41b8a4f6a6
4 changed files with 537 additions and 534 deletions
+4 -534
View File
@@ -120,84 +120,6 @@ menuitem "Last Swiss Standing" "mode 9; showmenu maps"
menuitem "One Shot, One Kill" "mode 10; showmenu maps"
menuitem "Team One Shot, One Kill" "mode 11; showmenu maps"
// bot menus and tools
alias tmp_botskill good
alias tmp_numbots 1
alias tmp_mode
alias tmp_botmap
alias startbotmatch [
addnbot (div $tmp_numbots 2) RVSF $tmp_botskill
if ((> (mod $tmp_numbots 2) 0)) [ alias tmp_numbots (+ $tmp_numbots 1) ] []
addnbot (div $tmp_numbots 2) CLA $tmp_botskill
]
alias startbotmap [
if $connected [ disconnect ]
echo starting botmatch..
kickallbots
sleep 5000 startbotmatch
mode $tmp_mode
map $tmp_botmap
]
newmenu singleplayer
// teamplay note mature yet
menuitem "Bot Team Deathmatch" "alias tmp_mode 7; showmenu botskill"
menuitem "Bot Deathmatch" "alias tmp_mode 8; showmenu botskill"
menuitem "Bot One Shot, One Kill" "alias tmp_mode 12; showmenu botskill"
menuitem "Empty Map" "mode 0; showmenu maps"
newmenu botskill
alias showmenu_enemies [ if (= $tmp_mode 7) [ showmenu "team enemies" ] [ showmenu enemies ] ]
menuitem "best" "alias tmp_botskill best; showmenu_enemies"
menuitem "good (default)" "alias tmp_botskill good; showmenu_enemies"
menuitem "medium" "alias tmp_botskill medium; showmenu_enemies"
menuitem "worse" "alias tmp_botskill worse; showmenu_enemies"
menuitem "bad" "alias tmp_botskill bad; showmenu_enemies"
alias genenemyitems [
loop i (listlen $arg1) [
alias numplayers (at $arg1 $i)
if (= $arg2 0) [ // DM
alias numplayers (- $numplayers 1) // don't count yourself as enemy
if (= $numplayers 1) [
alias menutext (concat $numplayers enemy)
] [
alias menutext (concat $numplayers enemies)
]
] [ // TDM
alias teamsize (div $numplayers 2)
alias menutext (concatword $teamsize on $teamsize)
]
menuitem $menutext (concat "alias tmp_numbots" $numplayers "; showmenu botmaps")
]
]
newmenu enemies
genenemyitems "2 3 5 9 17 33" 0
newmenu "team enemies"
genenemyitems "2 4 6 8 16 32" 1
newmenu botmaps
alias genbotmaps [
loop i (listlen $arg1) [
alias listmapname (at $arg1 $i)
alias menutext (concat Map: $listmapname)
menuitem $menutext (concat "alias tmp_botmap" $listmapname "; startbotmap")
]
]
genbotmaps "ac_complex ac_mines ac_depot ac_desert ac_desert2 ac_snow ac_power ac_elevation ac_toxic"
newmenu "server operator"
menuitem "Claim Master" "setmaster 1"
@@ -220,226 +142,6 @@ menuitem "Open" "mastermode 0"
menuitem "Private" "mastermode 1"
newmenu editing
menuitem "Mapmodels..." "showmenu mapmodels"
menuitem "Lighting..." "showmenu lighting"
menuitem "Entities" "showmenu entities"
menuitem "Pickups" "showmenu pickups"
menuitem "Arches and slopes.." "showmenu arches"
menuitem "Map operations.." "showmenu mapop"
menuitem "Bots..." [ showmenu "Creating bot waypoints" ]
menuitem "Help..." [ showmenu "Map editing help" ]
// Start of "editing help" menu.
newmenu "Map editing help"
menuitem "Toggle: Edit mode (Key: E)" [ edittoggle; echo "Pressing E would be quicker." ]
menuitem "Undo last cube manipulation (Key: U)" [ undo; echo "Pressing U would be quicker." ]
menuitem "Copy selected cubes (Key: C)" [ copy; echo "Pressing C would be quicker." ]
menuitem "Paste selected cubes (Key: V)" [ paste; echo "Selection has been pasted from the upper corner of the red dot. Pressing V would be quicker." ]
menuitem "Repeat last texture replace" "replace"
menuitem "Delete closest light, mapmodel or other entity (Key: Backspace)" [ delent; echo "Pressing 'backspace' would be quicker." ]
menuitem "Fullbright view" "fullbright 1"
menuitem "Recalculate light" "recalc"
menuitem "Toggle: Show geometric mipmaps (Key: F5)" "showmip"
menuitem "Toggle: Occlusion culling (Key: F6)" "toggleocull"
menuitem """"
menuitem "Show more..." [ showmenu "Map editing help (Page 2)" ]
newmenu "Map editing help (Page 2)"
menuitem "Browse through floor textures (Keys: Insert/Delete)" [ showmenu "Browse floor textures" ]
menuitem "Browse through wall textures (Keys: Home/End)" [ showmenu "Browse wall textures" ]
menuitem "Browse through ceiling textures (Keys: Pageup/Pagedown)" [ showmenu "Browse ceiling textures" ]
menuitem "Browse through upper wall textures (Keys: Keypad7/Keypad4)" [ showmenu "Browse upper wall textures" ]
menuitem "Move floor geometery up (Key: [ )" [ editheight 0 -1; echo "Pressing the left-bracket would be quicker." ]
menuitem "Move floor geometery down (Key: ] )" [ editheight 0 1; echo "Pressing right-bracket would be quicker." ]
menuitem "Move ceiling geometery up (Key: O)" [ editheight 2 -1; echo "Pressing O would be quicker." ]
menuitem "Move ceiling geometery down (Key: P)" [ editheight 2 1; echo "Pressing P would be quicker." ]
menuitem "Make selected geometery SOLID (Key: F)" [ solid 1; echo "Pressing F would be quicker." ]
menuitem "Make selected geometery SPACE (Key: G)" [ solid 0; echo "Pressing G would be quicker." ]
menuitem "Make selected geometery a corner (Key: K)" [ corner; echo "Pressing K would be quicker." ]
menuitem "Equalize the floor level (Key: ,)" [ equalize 0; echo "Pressing , would be quicker." ]
menuitem "Equalize the ceiling level (Key: .)" [ equalize 2; echo "Pressing . would be quicker." ]
menuitem "Make the floor a heightfield (Key: H)" [ heightfield 0; echo "Pressing H would be quicker." ]
menuitem "Make the ceiling a heightfield (Key: I)" [ heightfield 2; echo "Pressing I would be quicker." ]
menuitem "Manipulate the corners of a cube (upward) (Key: 8)" [ vdelta -1; echo "Pressing 8 would be quicker." ]
menuitem "Manipulate the corners of a cube (downward) (Key: 9)" [ vdelta 1; echo "Pressing 9 would be quicker." ]
menuitem """"
menuitem "See the reference for more editing commands..." "showmenu Editing"
newmenu "Browse floor textures"
menuitem "Browse floor textures forwards (Key Insert)" [ edittex 0 1; echo "Pressing 'Ins' would be quicker." ]
menuitem "Browse floor textures backwards (Key Delete)" [ edittex 0 -1; echo "Pressing 'Del' would be quicker." ]
newmenu "Browse wall textures"
menuitem "Browse wall textures forwards (Key Home)" [ edittex 1 1; echo "Pressing 'Home' would be quicker." ]
menuitem "Browse wall textures backwards (Key End)" [ edittex 1 -1; echo "Pressing 'End' would be quicker." ]
newmenu "Browse ceiling textures"
menuitem "Browse ceiling textures forwards (Key Pageup)" [ edittex 2 1; echo "Pressing 'PgUp' would be quicker." ]
menuitem "Browse ceiling textures backwards (Key Pagedown)" [ edittex 2 -1; echo "Pressing 'PgDn' would be quicker." ]
newmenu "Browse upper wall textures"
menuitem "Browse upper wall textures forwards (Key Keypad7)" [ edittex 3 1; echo "Pressing '7' on the keypad would be quicker." ]
menuitem "Browse upper wall textures backwards (Key Keypad4)" [ edittex 3 -1; echo "Pressing '4' on the keypad would be quicker." ]
// End of "editing help" menu.
newmenu mapmodels
menuitem "misc" "showmenu misc"
menuitem "ladders" "showmenu ladders"
menuitem "street" "showmenu street"
menuitem "plants" "showmenu plants"
menuitem "interior" "showmenu interior"
menuitem "lights" "showmenu lights"
menuitem "industrial" "showmenu industrial"
menuitem "signs" "showmenu signs"
menuitem "other" "showmenu other"
newmenu misc
menuitem "Nothing/Clip (4x4x2)" "newent mapmodel 0"
menuitem "Bridge(8x8)" "saycommand /newent mapmodel 1 "
newmenu ladders
menuitem "Ladder(7)" "newent mapmodel 2"
menuitem "Ladder(8)" "newent mapmodel 3"
menuitem "Ladder(10)" "newent mapmodel 4"
menuitem "Ladder(11)" "newent mapmodel 5"
menuitem "Ladder(15)" "newent mapmodel 6"
newmenu street
menuitem "Streetlight" "newent mapmodel 7"
menuitem "Park Bench" "newent mapmodel 9"
menuitem "Dumpster" "newent mapmodel 10"
menuitem "Roadblock" "newent mapmodel 11"
menuitem "Roadblock2" "newent mapmodel 12"
menuitem "Fence" "newent mapmodel 13"
menuitem "Fencepost" "newent mapmodel 14"
menuitem "Fencegate" "newent mapmodel 15"
menuitem "Fencedoor" "newent mapmodel 16"
newmenu plants
menuitem "Grass1" "newent mapmodel 17"
menuitem "Grass1_dry" "newent mapmodel 18"
menuitem "Grass1_snow" "newent mapmodel 19"
menuitem "Grass2" "newent mapmodel 20"
menuitem "Grass2_dry" "newent mapmodel 21"
menuitem "Grass2_snow" "newent mapmodel 22"
menuitem "Plant1" "newent mapmodel 23"
menuitem "Plant1_dry" "newent mapmodel 24"
menuitem "Plant1_snow" "newent mapmodel 25"
newmenu interior
menuitem "Chair" "newent mapmodel 27"
menuitem "Laptop" "newent mapmodel 28"
menuitem "Picture1" "saycommand /newent mapmodel 29 "
menuitem "Locker" "newent mapmodel 30"
newmenu lights
menuitem "Strahler" "saycommand /newent mapmodel 31"
menuitem "Fluorescent lamp" "saycommand /newent mapmodel 32"
menuitem "LightBulb" "saycommand /newent mapmodel 33"
newmenu industrial
menuitem "Barrel" "newent mapmodel 34"
menuitem "Knocked Over Barrel" "newent mapmodel 35"
menuitem "Electric meter" "newent mapmodel 36"
menuitem "Pallette" "newent mapmodel 37"
menuitem "Gastank" "newent mapmodel 38"
menuitem "Grate (horizontal)" "newent mapmodel 39"
menuitem "Grate (vertical)" "newent mapmodel 40"
menuitem "Wrench" "newent mapmodel 41"
menuitem "Bolt" "newent mapmodel 42"
menuitem "Hook" "newent mapmodel 52"
newmenu signs
menuitem "Flammable Sign" "newent mapmodel 43"
menuitem "Speed Limit Sign" "newent mapmodel 44"
menuitem "Maintenance Sign" "newent mapmodel 45"
menuitem "Caution Sign" "newent mapmodel 46"
menuitem "Biohazard Sign" "newent mapmodel 47"
newmenu other
menuitem "Cigarette" "newent mapmodel 48"
menuitem "Can" "newent mapmodel 49"
menuitem "Fallen Can" "newent mapmodel 50"
menuitem "Broken Wood" "newent mapmodel 51"
menuitem "Coffee" "newent mapmodel 53"
menuitem "Flyer" "newent mapmodel 54"
menuitem "Tree Flyer" "newent mapmodel 26"
menuitem "Wanted Poster" "newent mapmodel 55"
newmenu entities
menuitem "RVSF Spawn point" "newent playerstart 1"
menuitem "CLA Spawn point" "newent playerstart 0"
menuitem "FFA Spawn point" "newent playerstart 100"
menuitem "RVSF CTF Flag" "newent ctf-flag 1"
menuitem "CLA CTF Flag" "newent ctf-flag 0"
menuitem "Ladder entity" "saycommand /newent ladder "
newmenu pickups
menuitem "Health" "newent health"
menuitem "Pistol Ammo" "newent clips"
menuitem "Box of Ammo" "newent ammobox"
menuitem "Kevlar Vest" "newent armour"
menuitem "Akimbo" "newent akimbo"
newmenu arches
menuitem "normal arch" "heightfield 2; arch 0"
menuitem "arch with sideways curve (delta 1)" "heightfield 2; arch 1"
menuitem "arch with sideways curve (delta 2)" "heightfield 2; arch 2"
menuitem "arch with sideways curve (delta 3)" "heightfield 2; arch 3"
menuitem "arch with sideways curve (delta 4)" "heightfield 2; arch 4"
menuitem "slope increase 2 left-right" "heightfield 0; slope 2 0"
menuitem "slope decrease 2 left-right" "heightfield 0; slope -2 0"
menuitem "slope increase 2 top-bottom" "heightfield 0; slope 0 2"
menuitem "slope decrease 2 top-bottom" "heightfield 0; slope 0 -2"
menuitem "slope increase 1 left-right" "heightfield 0; slope 1 0"
menuitem "slope decrease 1 left-right" "heightfield 0; slope -1 0"
menuitem "slope increase 1 top-bottom" "heightfield 0; slope 0 1"
menuitem "slope decrease 1 top-bottom" "heightfield 0; slope 0 -1"
menuitem "fix heightfield" "slope 0 0"
menuitem "[ arches make ceiling heighfield, slopes floor ]"
newmenu mapop
menuitem "Newmap (128x128 cubes, recommended)" "newmap 7"
menuitem "Newmap (256x256 cubes)" "newmap 8"
menuitem "Increase mapsize (2x)" "mapenlarge"
menuitem "Create a map message" "saycommand /mapmsg "
newmenu "weapons"
menumdl weapons/assault/menu mapmodel 75 12
@@ -458,187 +160,6 @@ menuitem "V-19 Combat Shotgun" "nextprimary 2;echo V-19 Combat Shotgun chosen"
//menuitem "DR-17 HE-Grenade" "echo DR-17 HE-Grenade chosen" "chmenumdl equipment vwep/grenade_static mapmodel 40 80"
//menuitem "SN-Tech Kelvar Vest" "echo SN-Tech Kelvar Vest chosen" "chmenumdl equipment pickups/kevlar mapmodel 40 20"
newmenu settings
menuitem "quick setup.." [ showmenu "quick setup" ]
menuitem "keyboard/mouse controls" "showmenu controls"
menuitem "video settings" "showmenu video"
menuitem "sound settings" "showmenu sound"
newmenu "quick setup"
menuitemtextinput "nickname: " "" "name $arg1"
menuitemtextinput "screen width: " "$scr_w" "scr_w $arg1"
menuitemtextinput "screen height: " "$scr_h" "scr_h $arg1"
menuitemslider "mouse sensitivity: " 2 100 "($sensitivity)" 2 "" "sensitivity $arg1"
menuitemslider "graphics detail: " 1 4 "(getgfxq)" 1 "low medium good best" "new_gfx_quality $arg1"
menuitemslider "sound detail: " 1 3 "(getsoundq)" 1 "low medium high" "new_sound_quality $arg1"
menuitem "OK" "showmenu restart"
alias getgfxq [
if (= $minlod 200) [ result 4 ] [
if (= $minlod 100) [ result 3 ] [
if (= $minlod 60) [ result 2 ] [ result 1 ]
]
]
]
alias getsoundq [
if (= $soundchans 64) [ result 3 ] [
if (= $footsteps 1) [ result 2 ] [ result 1 ]
]
]
alias new_gfx_quality [
if (= $arg1 4) [ // highest gfx quality
fsaa 8
minlod 200
fpsrange 100 1000
watersubdiv 2
dynlight 16
waterreflect 1
dynshadow 40
lighterror 1
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [
if (= $arg1 3) [ // high
fsaa 0
minlod 100
fpsrange 60 60
watersubdiv 2
dynlight 16
waterreflect 1
dynshadow 40
lighterror 4
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [
if (= $arg1 2) [ // medium (DEFAULT)
fsaa 0
minlod 60
fpsrange 30 40
watersubdiv 4
dynlight 16
waterreflect 1
dynshadow 40
lighterror 4
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [ // low
fsaa 0
minlod 25
fpsrange 20 25
watersubdiv 16
dynlight 0
waterreflect 0
dynshadow 0
lighterror 10
scorchttl 0
bulletholettl 0
bloodttl 0
gibttl 0
shotlinettl 0
]
]
]
]
alias new_sound_quality [
if (= $arg1 3) [ // high sound (DEFAULT)
soundchans 64
maxsoundsatonce 40
footsteps 1
bulletairsound 1
bulletbouncesound 1
] [
if (= $arg1 2) [ // medium
soundchans 32
maxsoundsatonce 10
footsteps 1
bulletairsound 0
bulletbouncesound 0
] [ // low
soundchans 32
maxsoundsatonce 5
footsteps 0
bulletairsound 0
bulletbouncesound 0
]
]
]
newmenu restart
menuitem "You need to restart AssaultCube" "quit"
newmenu controls
menuitem "Select an action and press ENTER to set a new key-binding"
menuitem ""
menuitemkeyinput "forward: " forward
menuitemkeyinput "left: " left
menuitemkeyinput "backward: " 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
menuitem ""
menuitemcheckbox "invert mouse: " "$invmouse" "invmouse $arg1"
menuitemslider "mouse sensitivity: " 2 100 "($sensitivity)" 2 "" "sensitivty $arg1"
newmenu video
menuitemtextinput "screen width: " "$scr_w" "scr_w $arg1"
menuitemtextinput "screen height: " "$scr_h" "scr_h $arg1"
alias fsaa_valuemap "0 2 4 8 16"
menuitemslider "antialiasing (FSAA): " 0 4 "(findlist $fsaa_valuemap $fsaa)" 1 "off 2 4 8 16" "fsaa (at $fsaa_valuemap $arg1)"
menuitemslider "gamma: " 30 300 "$gamma" 5 "" "gamma $arg1"
alias minlod_valuemap "25 60 100 250"
menuitemslider "minimal level of detail: " 25 250 "(findlist $minlod_valuemap $minlod)" 5 ["low" "decent" "good" "best"] "minlod (at $minlod_valuemap $arg1)"
menuitemcheckbox "water reflection: " "$waterreflect" "waterreflect $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)"
menuitemcheckbox "dynamic light: " "$dynlight" [ if (= $arg1 1) [ dynlight 16 ] [ dynlight 0 ] ]
menuitemcheckbox "dynamic player shadows: " "$dynshadow" [ if (= $arg1 1) [ dynshadow 40 ] [ dynshadow 0 ] ]
menuitemslider "light error: " 1 100 "$lighterror" 5 "" "lighterror $arg1"
menuitem "fpsrange.." "showmenu fpsrange"
newmenu fpsrange
menuitem "my 486 0wnz y00 (8-10)" "fpsrange 8 10"
menuitem "slow machine (20-25)" "fpsrange 20 25"
menuitem "sensible default (30-40)" "fpsrange 30 40"
menuitem "fps whore (60-60)" "fpsrange 60 60"
menuitem "I don't understand LOD (100+)" "fpsrange 100 1000"
newmenu about
@@ -689,58 +210,7 @@ menuitem "Craig Fortune, 3dcafe, Rohrschach, lemong.fr," ""
menuitem "Mayang.com, Chris Zastrow, imageafter.com (textures)" ""
newmenu "Creating bot waypoints"
menuitem "Waypoints..." [ showmenu "Waypoints" ]
menuitem "Paths..." [ showmenu "Paths" ]
menuitem "Deletion..." [ showmenu "Deletion" ]
menuitem "Other operations..." [ showmenu "Other bot operations" ]
menuitem """"
menuitem "Flood map with waypoints" "wpflood"
menuitem "Save bot waypoints" [ wpsave; echo "Waypoints saved in ...bot\waypoints" ]
newmenu Waypoints
menuitem "Add waypoint" "addwp 0"
menuitem "Add auto-connecting waypoint" "addwp 1"
newmenu Paths
menuitem "Start of 1-way path" "addpath1way1"
menuitem "End of 1-way path" "addpath1way2"
menuitem "Start of 2-way path" "addpath2way1"
menuitem "End of 2-way path" "addpath2way2"
newmenu Deletion
menuitem "Delete waypoint" "delwp"
menuitem """"
menuitem "Delete all waypoints" [ showmenu "Delete all waypoints?" ]
menuitem """"
menuitem "Delete Start of 1-way path" "delpath1way1"
menuitem "Delete End of 1-way path" "delpath1way2"
menuitem "Delete Start of 2-way path" "delpath2way1"
menuitem "Delete End of 2-way path" "delpath2way2"
newmenu "Other bot operations"
menuitem "Make waypoints visible" "wpvisible 1"
menuitem "Make waypoints invisible" "wpvisible 0"
menuitem """"
menuitem "Set waypoint as jumpable" "setjumpwp"
menuitem "Unset waypoint as jumpable" "unsetjumpwp"
menuitem "Set waypoint direction (yaw)" "setwpyaw"
menuitem """"
menuitem "Select waypoints by clicking" "xhairwpsel 1"
menuitem "Select waypoints by the nearest one" "xhairwpsel 0"
newmenu "Delete all waypoints?"
menuitem "Yes, delete all waypoints" "wpclear"
menuitem "No. Leave my waypoints alone!" "showmenu botedit"
// create additional menus
exec config/menus_bot.cfg
exec config/menus_edit.cfg
exec config/menus_settings.cfg
+132
View File
@@ -0,0 +1,132 @@
// bot menus and tools
alias tmp_botskill good
alias tmp_numbots 1
alias tmp_mode
alias tmp_botmap
alias startbotmatch [
addnbot (div $tmp_numbots 2) RVSF $tmp_botskill
if ((> (mod $tmp_numbots 2) 0)) [ alias tmp_numbots (+ $tmp_numbots 1) ] []
addnbot (div $tmp_numbots 2) CLA $tmp_botskill
]
alias startbotmap [
if $connected [ disconnect ]
echo starting botmatch..
kickallbots
sleep 5000 startbotmatch
mode $tmp_mode
map $tmp_botmap
]
newmenu singleplayer
// teamplay note mature yet
menuitem "Bot Team Deathmatch" "alias tmp_mode 7; showmenu botskill"
menuitem "Bot Deathmatch" "alias tmp_mode 8; showmenu botskill"
menuitem "Bot One Shot, One Kill" "alias tmp_mode 12; showmenu botskill"
menuitem "Empty Map" "mode 0; showmenu maps"
newmenu botskill
alias showmenu_enemies [ if (= $tmp_mode 7) [ showmenu "team enemies" ] [ showmenu enemies ] ]
menuitem "best" "alias tmp_botskill best; showmenu_enemies"
menuitem "good (default)" "alias tmp_botskill good; showmenu_enemies"
menuitem "medium" "alias tmp_botskill medium; showmenu_enemies"
menuitem "worse" "alias tmp_botskill worse; showmenu_enemies"
menuitem "bad" "alias tmp_botskill bad; showmenu_enemies"
alias genenemyitems [
loop i (listlen $arg1) [
alias numplayers (at $arg1 $i)
if (= $arg2 0) [ // DM
alias numplayers (- $numplayers 1) // don't count yourself as enemy
if (= $numplayers 1) [
alias menutext (concat $numplayers enemy)
] [
alias menutext (concat $numplayers enemies)
]
] [ // TDM
alias teamsize (div $numplayers 2)
alias menutext (concatword $teamsize on $teamsize)
]
menuitem $menutext (concat "alias tmp_numbots" $numplayers "; showmenu botmaps")
]
]
newmenu enemies
genenemyitems "2 3 5 9 17 33" 0
newmenu "team enemies"
genenemyitems "2 4 6 8 16 32" 1
newmenu botmaps
alias genbotmaps [
loop i (listlen $arg1) [
alias listmapname (at $arg1 $i)
alias menutext (concat Map: $listmapname)
menuitem $menutext (concat "alias tmp_botmap" $listmapname "; startbotmap")
]
]
genbotmaps "ac_complex ac_mines ac_depot ac_desert ac_desert2 ac_snow ac_power ac_elevation ac_toxic"
newmenu "Creating bot waypoints"
menuitem "Waypoints..." [ showmenu "Waypoints" ]
menuitem "Paths..." [ showmenu "Paths" ]
menuitem "Deletion..." [ showmenu "Deletion" ]
menuitem "Other operations..." [ showmenu "Other bot operations" ]
menuitem """"
menuitem "Flood map with waypoints" "wpflood"
menuitem "Save bot waypoints" [ wpsave; echo "Waypoints saved in ...bot\waypoints" ]
newmenu Waypoints
menuitem "Add waypoint" "addwp 0"
menuitem "Add auto-connecting waypoint" "addwp 1"
newmenu Paths
menuitem "Start of 1-way path" "addpath1way1"
menuitem "End of 1-way path" "addpath1way2"
menuitem "Start of 2-way path" "addpath2way1"
menuitem "End of 2-way path" "addpath2way2"
newmenu Deletion
menuitem "Delete waypoint" "delwp"
menuitem """"
menuitem "Delete all waypoints" [ showmenu "Delete all waypoints?" ]
menuitem """"
menuitem "Delete Start of 1-way path" "delpath1way1"
menuitem "Delete End of 1-way path" "delpath1way2"
menuitem "Delete Start of 2-way path" "delpath2way1"
menuitem "Delete End of 2-way path" "delpath2way2"
newmenu "Other bot operations"
menuitem "Make waypoints visible" "wpvisible 1"
menuitem "Make waypoints invisible" "wpvisible 0"
menuitem """"
menuitem "Set waypoint as jumpable" "setjumpwp"
menuitem "Unset waypoint as jumpable" "unsetjumpwp"
menuitem "Set waypoint direction (yaw)" "setwpyaw"
menuitem """"
menuitem "Select waypoints by clicking" "xhairwpsel 1"
menuitem "Select waypoints by the nearest one" "xhairwpsel 0"
newmenu "Delete all waypoints?"
menuitem "Yes, delete all waypoints" "wpclear"
menuitem "No. Leave my waypoints alone!" "showmenu botedit"
+220
View File
@@ -1,3 +1,223 @@
newmenu editing
menuitem "Mapmodels..." "showmenu mapmodels"
menuitem "Lighting..." "showmenu lighting"
menuitem "Entities" "showmenu entities"
menuitem "Pickups" "showmenu pickups"
menuitem "Arches and slopes.." "showmenu arches"
menuitem "Map operations.." "showmenu mapop"
menuitem "Bots..." [ showmenu "Creating bot waypoints" ]
menuitem "Help..." [ showmenu "Map editing help" ]
// Start of "editing help" menu.
newmenu "Map editing help"
menuitem "Toggle: Edit mode (Key: E)" [ edittoggle; echo "Pressing E would be quicker." ]
menuitem "Undo last cube manipulation (Key: U)" [ undo; echo "Pressing U would be quicker." ]
menuitem "Copy selected cubes (Key: C)" [ copy; echo "Pressing C would be quicker." ]
menuitem "Paste selected cubes (Key: V)" [ paste; echo "Selection has been pasted from the upper corner of the red dot. Pressing V would be quicker." ]
menuitem "Repeat last texture replace" "replace"
menuitem "Delete closest light, mapmodel or other entity (Key: Backspace)" [ delent; echo "Pressing 'backspace' would be quicker." ]
menuitem "Fullbright view" "fullbright 1"
menuitem "Recalculate light" "recalc"
menuitem "Toggle: Show geometric mipmaps (Key: F5)" "showmip"
menuitem "Toggle: Occlusion culling (Key: F6)" "toggleocull"
menuitem """"
menuitem "Show more..." [ showmenu "Map editing help (Page 2)" ]
newmenu "Map editing help (Page 2)"
menuitem "Browse through floor textures (Keys: Insert/Delete)" [ showmenu "Browse floor textures" ]
menuitem "Browse through wall textures (Keys: Home/End)" [ showmenu "Browse wall textures" ]
menuitem "Browse through ceiling textures (Keys: Pageup/Pagedown)" [ showmenu "Browse ceiling textures" ]
menuitem "Browse through upper wall textures (Keys: Keypad7/Keypad4)" [ showmenu "Browse upper wall textures" ]
menuitem "Move floor geometery up (Key: [ )" [ editheight 0 -1; echo "Pressing the left-bracket would be quicker." ]
menuitem "Move floor geometery down (Key: ] )" [ editheight 0 1; echo "Pressing right-bracket would be quicker." ]
menuitem "Move ceiling geometery up (Key: O)" [ editheight 2 -1; echo "Pressing O would be quicker." ]
menuitem "Move ceiling geometery down (Key: P)" [ editheight 2 1; echo "Pressing P would be quicker." ]
menuitem "Make selected geometery SOLID (Key: F)" [ solid 1; echo "Pressing F would be quicker." ]
menuitem "Make selected geometery SPACE (Key: G)" [ solid 0; echo "Pressing G would be quicker." ]
menuitem "Make selected geometery a corner (Key: K)" [ corner; echo "Pressing K would be quicker." ]
menuitem "Equalize the floor level (Key: ,)" [ equalize 0; echo "Pressing , would be quicker." ]
menuitem "Equalize the ceiling level (Key: .)" [ equalize 2; echo "Pressing . would be quicker." ]
menuitem "Make the floor a heightfield (Key: H)" [ heightfield 0; echo "Pressing H would be quicker." ]
menuitem "Make the ceiling a heightfield (Key: I)" [ heightfield 2; echo "Pressing I would be quicker." ]
menuitem "Manipulate the corners of a cube (upward) (Key: 8)" [ vdelta -1; echo "Pressing 8 would be quicker." ]
menuitem "Manipulate the corners of a cube (downward) (Key: 9)" [ vdelta 1; echo "Pressing 9 would be quicker." ]
menuitem """"
menuitem "See the reference for more editing commands..." "showmenu Editing"
newmenu "Browse floor textures"
menuitem "Browse floor textures forwards (Key Insert)" [ edittex 0 1; echo "Pressing 'Ins' would be quicker." ]
menuitem "Browse floor textures backwards (Key Delete)" [ edittex 0 -1; echo "Pressing 'Del' would be quicker." ]
newmenu "Browse wall textures"
menuitem "Browse wall textures forwards (Key Home)" [ edittex 1 1; echo "Pressing 'Home' would be quicker." ]
menuitem "Browse wall textures backwards (Key End)" [ edittex 1 -1; echo "Pressing 'End' would be quicker." ]
newmenu "Browse ceiling textures"
menuitem "Browse ceiling textures forwards (Key Pageup)" [ edittex 2 1; echo "Pressing 'PgUp' would be quicker." ]
menuitem "Browse ceiling textures backwards (Key Pagedown)" [ edittex 2 -1; echo "Pressing 'PgDn' would be quicker." ]
newmenu "Browse upper wall textures"
menuitem "Browse upper wall textures forwards (Key Keypad7)" [ edittex 3 1; echo "Pressing '7' on the keypad would be quicker." ]
menuitem "Browse upper wall textures backwards (Key Keypad4)" [ edittex 3 -1; echo "Pressing '4' on the keypad would be quicker." ]
// End of "editing help" menu.
newmenu mapmodels
menuitem "misc" "showmenu misc"
menuitem "ladders" "showmenu ladders"
menuitem "street" "showmenu street"
menuitem "plants" "showmenu plants"
menuitem "interior" "showmenu interior"
menuitem "lights" "showmenu lights"
menuitem "industrial" "showmenu industrial"
menuitem "signs" "showmenu signs"
menuitem "other" "showmenu other"
newmenu misc
menuitem "Nothing/Clip (4x4x2)" "newent mapmodel 0"
menuitem "Bridge(8x8)" "saycommand /newent mapmodel 1 "
newmenu ladders
menuitem "Ladder(7)" "newent mapmodel 2"
menuitem "Ladder(8)" "newent mapmodel 3"
menuitem "Ladder(10)" "newent mapmodel 4"
menuitem "Ladder(11)" "newent mapmodel 5"
menuitem "Ladder(15)" "newent mapmodel 6"
newmenu street
menuitem "Streetlight" "newent mapmodel 7"
menuitem "Park Bench" "newent mapmodel 9"
menuitem "Dumpster" "newent mapmodel 10"
menuitem "Roadblock" "newent mapmodel 11"
menuitem "Roadblock2" "newent mapmodel 12"
menuitem "Fence" "newent mapmodel 13"
menuitem "Fencepost" "newent mapmodel 14"
menuitem "Fencegate" "newent mapmodel 15"
menuitem "Fencedoor" "newent mapmodel 16"
newmenu plants
menuitem "Grass1" "newent mapmodel 17"
menuitem "Grass1_dry" "newent mapmodel 18"
menuitem "Grass1_snow" "newent mapmodel 19"
menuitem "Grass2" "newent mapmodel 20"
menuitem "Grass2_dry" "newent mapmodel 21"
menuitem "Grass2_snow" "newent mapmodel 22"
menuitem "Plant1" "newent mapmodel 23"
menuitem "Plant1_dry" "newent mapmodel 24"
menuitem "Plant1_snow" "newent mapmodel 25"
newmenu interior
menuitem "Chair" "newent mapmodel 27"
menuitem "Laptop" "newent mapmodel 28"
menuitem "Picture1" "saycommand /newent mapmodel 29 "
menuitem "Locker" "newent mapmodel 30"
newmenu lights
menuitem "Strahler" "saycommand /newent mapmodel 31"
menuitem "Fluorescent lamp" "saycommand /newent mapmodel 32"
menuitem "LightBulb" "saycommand /newent mapmodel 33"
newmenu industrial
menuitem "Barrel" "newent mapmodel 34"
menuitem "Knocked Over Barrel" "newent mapmodel 35"
menuitem "Electric meter" "newent mapmodel 36"
menuitem "Pallette" "newent mapmodel 37"
menuitem "Gastank" "newent mapmodel 38"
menuitem "Grate (horizontal)" "newent mapmodel 39"
menuitem "Grate (vertical)" "newent mapmodel 40"
menuitem "Wrench" "newent mapmodel 41"
menuitem "Bolt" "newent mapmodel 42"
menuitem "Hook" "newent mapmodel 52"
newmenu signs
menuitem "Flammable Sign" "newent mapmodel 43"
menuitem "Speed Limit Sign" "newent mapmodel 44"
menuitem "Maintenance Sign" "newent mapmodel 45"
menuitem "Caution Sign" "newent mapmodel 46"
menuitem "Biohazard Sign" "newent mapmodel 47"
newmenu other
menuitem "Cigarette" "newent mapmodel 48"
menuitem "Can" "newent mapmodel 49"
menuitem "Fallen Can" "newent mapmodel 50"
menuitem "Broken Wood" "newent mapmodel 51"
menuitem "Coffee" "newent mapmodel 53"
menuitem "Flyer" "newent mapmodel 54"
menuitem "Tree Flyer" "newent mapmodel 26"
menuitem "Wanted Poster" "newent mapmodel 55"
newmenu entities
menuitem "RVSF Spawn point" "newent playerstart 1"
menuitem "CLA Spawn point" "newent playerstart 0"
menuitem "FFA Spawn point" "newent playerstart 100"
menuitem "RVSF CTF Flag" "newent ctf-flag 1"
menuitem "CLA CTF Flag" "newent ctf-flag 0"
menuitem "Ladder entity" "saycommand /newent ladder "
newmenu pickups
menuitem "Health" "newent health"
menuitem "Pistol Ammo" "newent clips"
menuitem "Box of Ammo" "newent ammobox"
menuitem "Kevlar Vest" "newent armour"
menuitem "Akimbo" "newent akimbo"
newmenu arches
menuitem "normal arch" "heightfield 2; arch 0"
menuitem "arch with sideways curve (delta 1)" "heightfield 2; arch 1"
menuitem "arch with sideways curve (delta 2)" "heightfield 2; arch 2"
menuitem "arch with sideways curve (delta 3)" "heightfield 2; arch 3"
menuitem "arch with sideways curve (delta 4)" "heightfield 2; arch 4"
menuitem "slope increase 2 left-right" "heightfield 0; slope 2 0"
menuitem "slope decrease 2 left-right" "heightfield 0; slope -2 0"
menuitem "slope increase 2 top-bottom" "heightfield 0; slope 0 2"
menuitem "slope decrease 2 top-bottom" "heightfield 0; slope 0 -2"
menuitem "slope increase 1 left-right" "heightfield 0; slope 1 0"
menuitem "slope decrease 1 left-right" "heightfield 0; slope -1 0"
menuitem "slope increase 1 top-bottom" "heightfield 0; slope 0 1"
menuitem "slope decrease 1 top-bottom" "heightfield 0; slope 0 -1"
menuitem "fix heightfield" "slope 0 0"
menuitem "[ arches make ceiling heighfield, slopes floor ]"
newmenu mapop
menuitem "Newmap (128x128 cubes, recommended)" "newmap 7"
menuitem "Newmap (256x256 cubes)" "newmap 8"
menuitem "Increase mapsize (2x)" "mapenlarge"
menuitem "Create a map message" "saycommand /mapmsg "
// Prefabricated lights menu
// Add other prefab lights to these menus if needed.
+181
View File
@@ -0,0 +1,181 @@
newmenu settings
menuitem "quick setup.." [ showmenu "quick setup" ]
menuitem "keyboard/mouse controls" "showmenu controls"
menuitem "video settings" "showmenu video"
menuitem "sound settings" "showmenu sound"
newmenu "quick setup"
menuitemtextinput "nickname: " "" "name $arg1"
menuitemtextinput "screen width: " "$scr_w" "scr_w $arg1"
menuitemtextinput "screen height: " "$scr_h" "scr_h $arg1"
menuitemslider "mouse sensitivity: " 2 100 "($sensitivity)" 2 "" "sensitivity $arg1"
menuitemslider "graphics detail: " 1 4 "(getgfxq)" 1 "low medium good best" "new_gfx_quality $arg1"
menuitemslider "sound detail: " 1 3 "(getsoundq)" 1 "low medium high" "new_sound_quality $arg1"
menuitem "OK" "showmenu restart"
alias getgfxq [
if (= $minlod 200) [ result 4 ] [
if (= $minlod 100) [ result 3 ] [
if (= $minlod 60) [ result 2 ] [ result 1 ]
]
]
]
alias getsoundq [
if (= $soundchans 64) [ result 3 ] [
if (= $footsteps 1) [ result 2 ] [ result 1 ]
]
]
alias new_gfx_quality [
if (= $arg1 4) [ // highest gfx quality
fsaa 8
minlod 200
fpsrange 100 1000
watersubdiv 2
dynlight 16
waterreflect 1
dynshadow 40
lighterror 1
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [
if (= $arg1 3) [ // high
fsaa 0
minlod 100
fpsrange 60 60
watersubdiv 2
dynlight 16
waterreflect 1
dynshadow 40
lighterror 4
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [
if (= $arg1 2) [ // medium (DEFAULT)
fsaa 0
minlod 60
fpsrange 30 40
watersubdiv 4
dynlight 16
waterreflect 1
dynshadow 40
lighterror 4
scorchttl 10000
bulletholettl 10000
bloodttl 10000
gibttl 5000
shotlinettl 75
] [ // low
fsaa 0
minlod 25
fpsrange 20 25
watersubdiv 16
dynlight 0
waterreflect 0
dynshadow 0
lighterror 10
scorchttl 0
bulletholettl 0
bloodttl 0
gibttl 0
shotlinettl 0
]
]
]
]
alias new_sound_quality [
if (= $arg1 3) [ // high sound (DEFAULT)
soundchans 64
maxsoundsatonce 40
footsteps 1
bulletairsound 1
bulletbouncesound 1
] [
if (= $arg1 2) [ // medium
soundchans 32
maxsoundsatonce 10
footsteps 1
bulletairsound 0
bulletbouncesound 0
] [ // low
soundchans 32
maxsoundsatonce 5
footsteps 0
bulletairsound 0
bulletbouncesound 0
]
]
]
newmenu restart
menuitem "You need to restart AssaultCube" "quit"
newmenu controls
menuitem "Select an action and press ENTER to set a new key-binding"
menuitem ""
menuitemkeyinput "forward: " forward
menuitemkeyinput "left: " left
menuitemkeyinput "backward: " 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
menuitem ""
menuitemcheckbox "invert mouse: " "$invmouse" "invmouse $arg1"
menuitemslider "mouse sensitivity: " 2 100 "($sensitivity)" 2 "" "sensitivty $arg1"
newmenu video
menuitemtextinput "screen width: " "$scr_w" "scr_w $arg1"
menuitemtextinput "screen height: " "$scr_h" "scr_h $arg1"
alias fsaa_valuemap "0 2 4 8 16"
menuitemslider "antialiasing (FSAA): " 0 4 "(findlist $fsaa_valuemap $fsaa)" 1 "off 2 4 8 16" "fsaa (at $fsaa_valuemap $arg1)"
menuitemslider "gamma: " 30 300 "$gamma" 5 "" "gamma $arg1"
alias minlod_valuemap "25 60 100 250"
menuitemslider "minimal level of detail: " 25 250 "(findlist $minlod_valuemap $minlod)" 5 ["low" "decent" "good" "best"] "minlod (at $minlod_valuemap $arg1)"
menuitemcheckbox "water reflection: " "$waterreflect" "waterreflect $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)"
menuitemcheckbox "dynamic light: " "$dynlight" [ if (= $arg1 1) [ dynlight 16 ] [ dynlight 0 ] ]
menuitemcheckbox "dynamic player shadows: " "$dynshadow" [ if (= $arg1 1) [ dynshadow 40 ] [ dynshadow 0 ] ]
menuitemslider "light error: " 1 100 "$lighterror" 5 "" "lighterror $arg1"
menuitem "fpsrange.." "showmenu fpsrange"
newmenu fpsrange
menuitem "my 486 0wnz y00 (8-10)" "fpsrange 8 10"
menuitem "slow machine (20-25)" "fpsrange 20 25"
menuitem "sensible default (30-40)" "fpsrange 30 40"
menuitem "fps whore (60-60)" "fpsrange 60 60"
menuitem "I don't understand LOD (100+)" "fpsrange 100 1000"