diff --git a/config/menus.cfg b/config/menus.cfg index c5fb8bb3..7286d348 100755 --- a/config/menus.cfg +++ b/config/menus.cfg @@ -39,7 +39,7 @@ menuitem [] -1 // the following seems to be of the old-style thoughts of MP - flowtron: 2010may23 says: the different MPs should somehow list themselves though, yes. // possibly a not defined internal script-file or we just generate from the know listing, which is well defined, the CGZ files and show them by code. if (&& $mappack_version (listlen $mappack_maps)) [menuitem (concatword "Map-pack (version " $mappack_version ") maps...") [showmenu [mappack maps]]]; -menuitem [Show all maps...] [ showmenu [all maps] ] +menuitem (_ [Show all maps...]) [ showmenu [all maps] ] newmenu [all maps] menudirlist "packages/maps" cgz [map $arg1] @@ -50,7 +50,7 @@ const ctfmaps [ac_aqueous ac_arabian ac_arid ac_avenue ac_cavern ac_depot ac_des genmapitems $ctfmaps menuitem [] -1 if (&& $mappack_version (listlen $mappack_flagmaps)) [menuitem (concatword "Map-pack (version " $mappack_version ") maps...") [showmenu [mappack flag maps]]]; -menuitem [Show all maps..] [showmenu [all maps]] +menuitem (_ [Show all maps..]) [showmenu [all maps]] if $mappack_version [ newmenu [mappack maps] @@ -61,68 +61,68 @@ if $mappack_version [ newmenu Demo // If in-game (playing demos isn't needed) -menuitem [Start recording a demo] recorddemo -menuitem [Stop recording a demo] stopdemo -menuitem [Download demos from the server] [ listdemos; showmenu [Download demo] ] // Lists the demos, then asks which would like to be downloaded. +menuitem (_ [Start recording a demo]) recorddemo +menuitem (_ [Stop recording a demo]) stopdemo +menuitem (_ [Download demos from the server]) [ listdemos; showmenu [Download demo] ] // Lists the demos, then asks which would like to be downloaded. newmenu [Download demo] -menuinit [ echo (gray)Choose the demo number you wish to download, as shown below in the console. ] -menuitem " 9 Download the latest demo..." [ getdemo [] ] +menuinit [ dldemo = []; echo (gray) (_ [Choose the demo number you wish to download, as shown below in the console.]) ] +menuitem (concatword (c 9) [ ] (_ [Download the latest demo...])) [ getdemo [] ] menuitem [] -1 -menuitemtextinput [Demo number: ] [] [ dldemo = $arg1 ] -menuitem " 2 [ Download ] " [ getdemo $dldemo ] +menuitemtextinput (_ [Demo number: ]) [] [ dldemo = $arg1 ] +menuitem (concatword (c 2) [ ] "[" (_ Download) "]" [ ]) [ getdemo $dldemo ] newmenu [Play demo] // If not in-game (recording/downloading demos isn't needed) -menuinit [ echo To stop demo playback, type: (red)/stopdemo ] +menuinit [ echo (_ [To stop demo playback, type:]) (red)/stopdemo ] menudirlist demos dmo "demo $arg1" // in-game menu that opens when pressing escape while watching a demo. newmenu [Watching demo] -menuitem [Stop watching demo] stopdemo -menuitem [Restart demo] [ demo $curdemofile ] -menuitem [Watch other demo] [ stopdemo; closemenu [Watching demo]; showmenu [Play demo] ] +menuitem (_ [Stop watching demo]) stopdemo +menuitem (_ [Restart demo]) [ demo $curdemofile ] +menuitem (_ [Watch other demo]) [ stopdemo; closemenu [Watching demo]; showmenu [Play demo] ] menuitem [] -1 -menuitem " 4Main menu..." [ closemenu [Watching demo]; showmenu main ] -menuitem " 3Quit AssaultCube" savequit +menuitem (concatword (c 4) (_ [Main menu...])) [ closemenu [Watching demo]; showmenu main ] +menuitem (concatword (c 3) (_ [Quit AssaultCube])) savequit newmenu about menuitem "AssaultCube Version 1.2" -1 menuitem [] -1 -menuitem "AssaultCube is developed by various people around the" -1 -menuitem "world. People that enjoy making this game together." -1 +menuitem (_ "AssaultCube is developed by various people around the") -1 +menuitem (_ "world. People that enjoy making this game together.") -1 menuitem [] -1 -menuitem "Thank you to everyone participating to help us make" -1 -menuitem "AssaultCube what it is today. To learn about the team" -1 -menuitem "(Rabid Viper Productions) behind the game, read here:" -1 -menuitem " 1http://assault.cubers.net/docs/team.html" -1 +menuitem (_ "Thank you to everyone participating to help us make") -1 +menuitem (_ "AssaultCube what it is today. To learn about the team") -1 +menuitem (_ "(Rabid Viper Productions) behind the game, read here:") -1 +menuitem (concatword (c 1) " http://assault.cubers.net/docs/team.html") -1 if $mappack_version [ menuitem [] -1 ] if $mappack_version [ menuitem " ... about your map-pack:" [ showmenu [about mappack] ]]; menuitem [] -1 -menuitem "AssaultCube is a total-conversion of the CUBE engine" -1 -menuitem "by Wouter 'Aardappel' van Oortmerssen, and others:" -1 +menuitem (_ "AssaultCube is a total-conversion of the CUBE engine") -1 +menuitem (_ "by Wouter 'Aardappel' van Oortmerssen, and others:") -1 menuitem " 1http://www.cubeengine.com/" -1 newmenu help -menuitem [AssaultCube reference] [ showmenu reference ] -menuitem [Search the reference] [ showmenu [Reference search] ] -// menuitem [Keyboard controls] [ showmenu controls ] // This was never implemented or something? - Bukz -menuitem [View the FAQ] [ showmenu faq ] +menuitem (_ [AssaultCube reference]) [ showmenu reference ] +menuitem (_ [Search the reference]) [ showmenu [Reference search] ] +// menuitem (_ [Keyboard controls]) [ showmenu controls ] // This was never implemented or something? - Bukz +menuitem (_ [View the FAQ]) [ showmenu faq ] menuitem [] -1 -menuitem [...for further information/help see the README] [ echo (yellow)The readme can be found in the base AssaultCube directory. ] +menuitem (_ [...for further information/help see the README]) [ echo (yellow) (_ [The readme can be found in the base AssaultCube directory.]) ] newmenu [Reference search] menuinit [ docsearchstring = [] ] -menuitemtextinput [Search reference for: ] [] [ docsearchstring = $arg1 ] -menuitem " 2 [ Search ] " [ docfind $docsearchstring ] +menuitemtextinput (_ [Search reference for: ]) [] [ docsearchstring = $arg1 ] +menuitem (concatword (c 2) [ ] "[ Search ]" [ ]) [ docfind $docsearchstring ] // Show quit dialog if enabled newmenu quit -menuitem [Yes, quit now] quit -menuitem [No] [ showmenu [] ] +menuitem (_ [Yes, quit now]) quit +menuitem (_ [No]) [ showmenu [] ] menuitem [] -1 -menuitemcheckbox [Don't ask next time: ] [(= $askquit 0)] [askquit = (= $arg1 0)] +menuitemcheckbox (_ [Don't ask next time: ]) [(= $askquit 0)] [askquit = (= $arg1 0)] const savequit [ if $askquit [ showmenu quit ] quit ] diff --git a/config/menus_bot.cfg b/config/menus_bot.cfg index 25b52f72..8744eca6 100644 --- a/config/menus_bot.cfg +++ b/config/menus_bot.cfg @@ -80,27 +80,27 @@ const emptymap [ newmenu singleplayer // teamplay not mature yet -menuitem [Bot Team Deathmatch] [ tmp_mode = 7; showmenu botskill ] -menuitem [Bot Deathmatch] [ tmp_mode = 8; showmenu botskill ] -menuitem [Bot One Shot, One Kill] [ tmp_mode = 12; showmenu botskill ] -menuitem [Bot Pistol Frenzy] [ tmp_mode = 18; showmenu botskill ] -menuitem [Bot Last Swiss Standing] [ tmp_mode = 19; showmenu botskill ] -menuitem [Bot Team Survivor] [ tmp_mode = 20; showmenu botskill ] -menuitem [Bot Team One Shot, One Kill] [ tmp_mode = 21; showmenu botskill ] -menuitem [Bot Survival] [ showmenu [Survival Mode] ] +menuitem (_ [Bot Team Deathmatch]) [ tmp_mode = 7; showmenu botskill ] +menuitem (_ [Bot Deathmatch]) [ tmp_mode = 8; showmenu botskill ] +menuitem (_ [Bot One Shot, One Kill]) [ tmp_mode = 12; showmenu botskill ] +menuitem (_ [Bot Pistol Frenzy]) [ tmp_mode = 18; showmenu botskill ] +menuitem (_ [Bot Last Swiss Standing]) [ tmp_mode = 19; showmenu botskill ] +menuitem (_ [Bot Team Survivor]) [ tmp_mode = 20; showmenu botskill ] +menuitem (_ [Bot Team One Shot, One Kill]) [ tmp_mode = 21; showmenu botskill ] +menuitem (_ [Bot Survival]) [ showmenu [Survival Mode] ] menuitem [] -1 -menuitem [Bot settings...] [ showmenu [Bot settings] ] -menuitem [Empty Map] emptymap +menuitem (_ [Bot settings...]) [ showmenu [Bot settings] ] +menuitem (_ [Empty Map]) emptymap const showmenu_enemies [ if (isbotteammode $tmp_mode) [ showmenu [team enemies] ] [ showmenu enemies ] ] newmenu botskill -menuitem [Best] [ tmp_botskill = best; showmenu_enemies ] -menuitem "Good (default)" [ tmp_botskill = good; showmenu_enemies ] -menuitem [Medium] [ tmp_botskill = medium; showmenu_enemies ] -menuitem [Worse] [ tmp_botskill = worse; showmenu_enemies ] -menuitem [Bad] [ tmp_botskill = bad; showmenu_enemies ] +menuitem (_ Best) [ tmp_botskill = best; showmenu_enemies ] +menuitem (_ "Good (default)") [ tmp_botskill = good; showmenu_enemies ] +menuitem (_ Medium) [ tmp_botskill = medium; showmenu_enemies ] +menuitem (_ Worse) [ tmp_botskill = worse; showmenu_enemies ] +menuitem (_ Bad) [ tmp_botskill = bad; showmenu_enemies ] const genenemyitems [ loop i (listlen $arg1) [ @@ -127,69 +127,69 @@ const survDifList ["6 1 60000 90000 20" "8 2 45000 60000 30" "10 3 30000 45000 4 const survSetDif [ if (checkrange $arg1 0 3) [ survDifficulty = $arg1; loop sdl 5 [ (at $survSetsList $sdl) = (at (at $survDifList $survDifficulty) $sdl) ] ] [ sleep 1000 [ echo (c 3)Error: (c 5)invalid difficulty, defaulting to (genSurvDifStr 0) ] 1; survSetDif 0 ]; nonSurvDefaults = 0 ] newmenu [Survival Mode] -menuitemslider [Map: ] 0 (- (listlen $defaultmaps) 1) "$survMap" 1 [ac_aqueous ac_arabian ac_arctic ac_arid ac_avenue ac_cavern ac_complex ac_depot ac_desert ac_desert2 ac_desert3 ac_douze ac_edifice ac_elevation ac_gothic ac_iceroad ac_industrial ac_ingress ac_keller ac_lainio ac_mines ac_outpost ac_power ac_rattrap ac_scaffold ac_shine ac_snow ac_stellar ac_sunset ac_swamp ac_terros ac_toxic ac_urban ac_venison ac_wasteland ac_werk] [ survMap = $arg1 ] -menuitemslider [Difficulty: ] 0 3 "$survDifficulty" 1 [easy intermediate hard impossible] [ survSetDif $arg1 ] +menuitemslider (_ [Map: ]) 0 (- (listlen $defaultmaps) 1) "$survMap" 1 [ac_aqueous ac_arabian ac_arctic ac_arid ac_avenue ac_cavern ac_complex ac_depot ac_desert ac_desert2 ac_desert3 ac_douze ac_edifice ac_elevation ac_gothic ac_iceroad ac_industrial ac_ingress ac_keller ac_lainio ac_mines ac_outpost ac_power ac_rattrap ac_scaffold ac_shine ac_snow ac_stellar ac_sunset ac_swamp ac_terros ac_toxic ac_urban ac_venison ac_wasteland ac_werk] [ survMap = $arg1 ] +menuitemslider (_ [Difficulty: ]) 0 3 "$survDifficulty" 1 [easy intermediate hard impossible] [ survSetDif $arg1 ] menuitem [] -1 -menuitem [ Customize] [ showmenu [Survival Mode - Customize] ] -menuitem [ Start!] [ survival (at $defaultmaps $survMap) ] +menuitem (concatword [ ] (_ Customize)) [ showmenu [Survival Mode - Customize] ] +menuitem (concatword [ ] (_ Start!)) [ survival (at $defaultmaps $survMap) ] newmenu [Survival Mode - Customize] -menuitemcheckbox [Enable survival damage effects (uses gamespeed/gamma)] "$survDamageEffects" [ survDamageEffects = $arg1 ] -menuitemslider [# of bots to spawn on start: ] 6 20 "$survNumBots" 1 [] [ survNumBots = $arg1; nonSurvDefaults = 1 ] -menuitemslider [# of bots to spawn at checkpoints: ] 1 5 "$survBotsToAdd" 1 [] [ survBotsToAdd = $arg1; nonSurvDefaults = 1 ] -menuitemslider [# of milliseconds between checkpoints: ] 10000 120000 "$timeBetChkPts" 10000 [] [ timeBetChkPts = $arg1; nonSurvDefaults = 1 ] -menuitemslider [# of milliseconds before teleporting: ] 10000 180000 "$timeUntilTele" 10000 [] [ timeUntilTele = $arg1; nonSurvDefaults = 1 ] -menuitemslider [Maximum # of bots in survival mode: ] 10 50 "$survMaxBots" 2 [] [ survMaxBots = $arg1; nonSurvDefaults = 1 ] -menuitemslider [Spam survival mode messages: ] 0 1 "$spamSurvMsgs" 1 [ no yes ] [ spamSurvMsgs = $arg1 ] +menuitemcheckbox (_ [Enable survival damage effects (uses gamespeed/gamma)]) "$survDamageEffects" [ survDamageEffects = $arg1 ] +menuitemslider (_ [# of bots to spawn on start: ]) 6 20 "$survNumBots" 1 [] [ survNumBots = $arg1; nonSurvDefaults = 1 ] +menuitemslider (_ [# of bots to spawn at checkpoints: ]) 1 5 "$survBotsToAdd" 1 [] [ survBotsToAdd = $arg1; nonSurvDefaults = 1 ] +menuitemslider (_ [# of milliseconds between checkpoints: ]) 10000 120000 "$timeBetChkPts" 10000 [] [ timeBetChkPts = $arg1; nonSurvDefaults = 1 ] +menuitemslider (_ [# of milliseconds before teleporting: ]) 10000 180000 "$timeUntilTele" 10000 [] [ timeUntilTele = $arg1; nonSurvDefaults = 1 ] +menuitemslider (_ [Maximum # of bots in survival mode: ]) 10 50 "$survMaxBots" 2 [] [ survMaxBots = $arg1; nonSurvDefaults = 1 ] +menuitemslider (_ [Spam survival mode messages: ]) 0 1 "$spamSurvMsgs" 1 [ no yes ] [ spamSurvMsgs = $arg1 ] menuitem [] -1 menuitem [ Back] [ closemenu [Survival Mode - Customize] ] newmenu [Bot settings] -menuitemslider [Bot match length in minutes: ] 1 60 "$menuBotGameLength" 1 [] [ menuBotGameLength = $arg1 ] -menuitemcheckbox [Idle bots?] "(idlebots 2)" [ idlebots $arg1 ] -menuitemcheckbox [Bots attack?] "(botsshoot 2)" [ botsshoot $arg1 ] +menuitemslider (_ [Bot match length in minutes: ]) 1 60 "$menuBotGameLength" 1 [] [ menuBotGameLength = $arg1 ] +menuitemcheckbox (_ [Idle bots?]) "(idlebots 2)" [ idlebots $arg1 ] +menuitemcheckbox (_ [Bots attack?]) "(botsshoot 2)" [ botsshoot $arg1 ] newmenu [Creating bot waypoints] -menuitem [Waypoints...] [ showmenu Waypoints ] -menuitem [Paths...] [ showmenu Paths ] -menuitem [Other operations...] [ showmenu [Other bot operations] ] +menuitem (_ [Waypoints...]) [ showmenu Waypoints ] +menuitem (_ [Paths...]) [ showmenu Paths ] +menuitem (_ [Other operations...]) [ showmenu [Other bot operations] ] menuitem [] -1 -menuitem [Flood map with waypoints] wpflood -menuitem [Save bot waypoints] wpsave +menuitem (_ [Flood map with waypoints]) wpflood +menuitem (_ [Save bot waypoints]) wpsave newmenu Waypoints -menuitem [Add a waypoint] [ addwp 0 ] -menuitem [Add auto-connecting waypoint] [ addwp 1 ] +menuitem (_ [Add a waypoint]) [ addwp 0 ] +menuitem (_ [Add auto-connecting waypoint]) [ addwp 1 ] menuitem [] -1 -menuitem [Delete nearest waypoint] delwp -menuitem [Delete all waypoints] [ showmenu [Delete all waypoints] ] +menuitem (_ [Delete nearest waypoint]) delwp +menuitem (_ [Delete all waypoints]) [ showmenu [Delete all waypoints] ] newmenu Paths -menuitem [Create Start of 2-way path] addpath2way1 -menuitem [Create End of 2-way path] addpath2way2 -menuitem [Delete Start of 2-way path] delpath2way1 -menuitem [Delete End of 2-way path] delpath2way2 +menuitem (_ [Create Start of 2-way path]) addpath2way1 +menuitem (_ [Create End of 2-way path]) addpath2way2 +menuitem (_ [Delete Start of 2-way path]) delpath2way1 +menuitem (_ [Delete End of 2-way path]) delpath2way2 menuitem [] -1 -menuitem [Create Start of 1-way path] addpath1way1 -menuitem [Create End of 1-way path] addpath1way2 -menuitem [Delete Start of 1-way path] delpath1way1 -menuitem [Delete End of 1-way path] delpath1way2 +menuitem (_ [Create Start of 1-way path]) addpath1way1 +menuitem (_ [Create End of 1-way path]) addpath1way2 +menuitem (_ [Delete Start of 1-way path]) delpath1way1 +menuitem (_ [Delete End of 1-way path]) delpath1way2 newmenu [Other bot operations] -menuitem [Set waypoint as jumpable] setjumpwp -menuitem [Unset waypoint as jumpable] unsetjumpwp -menuitem "Set waypoint direction (yaw)" setwpyaw +menuitem (_ [Set waypoint as jumpable]) setjumpwp +menuitem (_ [Unset waypoint as jumpable]) unsetjumpwp +menuitem (_ "Set waypoint direction (yaw)") setwpyaw menuitem [] -1 -menuitemslider [Waypoint visibility: ] 0 1 [ ] 1 ["Hide waypoints" "Show waypoints"] [ wpvisible $arg1 ] -menuitemslider [Select/place waypoints by: ] 0 1 "($xhairwpsel)" 1 ["Your current location" "Clicking a point on the grid"] [ xhairwpsel $arg1 ] +menuitemslider (_ [Waypoint visibility: ]) 0 1 [ ] 1 ["Hide waypoints" "Show waypoints"] [ wpvisible $arg1 ] +menuitemslider (_ [Select/place waypoints by: ]) 0 1 "($xhairwpsel)" 1 ["Your current location" "Clicking a point on the grid"] [ xhairwpsel $arg1 ] newmenu [Delete all waypoints] menuinit [ delallwps = 0 ] // Ensures this menu works correctly. -menuitemcheckbox [Yes, delete all waypoints: ] [delallwps = 1] [delallwps = $arg1] -menuitem " 2 [ Apply! ]" [ if $delallwps wpclear [ showmenu [] ] ] +menuitemcheckbox (_ [Yes, delete all waypoints: ]) [delallwps = 1] [delallwps = $arg1] +menuitem (concatword (c 2) [ ] (_ Apply!)) [ if $delallwps wpclear [ showmenu [] ] ] persistidents 1 diff --git a/config/menus_edit.cfg b/config/menus_edit.cfg index e143930a..481b160e 100644 --- a/config/menus_edit.cfg +++ b/config/menus_edit.cfg @@ -2,146 +2,146 @@ persistidents 0 newmenu editing -menuitem [Mapmodels...] [ showmenu Mapmodels ] -menuitem [Lighting...] [ showmenu Lighting ] -menuitem [Entities...] [ showmenu Entities ] -menuitem [Pickups...] [ showmenu Pickups ] -menuitem [Test a skymap...] [ showmenu skymaps ] -menuitem [Ambient sounds...] [ showmenu [Ambient sounds] ] -menuitem [Arches and slopes...] [ showmenu Arches ] -menuitem [Map operations...] [ showmenu [Map operations] ] -menuitem [Bots...] [ showmenu [Creating bot waypoints] ] -menuitem [Settings...] [ showmenu [Editing settings] ] -menuitem [Help?] [ echo (yellow)Please read the AssaultCube README which has a detailed guide on mapediting... ] +menuitem (_ [Mapmodels...]) [ showmenu Mapmodels ] +menuitem (_ [Lighting...]) [ showmenu Lighting ] +menuitem (_ [Entities...]) [ showmenu Entities ] +menuitem (_ [Pickups...]) [ showmenu Pickups ] +menuitem (_ [Test a skymap...]) [ showmenu skymaps ] +menuitem (_ [Ambient sounds...]) [ showmenu [Ambient sounds] ] +menuitem (_ [Arches and slopes...]) [ showmenu Arches ] +menuitem (_ [Map operations...]) [ showmenu [Map operations] ] +menuitem (_ [Bots...]) [ showmenu [Creating bot waypoints] ] +menuitem (_ [Settings...]) [ showmenu [Editing settings] ] +menuitem (_ Help?) [ echo (yellow) (_ [Please read the AssaultCube README which has a detailed guide on mapediting...]) ] tmp_cradius = 12 //Lighting menu. newmenu Lighting -menuitem [Add white lights ] [ showmenu [White light] ] -menuitem [Add coloured lights ] [ showmenu [Coloured light] ] +menuitem (_ [Add white lights ]) [ showmenu [White light] ] +menuitem (_ [Add coloured lights ]) [ showmenu [Coloured light] ] menuitem [] -1 -menuitemcheckbox [Enable fullbright: ] "$fullbright" [ fullbright $arg1 ] +menuitemcheckbox (_ [Enable fullbright: ]) "$fullbright" [ fullbright $arg1 ] menuitem [] -1 -menuitem [Random coloured light: ] -1 -menuitemtextinput [Radius: ] [ result $tmp_cradius ] [ if (&& (! (> $arg1 32)) (! (< $arg1 1))) [ tmp_cradius = $arg1 ] [ echo (red)Error: (yellow) $arg1 (white)is not a valid radius for a light entity. ] ] -menuitem [Place random light...] [ gencl $tmp_cradius ] -menuitem [Update random light...] gencl +menuitem (_ [Random coloured light: ]) -1 +menuitemtextinput (_ [Radius: ]) [ result $tmp_cradius ] [ if (&& (! (> $arg1 32)) (! (< $arg1 1))) [ tmp_cradius = $arg1 ] [ echo (red)Error: (yellow) $arg1 (white)is not a valid radius for a light entity. ] ] +menuitem (_ [Place random light...]) [ gencl $tmp_cradius ] +menuitem (_ [Update random light...]) gencl wlight = 1; wlight1 = 1 newmenu [White light] -menuitemslider [Light radius: ] 1 32 "$wlight" 1 [] [ wlight = $arg1 ] -menuitemslider [Brightness: ] 1 255 "$wlight1" 5 [] [ wlight1 = $arg1 ] +menuitemslider (_ [Light radius: ]) 1 32 "$wlight" 1 [] [ wlight = $arg1 ] +menuitemslider (_ [Brightness: ]) 1 255 "$wlight1" 5 [] [ wlight1 = $arg1 ] menuitem [] -1 -menuitem " 2 [ OK ] " [ newent light $wlight $wlight1 ] +menuitem (concatword (c 2) [ ] "[ OK ]" [ ]) [ newent light $wlight $wlight1 ] clight = 1; clight1 = 1; clight2 = 1; clight3 = 1 newmenu [Coloured light] -menuitemslider [Light radius: ] 1 32 "$clight" 1 [] [ clight = $arg1 ] +menuitemslider (_ [Light radius: ]) 1 32 "$clight" 1 [] [ clight = $arg1 ] menuitem [] -1 -menuitemslider [Red light: ] 1 255 "$clight1" 5 [] [ clight1 = $arg1 ] -menuitemslider [Green light: ] 1 255 "$clight2" 5 [] [ clight2 = $arg1 ] -menuitemslider [Blue light: ] 1 255 "$clight3" 5 [] [ clight3 = $arg1 ] +menuitemslider (_ [Red light: ]) 1 255 "$clight1" 5 [] [ clight1 = $arg1 ] +menuitemslider (_ [Green light: ]) 1 255 "$clight2" 5 [] [ clight2 = $arg1 ] +menuitemslider (_ [Blue light: ]) 1 255 "$clight3" 5 [] [ clight3 = $arg1 ] menuitem [] -1 -menuitem " 2 [ OK ]" [ newent light $clight $clight1 $clight2 $clight3 ] +menuitem (concatword (c 2) [ ] "[ OK ]") [ newent light $clight $clight1 $clight2 $clight3 ] //Entities menu 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 Spawn point]) [ newent playerstart 1 ] +menuitem (_ [CLA Spawn point]) [ newent playerstart 0 ] +menuitem (_ [FFA Spawn point]) [ newent playerstart 100 ] menuitem [] -1 -menuitem [RVSF CTF Flag] [ newent ctf-flag 1 ] -menuitem [CLA CTF Flag] [ newent ctf-flag 0 ] +menuitem (_ [RVSF CTF Flag]) [ newent ctf-flag 1 ] +menuitem (_ [CLA CTF Flag]) [ newent ctf-flag 0 ] menuitem [] -1 -menuitem [Ladder entity] "saycommand /newent ladder " [ echo "Ensure that you have placed the ladder mapmodel first (found in the mapmodels menu)..." ] -menuitem [Clip entity] [ showmenu Clips ] [ echo Clips can be used to block off areas that players shouldn't be able to access... ] +menuitem (_ [Ladder entity]) "saycommand /newent ladder " [ echo "Ensure that you have placed the ladder mapmodel first (found in the mapmodels menu)..." ] +menuitem (_ [Clip entity]) [ showmenu Clips ] [ echo Clips can be used to block off areas that players shouldn't be able to access... ] _clip00 = clip; _clip00status = 0; _clip01 = 0; _clip02 = 1; _clip03 = 1; _clip04 = 1 // Give aliases an initial value. newmenu Clips -menuitemslider [Clip type: ] 0 1 "$_clip00status" 1 [ Clip [Player Clip] ] [ _clip00 = (at [clip plclip] $arg1); _clip00status = $arg1 ] -menuitemslider [Elevation from ground: ] 0 50 "$_clip01" 1 [] [ _clip01 = $arg1 ] -menuitemslider [Length of clip (X): ] 0 50 "$_clip02" 1 [] [ _clip02 = $arg1 ] -menuitemslider [Width of clip (Y): ] 0 50 "$_clip03" 1 [] [ _clip03 = $arg1 ] -menuitemslider [Height of clip (Z): ] 0 50 "$_clip04" 1 [] [ _clip04 = $arg1 ] +menuitemslider (_ [Clip type: ]) 0 1 "$_clip00status" 1 [ Clip [Player Clip] ] [ _clip00 = (at [clip plclip] $arg1); _clip00status = $arg1 ] +menuitemslider (_ [Elevation from ground: ]) 0 50 "$_clip01" 1 [] [ _clip01 = $arg1 ] +menuitemslider (_ "Length of clip (X): ") 0 50 "$_clip02" 1 [] [ _clip02 = $arg1 ] +menuitemslider (_ "Width of clip (Y): ") 0 50 "$_clip03" 1 [] [ _clip03 = $arg1 ] +menuitemslider (_ "Height of clip (Z): ") 0 50 "$_clip04" 1 [] [ _clip04 = $arg1 ] menuitem [] -1 -menuitem " 2 [ OK ]" [ newent $_clip00 $_clip01 $_clip02 $_clip03 $_clip04 ] +menuitem (concatword (c 2) [ ] "[ OK ]") [ newent $_clip00 $_clip01 $_clip02 $_clip03 $_clip04 ] //Pickups menu newmenu Pickups -menuitem [Health] [ newent health ] -menuitem [Pistol Magazine] [ newent pistol ] -menuitem [Box of Ammo] [ newent ammobox ] -menuitem [Kevlar Vest] [ newent armour ] -menuitem [Helmet] [ newent helmet ] -menuitem [Akimbo] [ newent akimbo ] -menuitem [Grenades] [ newent grenades ] +menuitem (_ Health) [ newent health ] +menuitem (_ [Pistol Magazine]) [ newent pistol ] +menuitem (_ [Box of Ammo]) [ newent ammobox ] +menuitem (_ [Kevlar Vest]) [ newent armour ] +menuitem (_ Helmet) [ newent helmet ] +menuitem (_ Akimbo) [ newent akimbo ] +menuitem (_ Grenades) [ newent grenades ] //Arch and slope menu newmenu Arches -menuitem [Arch with no sideways curves] [ heightfield 2; arch 0 ] -menuitem [Arch with sideways curves (delta 1)] [ heightfield 2; arch 1 ] -menuitem [Arch with sideways curves (delta 2)] [ heightfield 2; arch 2 ] -menuitem [Arch with sideways curves (delta 3)] [ heightfield 2; arch 3 ] -menuitem [Arch with sideways curves (delta 4)] [ heightfield 2; arch 4 ] +menuitem (_ [Arch with no sideways curves]) [ heightfield 2; arch 0 ] +menuitem (_ [Arch with sideways curves (delta 1)]) [ heightfield 2; arch 1 ] +menuitem (_ [Arch with sideways curves (delta 2)]) [ heightfield 2; arch 2 ] +menuitem (_ [Arch with sideways curves (delta 3)]) [ heightfield 2; arch 3 ] +menuitem (_ [Arch with sideways curves (delta 4)]) [ heightfield 2; arch 4 ] menuitem [] -1 -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 (_ [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 [] -1 -menuitem [Fix heightfielding] [ solid 0; slope 0 0 ] +menuitem (_ [Fix heightfielding]) [ solid 0; slope 0 0 ] newmenu skymaps menuinit [ echo Please read: (red)/docs/mapediting5.html to find out how to PERMANENTLY add a custom skymap to your map... ] -menuitem [At sea skymap] [ loadsky "textures/skymaps/kothic/atsea" ] -menuitem [Canyons1 skymap] [ loadsky "textures/skymaps/ladynighthawk/inhcanyons1" ] -menuitem [Graveyard skymap] [ loadsky "textures/skymaps/socksky/grave" ] -menuitem [Ice Station skymap] [ loadsky "textures/skymaps/iceflow/iceflow" ] -menuitem [Mountain skymap] [ loadsky "textures/skymaps/makke/mountain" ] -menuitem [Nightball skymap] [ loadsky "textures/skymaps/socksky/nightball" ] -menuitem [Powerlines skymap] [ loadsky "textures/skymaps/humus/powerlines" ] -menuitem [Rocky skymap] [ loadsky "textures/skymaps/makke/rocky" ] -menuitem [Sand skymap] [ loadsky "textures/skymaps/makke/sand" ] -menuitem [Steini2 skymap] [ loadsky "textures/skymaps/steini/steini2" ] -menuitem [Steini3 skymap] [ loadsky "textures/skymaps/steini/steini3" ] -menuitem [Steini4 skymap] [ loadsky "textures/skymaps/steini/steini4" ] +menuitem (_ [At sea skymap]) [ loadsky "textures/skymaps/kothic/atsea" ] +menuitem (_ [Canyons1 skymap]) [ loadsky "textures/skymaps/ladynighthawk/inhcanyons1" ] +menuitem (_ [Graveyard skymap]) [ loadsky "textures/skymaps/socksky/grave" ] +menuitem (_ [Ice Station skymap]) [ loadsky "textures/skymaps/iceflow/iceflow" ] +menuitem (_ [Mountain skymap]) [ loadsky "textures/skymaps/makke/mountain" ] +menuitem (_ [Nightball skymap]) [ loadsky "textures/skymaps/socksky/nightball" ] +menuitem (_ [Powerlines skymap]) [ loadsky "textures/skymaps/humus/powerlines" ] +menuitem (_ [Rocky skymap]) [ loadsky "textures/skymaps/makke/rocky" ] +menuitem (_ [Sand skymap]) [ loadsky "textures/skymaps/makke/sand" ] +menuitem (_ [Steini2 skymap]) [ loadsky "textures/skymaps/steini/steini2" ] +menuitem (_ [Steini3 skymap]) [ loadsky "textures/skymaps/steini/steini3" ] +menuitem (_ [Steini4 skymap]) [ loadsky "textures/skymaps/steini/steini4" ] _closestenttypestatus = 0 //Map operations newmenu [Map operations] -menuitem [Newmap (128x128 cubes - recommended)] [ newmap 7 ] -menuitem [Newmap (256x256 cubes)] [ newmap 8 ] -menuitem [Increase mapsize (2x)] [ mapenlarge; echo The map size has been increased by 2. However, the new space is solid. To utilize it, you will need to turn it into non-solid space, by selecting it and pressing G. ] -menuitem [Create/edit a map message] menumapmsg -menuitem [Change waterlevel] [ saycommand [/waterlevel ] ] -menuitem [Change watercolour] [ showmenu [Water colour] ] -menuitem [Generate a random watercolour] genwc -menuitem [Generate a random fogcolour] [ fogcolour (genhex) ] -menuitem [Print entity stats] entstats -menuitem [Select the next closest entity] nextclosestent -menuitem [Copy the current closest entity] copyent -menuitem [Paste a previously copied entity] pasteent -menuitemcheckbox [Show mapmodel clippings: ] "$showmodelclipping" [ showmodelclipping $arg1 ] -menuitemslider [Select only these entities: ] 0 15 "$_closestenttypestatus" 1 [All Light Playerstart Pistol Ammobox Grenades Health Armour Akimbo Mapmodel Ladder CTF-flag Sound Clip Helmet PlayerClip] [ _closestentslider $arg1 ] +menuitem (_ [Newmap (128x128 cubes - recommended)]) [ newmap 7 ] +menuitem (_ [Newmap (256x256 cubes)]) [ newmap 8 ] +menuitem (_ [Increase mapsize (2x)]) [ mapenlarge; echo The map size has been increased by 2. However, the new space is solid. To utilize it, you will need to turn it into non-solid space, by selecting it and pressing G. ] +menuitem (_ [Create/edit a map message]) menumapmsg +menuitem (_ [Change waterlevel]) [ saycommand [/waterlevel ] ] +menuitem (_ [Change watercolour]) [ showmenu [Water colour] ] +menuitem (_ [Generate a random watercolour]) genwc +menuitem (_ [Generate a random fogcolour]) [ fogcolour (genhex) ] +menuitem (_ [Print entity stats]) entstats +menuitem (_ [Select the next closest entity]) nextclosestent +menuitem (_ [Copy the current closest entity]) copyent +menuitem (_ [Paste a previously copied entity]) pasteent +menuitemcheckbox (_ [Show mapmodel clippings: ]) "$showmodelclipping" [ showmodelclipping $arg1 ] +menuitemslider (_ [Select only these entities: ]) 0 15 "$_closestenttypestatus" 1 [All Light Playerstart Pistol Ammobox Grenades Health Armour Akimbo Mapmodel Ladder CTF-flag Sound Clip Helmet PlayerClip] [ _closestentslider $arg1 ] // "closestenttype" slider... _closestentslider = [ closestenttype (at ["" light playerstart pistol ammobox grenades health armour akimbo mapmodel ladder ctf-flag sound clip helmet plclip] $arg1); _closestenttypestatus = $arg1 ] @@ -151,350 +151,350 @@ const menumapmsg [ if (strcmp (getmapmsg) [Untitled Map by Unknown]) [ showmenu newmenu [Create a map message] menuinit [ menumapmsgtext = [] ] -menuitemtextinput [Enter your map message: ] [] [ menumapmsgtext = $arg1 ] [] 256 -menuitem " 2 [ OK ]" [ mapmsg $menumapmsgtext ] +menuitemtextinput (_ [Enter your map message: ]) [] [ menumapmsgtext = $arg1 ] [] 256 +menuitem (concatword (c 2) [ ] "[ OK ]") [ mapmsg $menumapmsgtext ] newmenu [Edit a map message] menuinit [ menumapmsgtext = [] ] -menuitemtextinput [Edit your map message: ] getmapmsg [ menumapmsgtext = $arg1 ] [] 256 -menuitem " 2 [ OK ]" [ mapmsg $menumapmsgtext ] +menuitemtextinput (_ [Edit your map message: ]) getmapmsg [ menumapmsgtext = $arg1 ] [] 256 +menuitem (concatword (c 2) [ ] "[ OK ]") [ mapmsg $menumapmsgtext ] redw = 1; greenw = 1; bluew = 1 newmenu [Water colour] -menuitemslider [Red pigment: ] 1 255 "$redw" 5 [] [ redw = $arg1 ] -menuitemslider [Green pigment: ] 1 255 "$greenw" 5 [] [ greenw = $arg1 ] -menuitemslider [Blue pigment: ] 1 255 "$bluew" 5 [] [ bluew = $arg1 ] +menuitemslider (_ [Red pigment: ]) 1 255 "$redw" 5 [] [ redw = $arg1 ] +menuitemslider (_ [Green pigment: ]) 1 255 "$greenw" 5 [] [ greenw = $arg1 ] +menuitemslider (_ [Blue pigment: ]) 1 255 "$bluew" 5 [] [ bluew = $arg1 ] menuitem [] -1 -menuitem " 2 [ OK ]" [ watercolour $redw $greenw $bluew ] +menuitem (concatword (c 2) [ ] "[ OK ]") [ watercolour $redw $greenw $bluew ] //Mapmodels newmenu Mapmodels -menuitem [Platforms] [ showmenu Platforms ] -menuitem [Ladders/Stairs] [ showmenu Ladders/Stairs ] -menuitem [Fencing] [ showmenu Fencing ] -menuitem [Plants] [ showmenu Plants ] -menuitem [Lights] [ showmenu Lights ] -menuitem [Street] [ showmenu Street ] -menuitem [Pipes] [showmenu Pipes] -menuitem [Office] [ showmenu Office ] -menuitem [Computers] [ showmenu Computers ] -menuitem [Home] [ showmenu Home ] -menuitem [Industrial] [ showmenu Industrial ] -menuitem [Military] [ showmenu Military ] -menuitem [Signs] [ showmenu Signs ] -menuitem [Other] [ showmenu Other ] +menuitem (_ Platforms) [ showmenu Platforms ] +menuitem (_ [Ladders/Stairs]) [ showmenu Ladders/Stairs ] +menuitem (_ Fencing) [ showmenu Fencing ] +menuitem (_ Plants) [ showmenu Plants ] +menuitem (_ Lights) [ showmenu Lights ] +menuitem (_ Street) [ showmenu Street ] +menuitem (_ Pipes) [showmenu Pipes] +menuitem (_ Office) [ showmenu Office ] +menuitem (_ Computers) [ showmenu Computers ] +menuitem (_ Home) [ showmenu Home ] +menuitem (_ Industrial) [ showmenu Industrial ] +menuitem (_ Military) [ showmenu Military ] +menuitem (_ Signs) [ showmenu Signs ] +menuitem (_ Other) [ showmenu Other ] newmenu Platforms -menuitem [Bridge (8x8)] [ saycommand "/newent mapmodel 1 " ] -menuitem [Platform (8x8)] [ saycommand "/newent mapmodel 57 " ] -menuitem [Wire platform (8x8)] [ saycommand "/newent mapmodel 73 " ] -menuitem [Ledge (4x1)] [ saycommand "/newent mapmodel 155 " ] -menuitem [Ledge (8x1)] [ saycommand "/newent mapmodel 156 " ] -menuitem [Ledge (16x1)] [ saycommand "/newent mapmodel 157 " ] -menuitem [Ledge Corner] [ saycommand "/newent mapmodel 158 " ] +menuitem (_ [Bridge (8x8)]) [ saycommand "/newent mapmodel 1 " ] +menuitem (_ [Platform (8x8)]) [ saycommand "/newent mapmodel 57 " ] +menuitem (_ [Wire platform (8x8)]) [ saycommand "/newent mapmodel 73 " ] +menuitem (_ [Ledge (4x1)]) [ saycommand "/newent mapmodel 155 " ] +menuitem (_ [Ledge (8x1)]) [ saycommand "/newent mapmodel 156 " ] +menuitem (_ [Ledge (16x1)]) [ saycommand "/newent mapmodel 157 " ] +menuitem (_ [Ledge Corner]) [ saycommand "/newent mapmodel 158 " ] newmenu Ladders/Stairs -menuitem [Single ladder rung (1)] [ saycommand "/newent mapmodel 58 " ] -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 ] +menuitem (_ [Single ladder rung (1)]) [ saycommand "/newent mapmodel 58 " ] +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 ] menuitem [] -1 -menuitem [Hangable Ladder (2)] [ saycommand "/newent mapmodel 136 " ] -menuitem [Hangable Ladder (6)] [ saycommand "/newent mapmodel 137 " ] -menuitem [Hangable Ladder (Top, Over)] [ saycommand "/newent mapmodel 138 " ] -menuitem [Hangable Ladder (Top, Side)] [ saycommand "/newent mapmodel 139 " ] -menuitem [Hangable Ladder (Bottom)] [ saycommand "/newent mapmodel 140 " ] +menuitem (_ [Hangable Ladder (2)]) [ saycommand "/newent mapmodel 136 " ] +menuitem (_ [Hangable Ladder (6)]) [ saycommand "/newent mapmodel 137 " ] +menuitem (_ [Hangable Ladder (Top, Over)]) [ saycommand "/newent mapmodel 138 " ] +menuitem (_ [Hangable Ladder (Top, Side)]) [ saycommand "/newent mapmodel 139 " ] +menuitem (_ [Hangable Ladder (Bottom)]) [ saycommand "/newent mapmodel 140 " ] menuitem [] -1 -menuitem [Wire stairs (Top)] [ saycommand "/newent mapmodel 79 " ] -menuitem [Wire stairs (Bottom)] [ saycommand "/newent mapmodel 80 " ] +menuitem (_ [Wire stairs (Top)]) [ saycommand "/newent mapmodel 79 " ] +menuitem (_ [Wire stairs (Bottom)]) [ saycommand "/newent mapmodel 80 " ] newmenu Home // Some of these models are doubled-up in the office menu. -menuitem [Picture frame] [ saycommand "/newent mapmodel 29 " ] -menuitem [Milk] [ newent mapmodel 69 ] -menuitem [CRT TV] [ newent mapmodel 86 ] -menuitem [CRT TV in stand] [ saycommand "/newent mapmodel 70 " ] -menuitem [Plasma TV] [ newent mapmodel 72 ] -menuitem [Power meter] [ newent mapmodel 74 ] -menuitem [Rack] [ newent mapmodel 75 ] -menuitem [Utility table] [ newent mapmodel 87 ] -menuitem [Ceiling fan] [ saycommand "/newent mapmodel 113 " ] -menuitem [Window] [ newent mapmodel 126 ] -menuitem [Shelf] [ newent mapmodel 128 ] -menuitem [Wall switch] [ saycommand "/newent mapmodel 150 " ] -menuitem [Wall power outlet] [ saycommand "/newent mapmodel 151 " ] +menuitem (_ [Picture frame]) [ saycommand "/newent mapmodel 29 " ] +menuitem (_ Milk) [ newent mapmodel 69 ] +menuitem (_ [CRT TV]) [ newent mapmodel 86 ] +menuitem (_ [CRT TV in stand]) [ saycommand "/newent mapmodel 70 " ] +menuitem (_ [Plasma TV]) [ newent mapmodel 72 ] +menuitem (_ [Power meter]) [ newent mapmodel 74 ] +menuitem (_ Rack) [ newent mapmodel 75 ] +menuitem (_ [Utility table]) [ newent mapmodel 87 ] +menuitem (_ [Ceiling fan]) [ saycommand "/newent mapmodel 113 " ] +menuitem (_ Window) [ newent mapmodel 126 ] +menuitem (_ Shelf) [ newent mapmodel 128 ] +menuitem (_ [Wall switch]) [ saycommand "/newent mapmodel 150 " ] +menuitem (_ [Wall power outlet]) [ saycommand "/newent mapmodel 151 " ] newmenu Military -menuitem [Bullet] [ newent mapmodel 61 ] -menuitem [Shotgun shell] [ newent mapmodel 78 ] -menuitem [Target] [ newent mapmodel 100 ] -menuitem [Radar console] [ newent mapmodel 76 ] -menuitem [Razor wire] [ newent mapmodel 116 ] -menuitem [Guard tower] [ newent mapmodel 129 ] [ echo (c 3)This mapmodel will need to be properly clipped! ] -menuitem [Weapon rack] [ newent mapmodel 183 ] +menuitem (_ Bullet) [ newent mapmodel 61 ] +menuitem (_ [Shotgun shell]) [ newent mapmodel 78 ] +menuitem (_ Target) [ newent mapmodel 100 ] +menuitem (_ [Radar console]) [ newent mapmodel 76 ] +menuitem (_ [Razor wire]) [ newent mapmodel 116 ] +menuitem (_ [Guard tower]) [ newent mapmodel 129 ] [ echo (c 3) (_ [This mapmodel will need to be properly clipped!]) ] +menuitem (_ [Weapon rack]) [ newent mapmodel 183 ] newmenu Computers -menuitem [Laptop] [ newent mapmodel 28 ] -menuitem [PC] [ newent mapmodel 101 ] -menuitem [Computer interfaces] [ newent mapmodel 65 ] -menuitem [Communications rack] [ newent mapmodel 63 ] -menuitem [Communications rack 2] [ newent mapmodel 64 ] -menuitem [Server rack] [ newent mapmodel 119 ] -menuitem [Server cluster 1] [ saycommand "/newent mapmodel 120 " ] -menuitem [Server cluster 2] [ saycommand "/newent mapmodel 121 " ] -menuitem [Server cluster 3] [ saycommand "/newent mapmodel 122 " ] -menuitem [Server cluster 4] [ saycommand "/newent mapmodel 123 " ] -menuitem [Server cluster 5] [ saycommand "/newent mapmodel 124 " ] -menuitem [Server cluster 6] [ saycommand "/newent mapmodel 125 " ] +menuitem (_ Laptop) [ newent mapmodel 28 ] +menuitem (_ PC) [ newent mapmodel 101 ] +menuitem (_ [Computer interfaces]) [ newent mapmodel 65 ] +menuitem (_ [Communications rack]) [ newent mapmodel 63 ] +menuitem (_ [Communications rack 2]) [ newent mapmodel 64 ] +menuitem (_ [Server rack]) [ newent mapmodel 119 ] +menuitem (_ [Server cluster 1]) [ saycommand "/newent mapmodel 120 " ] +menuitem (_ [Server cluster 2]) [ saycommand "/newent mapmodel 121 " ] +menuitem (_ [Server cluster 3]) [ saycommand "/newent mapmodel 122 " ] +menuitem (_ [Server cluster 4]) [ saycommand "/newent mapmodel 123 " ] +menuitem (_ [Server cluster 5]) [ saycommand "/newent mapmodel 124 " ] +menuitem (_ [Server cluster 6]) [ saycommand "/newent mapmodel 125 " ] newmenu Street -menuitem [Park Bench] [ newent mapmodel 9 ] -menuitem [Dumpster] [ newent mapmodel 10 ] -menuitem [Trashbag] [ newent mapmodel 84 ] -menuitem [Trashcan] [ newent mapmodel 85 ] -menuitem [Roadblock/Barrier] [ newent mapmodel 11 ] -menuitem [Roadblock/Barrier 2] [ newent mapmodel 12 ] -menuitem [Barrier 3] [ newent mapmodel 168 ] -menuitem [Cone] [ newent mapmodel 173 ] -menuitem [Fallen cone] [ newent mapmodel 174 ] -menuitem [Wheel: Vertical] [ newent mapmodel 88 ] -menuitem [Tyre: Horizontal] [ newent mapmodel 83 ] -menuitem [Gray milk crate] [ newent mapmodel 112 ] -menuitem [Red milk crate] [ newent mapmodel 134 ] -menuitem [Blue milk crate] [ newent mapmodel 135 ] -menuitem [Car battery] [ newent mapmodel 152 ] -menuitem [Antenna] [ newent mapmodel 153 ] -menuitem [Hotel sign] [ saycommand "/newent mapmodel 169 " ] -menuitem [Fire alarm] [ saycommand "/newent mapmodel 184 " ] -menuitem [Electric box (1)] [ newent mapmodel 186 ] -menuitem [Electric box (2)] [ newent mapmodel 187 ] +menuitem (_ [Park Bench]) [ newent mapmodel 9 ] +menuitem (_ Dumpster) [ newent mapmodel 10 ] +menuitem (_ Trashbag) [ newent mapmodel 84 ] +menuitem (_ Trashcan) [ newent mapmodel 85 ] +menuitem (_ Roadblock/Barrier) [ newent mapmodel 11 ] +menuitem (_ [Roadblock/Barrier 2]) [ newent mapmodel 12 ] +menuitem (_ [Barrier 3]) [ newent mapmodel 168 ] +menuitem (_ Cone) [ newent mapmodel 173 ] +menuitem (_ [Fallen cone]) [ newent mapmodel 174 ] +menuitem (_ [Wheel: Vertical]) [ newent mapmodel 88 ] +menuitem (_ [Tyre: Horizontal]) [ newent mapmodel 83 ] +menuitem (_ [Gray milk crate]) [ newent mapmodel 112 ] +menuitem (_ [Red milk crate]) [ newent mapmodel 134 ] +menuitem (_ [Blue milk crate]) [ newent mapmodel 135 ] +menuitem (_ [Car battery]) [ newent mapmodel 152 ] +menuitem (_ Antenna) [ newent mapmodel 153 ] +menuitem (_ [Hotel sign]) [ saycommand "/newent mapmodel 169 " ] +menuitem (_ [Fire alarm]) [ saycommand "/newent mapmodel 184 " ] +menuitem (_ [Electric box (1)]) [ newent mapmodel 186 ] +menuitem (_ [Electric box (2)]) [ newent mapmodel 187 ] -const tree_warning (concatword (c 3) [Trees are expensive mapmodels. Please only use a maximum of 1 or 2 in a map.]) +const tree_warning (concatword (c 3) (_ [Trees are expensive mapmodels. Please only use a maximum of 1 or 2 in a map.])) newmenu Plants -menuitem [Grass 1] [ newent mapmodel 17 ] -menuitem [Grass 1 (Dry)] [ newent mapmodel 18 ] -menuitem [Grass 1 (Snow)] [ newent mapmodel 19 ] -menuitem [Grass 2] [ newent mapmodel 20 ] -menuitem [Grass 2 (Dry)] [ newent mapmodel 21 ] -menuitem [Grass 2 (Snow)] [ newent mapmodel 22 ] -menuitem [Plant 1] [ newent mapmodel 23 ] -menuitem [Plant 1 (Dry)] [ newent mapmodel 24 ] -menuitem [Plant 1 (Snow)] [ newent mapmodel 25 ] -menuitem [Tree trunk] [ newent mapmodel 130 ] -menuitem [Tree 1] [ newent mapmodel 114 ] [ echo $tree_warning ] -menuitem [Tree 2] [ newent mapmodel 117 ] [ echo $tree_warning ] -menuitem [Pine tree] [ newent mapmodel 118 ] [ echo $tree_warning ] -menuitem [Palm tree] [ newent mapmodel 115 ] [ echo $tree_warning ] -menuitem [Bush] [newent mapmodel 170] -menuitem [Small tree] [newent mapmodel 171] -menuitem [Grasses] [newent mapmodel 172] +menuitem (_ [Grass 1]) [ newent mapmodel 17 ] +menuitem (_ [Grass 1 (Dry)]) [ newent mapmodel 18 ] +menuitem (_ [Grass 1 (Snow)]) [ newent mapmodel 19 ] +menuitem (_ [Grass 2]) [ newent mapmodel 20 ] +menuitem (_ [Grass 2 (Dry)]) [ newent mapmodel 21 ] +menuitem (_ [Grass 2 (Snow)]) [ newent mapmodel 22 ] +menuitem (_ [Plant 1]) [ newent mapmodel 23 ] +menuitem (_ [Plant 1 (Dry)]) [ newent mapmodel 24 ] +menuitem (_ [Plant 1 (Snow)]) [ newent mapmodel 25 ] +menuitem (_ [Tree trunk]) [ newent mapmodel 130 ] +menuitem (_ [Tree 1]) [ newent mapmodel 114 ] [ echo $tree_warning ] +menuitem (_ [Tree 2]) [ newent mapmodel 117 ] [ echo $tree_warning ] +menuitem (_ [Pine tree]) [ newent mapmodel 118 ] [ echo $tree_warning ] +menuitem (_ [Palm tree]) [ newent mapmodel 115 ] [ echo $tree_warning ] +menuitem (_ Bush) [newent mapmodel 170] +menuitem (_ [Small tree]) [newent mapmodel 171] +menuitem (_ Grasses) [newent mapmodel 172] newmenu Office -menuitem [Office chair] [ newent mapmodel 27 ] -menuitem [Locker] [ newent mapmodel 30 ] -menuitem [Air Conditioner (Outer)] [ newent mapmodel 60 ] -menuitem [Air Conditioner (Inner)] [ newent mapmodel 107 ] -menuitem [Office desk] [ newent mapmodel 71 ] -menuitem [Ceiling fan] [ saycommand "/newent mapmodel 113 " ] -menuitem [Wall switch] [ saycommand "/newent mapmodel 150 " ] -menuitem [Wall power outlet] [ saycommand "/newent mapmodel 151 " ] -menuitem [Pinboard] [ saycommand "/newent mapmodel 154 " ] -menuitem [Fire extinguisher] [ newent mapmodel 175 ] -menuitem [Fire extinguisher box] [ newent mapmodel 182 ] -menuitem [Dropped ceiling, frame] [ saycommand "/newent mapmodel 177 " ] -menuitem [Dropped ceiling, tiles] [ saycommand "/newent mapmodel 178 " ] -menuitem [Dropped ceiling, single] [ saycommand "/newent mapmodel 179 " ] -menuitem [Dropped ceiling, light 1] [ saycommand "/newent mapmodel 180 " ] -menuitem [Dropped ceiling, light 2] [ saycommand "/newent mapmodel 181 " ] -menuitem [World map] [ saycommand "/newent mapmodel 185 " ] +menuitem (_ [Office chair]) [ newent mapmodel 27 ] +menuitem (_ Locker) [ newent mapmodel 30 ] +menuitem (_ [Air Conditioner (Outer)]) [ newent mapmodel 60 ] +menuitem (_ [Air Conditioner (Inner)]) [ newent mapmodel 107 ] +menuitem (_ [Office desk]) [ newent mapmodel 71 ] +menuitem (_ [Ceiling fan]) [ saycommand "/newent mapmodel 113 " ] +menuitem (_ [Wall switch]) [ saycommand "/newent mapmodel 150 " ] +menuitem (_ [Wall power outlet]) [ saycommand "/newent mapmodel 151 " ] +menuitem (_ Pinboard) [ saycommand "/newent mapmodel 154 " ] +menuitem (_ [Fire extinguisher]) [ newent mapmodel 175 ] +menuitem (_ [Fire extinguisher box]) [ newent mapmodel 182 ] +menuitem (_ [Dropped ceiling, frame]) [ saycommand "/newent mapmodel 177 " ] +menuitem (_ [Dropped ceiling, tiles]) [ saycommand "/newent mapmodel 178 " ] +menuitem (_ [Dropped ceiling, single]) [ saycommand "/newent mapmodel 179 " ] +menuitem (_ [Dropped ceiling, light 1]) [ saycommand "/newent mapmodel 180 " ] +menuitem (_ [Dropped ceiling, light 2]) [ saycommand "/newent mapmodel 181 " ] +menuitem (_ [World map]) [ saycommand "/newent mapmodel 185 " ] newmenu Pipes -menuitem [Large concrete pipe] [ newent mapmodel 108 ] -menuitem [Medium metal pipe] [ newent mapmodel 109 ] -menuitem [Small metal pipe] [ newent mapmodel 110 ] -menuitem [Drainpipe] [ newent mapmodel 59 ] -menuitem [Closed pipe, horz] [ saycommand "/newent mapmodel 144" ] -menuitem [Closed pipe, l-down] [ saycommand "/newent mapmodel 145" ] -menuitem [Closed pipe, l-left] [ saycommand "/newent mapmodel 146" ] -menuitem [Closed pipe, l-right] [ saycommand "/newent mapmodel 147" ] -menuitem [Closed pipe, l-up] [ saycommand "/newent mapmodel 148" ] -menuitem [Closed pipe, vert] [ saycommand "/newent mapmodel 149" ] +menuitem (_ [Large concrete pipe]) [ newent mapmodel 108 ] +menuitem (_ [Medium metal pipe]) [ newent mapmodel 109 ] +menuitem (_ [Small metal pipe]) [ newent mapmodel 110 ] +menuitem (_ Drainpipe) [ newent mapmodel 59 ] +menuitem (_ [Closed pipe, horz]) [ saycommand "/newent mapmodel 144" ] +menuitem (_ [Closed pipe, l-down]) [ saycommand "/newent mapmodel 145" ] +menuitem (_ [Closed pipe, l-left]) [ saycommand "/newent mapmodel 146" ] +menuitem (_ [Closed pipe, l-right]) [ saycommand "/newent mapmodel 147" ] +menuitem (_ [Closed pipe, l-up]) [ saycommand "/newent mapmodel 148" ] +menuitem (_ [Closed pipe, vert]) [ saycommand "/newent mapmodel 149" ] newmenu Lights -menuitem [Strahler] [ saycommand /newent mapmodel 31 ] -menuitem [Fluorescent lamp] [ saycommand "/newent mapmodel 32 " ] -menuitem [LightBulb] [ saycommand "/newent mapmodel 33 " ] -menuitem [Hanging lamp] [ saycommand "/newent mapmodel 132 " ] -menuitem [Alarm lamp] [ saycommand "/newent mapmodel 141 " ] -menuitem [Plate lamp] [ saycommand "/newent mapmodel 142 " ] -menuitem [Street light] [ newent mapmodel 7 ] -menuitem [Street light (2)] [ newent mapmodel 143 ] +menuitem (_ Strahler) [ saycommand /newent mapmodel 31 ] +menuitem (_ [Fluorescent lamp]) [ saycommand "/newent mapmodel 32 " ] +menuitem (_ LightBulb) [ saycommand "/newent mapmodel 33 " ] +menuitem (_ [Hanging lamp]) [ saycommand "/newent mapmodel 132 " ] +menuitem (_ [Alarm lamp]) [ saycommand "/newent mapmodel 141 " ] +menuitem (_ [Plate lamp]) [ saycommand "/newent mapmodel 142 " ] +menuitem (_ [Street light]) [ newent mapmodel 7 ] +menuitem (_ [Street light (2)]) [ newent mapmodel 143 ] 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 ] -menuitem [Cinderblock] [ newent mapmodel 62 ] -menuitem [Radioactive drum] [ newent mapmodel 81 ] -menuitem [Knocked-over radioactive drum] [ newent mapmodel 82 ] -menuitem [Swiveling security camera] [ saycommand "/newent mapmodel 77 " ] -menuitem [Camera mount (Vertical)] [ saycommand "/newent mapmodel 104 " ] -menuitem [Camera mount (Wall)] [ saycommand "/newent mapmodel 105 " ] -menuitem [Vent flap] [ newent mapmodel 133 ] -menuitem [Pickaxe, horz] [ newent mapmodel 164 ] -menuitem [Pickaxe, vert] [ newent mapmodel 165 ] -menuitem [Shovel, vert] [ newent mapmodel 188 ] -menuitem [Shovel, free-standing] [ newent mapmodel 189 ] -menuitem [Shovel, horz] [ newent mapmodel 190 ] +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 ] +menuitem (_ Cinderblock) [ newent mapmodel 62 ] +menuitem (_ [Radioactive drum]) [ newent mapmodel 81 ] +menuitem (_ [Knocked-over radioactive drum]) [ newent mapmodel 82 ] +menuitem (_ [Swiveling security camera]) [ saycommand "/newent mapmodel 77 " ] +menuitem (_ [Camera mount (Vertical)]) [ saycommand "/newent mapmodel 104 " ] +menuitem (_ [Camera mount (Wall)]) [ saycommand "/newent mapmodel 105 " ] +menuitem (_ [Vent flap]) [ newent mapmodel 133 ] +menuitem (_ [Pickaxe, horz]) [ newent mapmodel 164 ] +menuitem (_ [Pickaxe, vert]) [ newent mapmodel 165 ] +menuitem (_ [Shovel, vert]) [ newent mapmodel 188 ] +menuitem (_ [Shovel, free-standing]) [ newent mapmodel 189 ] +menuitem (_ [Shovel, horz]) [ newent mapmodel 190 ] newmenu Fencing -menuitem [Wire fence] [ newent mapmodel 13 ] -menuitem [Wire fencepost] [ newent mapmodel 14 ] -menuitem [Open wire fence-gate] [ newent mapmodel 15 ] -menuitem [Closed wire fence-gate] [ newent mapmodel 16 ] -menuitem [Barbwire fence-top] [ newent mapmodel 127 ] +menuitem (_ [Wire fence]) [ newent mapmodel 13 ] +menuitem (_ [Wire fencepost]) [ newent mapmodel 14 ] +menuitem (_ [Open wire fence-gate]) [ newent mapmodel 15 ] +menuitem (_ [Closed wire fence-gate]) [ newent mapmodel 16 ] +menuitem (_ [Barbwire fence-top]) [ newent mapmodel 127 ] menuitem [] -1 -menuitem [Corrugated fence] [ newent mapmodel 102 ] -menuitem [Corrugated fence 2] [ newent mapmodel 103 ] -menuitem [Corrugated fence post] [ newent mapmodel 66 ] +menuitem (_ [Corrugated fence]) [ newent mapmodel 102 ] +menuitem (_ [Corrugated fence 2]) [ newent mapmodel 103 ] +menuitem (_ [Corrugated fence post]) [ newent mapmodel 66 ] menuitem [] -1 -menuitem [Guard rail] [ newent mapmodel 67 ] -menuitem [Guard rail 2] [ newent mapmodel 68 ] -menuitem [Guard rail pole] [ newent mapmodel 106 ] +menuitem (_ [Guard rail]) [ newent mapmodel 67 ] +menuitem (_ [Guard rail 2]) [ newent mapmodel 68 ] +menuitem (_ [Guard rail pole]) [ newent mapmodel 106 ] newmenu Signs -menuitem [Flammable] [ saycommand "/newent mapmodel 43 " ] -menuitem [Speed Limit 5] [ saycommand "/newent mapmodel 44 " ] -menuitem [Maintenance] [ saycommand "/newent mapmodel 45 " ] -menuitem [Caution] [ saycommand "/newent mapmodel 46 " ] -menuitem [Biohazard] [ saycommand "/newent mapmodel 47 " ] -menuitem [Toxic] [ saycommand "/newent mapmodel 92 " ] -menuitem [Biohazard (2)] [ saycommand "/newent mapmodel 89 " ] -menuitem [Chemicals] [ saycommand "/newent mapmodel 90 " ] -menuitem [Confined space] [ saycommand "/newent mapmodel 91 " ] -menuitem [Do not enter!] [ saycommand "/newent mapmodel 93 " ] -menuitem [Explosives] [ saycommand "/newent mapmodel 94 " ] -menuitem [First aid] [ saycommand "/newent mapmodel 95 " ] -menuitem [No entry] [ saycommand "/newent mapmodel 96 " ] -menuitem [No smoking] [ saycommand "/newent mapmodel 97 " ] -menuitem [Radioactive] [ saycommand "/newent mapmodel 98 " ] -menuitem [Restricted area] [ saycommand "/newent mapmodel 99 " ] -menuitem [Arab] [ saycommand "/newent mapmodel 111 " ] -menuitem [Wanted Poster] [ saycommand "/newent mapmodel 55 " ] +menuitem (_ Flammable) [ saycommand "/newent mapmodel 43 " ] +menuitem (_ [Speed Limit 5]) [ saycommand "/newent mapmodel 44 " ] +menuitem (_ Maintenance) [ saycommand "/newent mapmodel 45 " ] +menuitem (_ Caution) [ saycommand "/newent mapmodel 46 " ] +menuitem (_ Biohazard) [ saycommand "/newent mapmodel 47 " ] +menuitem (_ Toxic) [ saycommand "/newent mapmodel 92 " ] +menuitem (_ [Biohazard (2)]) [ saycommand "/newent mapmodel 89 " ] +menuitem (_ Chemicals) [ saycommand "/newent mapmodel 90 " ] +menuitem (_ [Confined space]) [ saycommand "/newent mapmodel 91 " ] +menuitem (_ [Do not enter!]) [ saycommand "/newent mapmodel 93 " ] +menuitem (_ Explosives) [ saycommand "/newent mapmodel 94 " ] +menuitem (_ [First aid]) [ saycommand "/newent mapmodel 95 " ] +menuitem (_ [No entry]) [ saycommand "/newent mapmodel 96 " ] +menuitem (_ [No smoking]) [ saycommand "/newent mapmodel 97 " ] +menuitem (_ Radioactive) [ saycommand "/newent mapmodel 98 " ] +menuitem (_ [Restricted area]) [ saycommand "/newent mapmodel 99 " ] +menuitem (_ Arab) [ saycommand "/newent mapmodel 111 " ] +menuitem (_ [Wanted Poster]) [ saycommand "/newent mapmodel 55 " ] 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 [Potato box] [ newent mapmodel 56 ] -menuitem [Cardboard box] [ newent mapmodel 131 ] -menuitem [Chinese take-out] [ newent mapmodel 159 ] -menuitem [Plastic bottle] [ newent mapmodel 160 ] -menuitem [Squashed plastic bottle] [ newent mapmodel 161 ] -menuitem [Plastic bag, white] [ newent mapmodel 162 ] -menuitem [Plastic bag, yellow] [ newent mapmodel 163 ] -menuitem [Newspaper (1)] [ newent mapmodel 166 ] -menuitem [Newspaper (2)] [ newent mapmodel 167 ] -menuitem [Paintcan] [ newent mapmodel 176 ] +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 (_ [Potato box]) [ newent mapmodel 56 ] +menuitem (_ [Cardboard box]) [ newent mapmodel 131 ] +menuitem (_ [Chinese take-out]) [ newent mapmodel 159 ] +menuitem (_ [Plastic bottle]) [ newent mapmodel 160 ] +menuitem (_ [Squashed plastic bottle]) [ newent mapmodel 161 ] +menuitem (_ [Plastic bag, white]) [ newent mapmodel 162 ] +menuitem (_ [Plastic bag, yellow]) [ newent mapmodel 163 ] +menuitem (_ [Newspaper (1)]) [ newent mapmodel 166 ] +menuitem (_ [Newspaper (2)]) [ newent mapmodel 167 ] +menuitem (_ Paintcan) [ newent mapmodel 176 ] newmenu [Ambient sounds] menuinit [ ambientsoundmenu = [] ] -menuitem [Cave drip] [ ambientsoundmenu = 0; showmenu "Ambient sound settings" ] -menuitem [Cars driving in the distance] [ ambientsoundmenu = 1; showmenu "Ambient sound settings" ] -menuitem [Humm (01)] [ ambientsoundmenu = 2; showmenu "Ambient sound settings" ] -menuitem [Humm (02)] [ ambientsoundmenu = 3; showmenu "Ambient sound settings" ] -menuitem [Crickets at night] [ ambientsoundmenu = 4; showmenu "Ambient sound settings" ] -menuitem [Water (01)] [ ambientsoundmenu = 5; showmenu "Ambient sound settings" ] -menuitem [Wind] [ ambientsoundmenu = 6; showmenu "Ambient sound settings" ] -menuitem [Air conditioner] [ ambientsoundmenu = 7; showmenu "Ambient sound settings" ] -menuitem [Compressor] [ ambientsoundmenu = 8; showmenu "Ambient sound settings" ] -menuitem [Crow] [ ambientsoundmenu = 9; showmenu "Ambient sound settings" ] -menuitem [Dogs (01)] [ ambientsoundmenu = 10; showmenu "Ambient sound settings" ] -menuitem [Helicopter] [ ambientsoundmenu = 11; showmenu "Ambient sound settings" ] -menuitem [Humm (03)] [ ambientsoundmenu = 12; showmenu "Ambient sound settings" ] -menuitem [Humm (04)] [ ambientsoundmenu = 13; showmenu "Ambient sound settings" ] -menuitem [Humm (05)] [ ambientsoundmenu = 14; showmenu "Ambient sound settings" ] -menuitem [Humm (06)] [ ambientsoundmenu = 15; showmenu "Ambient sound settings" ] -menuitem [Dogs (02)] [ ambientsoundmenu = 16; showmenu "Ambient sound settings" ] -menuitem [Night (01)] [ ambientsoundmenu = 17; showmenu "Ambient sound settings" ] -menuitem [Night (02)] [ ambientsoundmenu = 18; showmenu "Ambient sound settings" ] -menuitem [Radio comms] [ ambientsoundmenu = 19; showmenu "Ambient sound settings" ] -menuitem [Radio static] [ ambientsoundmenu = 20; showmenu "Ambient sound settings" ] -menuitem [Sat-coms] [ ambientsoundmenu = 21; showmenu "Ambient sound settings" ] -menuitem [Sludge] [ ambientsoundmenu = 22; showmenu "Ambient sound settings" ] -menuitem [Static (01)] [ ambientsoundmenu = 23; showmenu "Ambient sound settings" ] -menuitem [Static (02)] [ ambientsoundmenu = 24; showmenu "Ambient sound settings" ] -menuitem [Vent (01)] [ ambientsoundmenu = 25; showmenu "Ambient sound settings" ] -menuitem [Vent (02)] [ ambientsoundmenu = 26; showmenu "Ambient sound settings" ] -menuitem [Water owl] [ ambientsoundmenu = 27; showmenu "Ambient sound settings" ] -menuitem [Water (02)] [ ambientsoundmenu = 28; showmenu "Ambient sound settings" ] -menuitem [Water drip] [ ambientsoundmenu = 29; showmenu "Ambient sound settings" ] -menuitem [Wind (02)] [ ambientsoundmenu = 30; showmenu "Ambient sound settings" ] -menuitem [Waterpipes (01)] [ ambientsoundmenu = 31; showmenu "Ambient sound settings" ] -menuitem [Waterpipes (02)] [ ambientsoundmenu = 32; showmenu "Ambient sound settings" ] -menuitem [Warning alarm] [ ambientsoundmenu = 33; showmenu "Ambient sound settings" ] -menuitem [Gastank] [ ambientsoundmenu = 34; showmenu "Ambient sound settings" ] -menuitem [Keyboard] [ ambientsoundmenu = 35; showmenu "Ambient sound settings" ] -menuitem [Factory] [ ambientsoundmenu = 36; showmenu "Ambient sound settings" ] -menuitem [Vent (03)] [ ambientsoundmenu = 37; showmenu "Ambient sound settings" ] -menuitem [Waterfront] [ ambientsoundmenu = 38; showmenu "Ambient sound settings" ] -menuitem [Generator] [ ambientsoundmenu = 39; showmenu "Ambient sound settings" ] -menuitem [Electric buzz] [ ambientsoundmenu = 40; showmenu "Ambient sound settings" ] -menuitem [Alarm] [ ambientsoundmenu = 41; showmenu "Ambient sound settings" ] -menuitem [Flies] [ ambientsoundmenu = 42; showmenu "Ambient sound settings" ] -menuitem [Desert hawk] [ ambientsoundmenu = 43; showmenu "Ambient sound settings" ] -menuitem [Owl] [ ambientsoundmenu = 44; showmenu "Ambient sound settings" ] -menuitem [City birds] [ ambientsoundmenu = 45; showmenu "Ambient sound settings" ] +menuitem (_ [Cave drip]) [ ambientsoundmenu = 0; showmenu "Ambient sound settings" ] +menuitem (_ [Cars driving in the distance]) [ ambientsoundmenu = 1; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (01)]) [ ambientsoundmenu = 2; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (02)]) [ ambientsoundmenu = 3; showmenu "Ambient sound settings" ] +menuitem (_ [Crickets at night]) [ ambientsoundmenu = 4; showmenu "Ambient sound settings" ] +menuitem (_ [Water (01)]) [ ambientsoundmenu = 5; showmenu "Ambient sound settings" ] +menuitem (_ Wind) [ ambientsoundmenu = 6; showmenu "Ambient sound settings" ] +menuitem (_ [Air conditioner]) [ ambientsoundmenu = 7; showmenu "Ambient sound settings" ] +menuitem (_ Compressor) [ ambientsoundmenu = 8; showmenu "Ambient sound settings" ] +menuitem (_ Crow) [ ambientsoundmenu = 9; showmenu "Ambient sound settings" ] +menuitem (_ [Dogs (01)]) [ ambientsoundmenu = 10; showmenu "Ambient sound settings" ] +menuitem (_ Helicopter) [ ambientsoundmenu = 11; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (03)]) [ ambientsoundmenu = 12; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (04)]) [ ambientsoundmenu = 13; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (05)]) [ ambientsoundmenu = 14; showmenu "Ambient sound settings" ] +menuitem (_ [Humm (06)]) [ ambientsoundmenu = 15; showmenu "Ambient sound settings" ] +menuitem (_ [Dogs (02)]) [ ambientsoundmenu = 16; showmenu "Ambient sound settings" ] +menuitem (_ [Night (01)]) [ ambientsoundmenu = 17; showmenu "Ambient sound settings" ] +menuitem (_ [Night (02)]) [ ambientsoundmenu = 18; showmenu "Ambient sound settings" ] +menuitem (_ [Radio comms]) [ ambientsoundmenu = 19; showmenu "Ambient sound settings" ] +menuitem (_ [Radio static]) [ ambientsoundmenu = 20; showmenu "Ambient sound settings" ] +menuitem (_ [Sat-coms]) [ ambientsoundmenu = 21; showmenu "Ambient sound settings" ] +menuitem (_ [Sludge]) [ ambientsoundmenu = 22; showmenu "Ambient sound settings" ] +menuitem (_ [Static (01)]) [ ambientsoundmenu = 23; showmenu "Ambient sound settings" ] +menuitem (_ [Static (02)]) [ ambientsoundmenu = 24; showmenu "Ambient sound settings" ] +menuitem (_ [Vent (01)]) [ ambientsoundmenu = 25; showmenu "Ambient sound settings" ] +menuitem (_ [Vent (02)]) [ ambientsoundmenu = 26; showmenu "Ambient sound settings" ] +menuitem (_ [Water owl]) [ ambientsoundmenu = 27; showmenu "Ambient sound settings" ] +menuitem (_ [Water (02)]) [ ambientsoundmenu = 28; showmenu "Ambient sound settings" ] +menuitem (_ [Water drip]) [ ambientsoundmenu = 29; showmenu "Ambient sound settings" ] +menuitem (_ [Wind (02)]) [ ambientsoundmenu = 30; showmenu "Ambient sound settings" ] +menuitem (_ [Waterpipes (01)]) [ ambientsoundmenu = 31; showmenu "Ambient sound settings" ] +menuitem (_ [Waterpipes (02)]) [ ambientsoundmenu = 32; showmenu "Ambient sound settings" ] +menuitem (_ [Warning alarm]) [ ambientsoundmenu = 33; showmenu "Ambient sound settings" ] +menuitem (_ Gastank) [ ambientsoundmenu = 34; showmenu "Ambient sound settings" ] +menuitem (_ Keyboard) [ ambientsoundmenu = 35; showmenu "Ambient sound settings" ] +menuitem (_ Factory) [ ambientsoundmenu = 36; showmenu "Ambient sound settings" ] +menuitem (_ [Vent (03)]) [ ambientsoundmenu = 37; showmenu "Ambient sound settings" ] +menuitem (_ Waterfront) [ ambientsoundmenu = 38; showmenu "Ambient sound settings" ] +menuitem (_ Generator) [ ambientsoundmenu = 39; showmenu "Ambient sound settings" ] +menuitem (_ [Electric buzz]) [ ambientsoundmenu = 40; showmenu "Ambient sound settings" ] +menuitem (_ Alarm) [ ambientsoundmenu = 41; showmenu "Ambient sound settings" ] +menuitem (_ Flies) [ ambientsoundmenu = 42; showmenu "Ambient sound settings" ] +menuitem (_ [Desert hawk]) [ ambientsoundmenu = 43; showmenu "Ambient sound settings" ] +menuitem (_ Owl) [ ambientsoundmenu = 44; showmenu "Ambient sound settings" ] +menuitem (_ [City birds]) [ ambientsoundmenu = 45; showmenu "Ambient sound settings" ] soundrad = 1; soundsize = 0; ambientsoundvol = 255 newmenu [Ambient sound settings] menuinit [ soundrad = 1; soundsize = 0; ambientsoundvol = 255 ] -menuitemslider [Sound radius: ] 1 25 "$soundrad" 1 [] [ soundrad = $arg1 ] -menuitemslider [Sound size: ] 0 25 "$soundsize" 1 [] [ soundsize = $arg1 ] -menuitemslider [Sound volume: ] 1 255 "$ambientsoundvol" 5 [] [ ambientsoundvol = $arg1 ] -menuitem " 2 [ OK ]" [ newent sound $ambientsoundmenu $soundrad $soundsize $ambientsoundvol ] +menuitemslider (_ [Sound radius: ]) 1 25 "$soundrad" 1 [] [ soundrad = $arg1 ] +menuitemslider (_ [Sound size: ]) 0 25 "$soundsize" 1 [] [ soundsize = $arg1 ] +menuitemslider (_ [Sound volume: ]) 1 255 "$ambientsoundvol" 5 [] [ ambientsoundvol = $arg1 ] +menuitem (concatword (c 2) [ ] "[ OK ]") [ newent sound $ambientsoundmenu $soundrad $soundsize $ambientsoundvol ] showedBAKinfo = 0 newmenu [Editing settings] -menuitemslider [Grid/Selection style: ] 0 1 "$oldselstyle" 1 [triangles "squares (default)"] [ oldselstyle $arg1 ] -menuitemslider [Fly speeds multiplier: ] 1 5 "$flyspeed" 1 [] [ flyspeed $arg1 ] -menuitemcheckbox [Enable auto save map: ] "$autosavemap" [ autosavemap = $arg1 ] -menuitemslider [Time between auto saves (in minutes): ] 2 60 "(div $timeBetAutoSaves 60000)" 1 [] [ timeBetAutoSaves = (* $arg1 60000) ] -menuitemtextinput [Make a map backup (.BAK) every: ] "$numAutoSaveBackups" [ numAutoSaveBackups = $arg1 ] [ if (! $showedBAKinfo) [ echo This setting effects the number of autosavemaps between making a map backup file. "(.BAK)"; showedBAKinfo = 1 ] ] 4 +menuitemslider (_ [Grid/Selection style: ]) 0 1 "$oldselstyle" 1 [triangles "squares (default)"] [ oldselstyle $arg1 ] +menuitemslider (_ [Fly speeds multiplier: ]) 1 5 "$flyspeed" 1 [] [ flyspeed $arg1 ] +menuitemcheckbox (_ [Enable auto save map: ]) "$autosavemap" [ autosavemap = $arg1 ] +menuitemslider (_ [Time between auto saves (in minutes): ]) 2 60 "(div $timeBetAutoSaves 60000)" 1 [] [ timeBetAutoSaves = (* $arg1 60000) ] +menuitemtextinput (_ [Make a map backup (.BAK) every: ]) "$numAutoSaveBackups" [ numAutoSaveBackups = $arg1 ] [ if (! $showedBAKinfo) [ echo This setting effects the number of autosavemaps between making a map backup file. "(.BAK)"; showedBAKinfo = 1 ] ] 4 persistidents 1 \ No newline at end of file diff --git a/source/src/texture.cpp b/source/src/texture.cpp index 4d8e3067..e4bd95e0 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -841,18 +841,22 @@ void guidetoggle() Slot *sf = &slots[DEFAULT_FLOOR]; Slot *sc = &slots[DEFAULT_CEIL]; - char swn[256] = "packages/textures/"; swn[255] = '\0'; + /*char swn[256] = "packages/textures/"; swn[255] = '\0'; char sfn[256] = "packages/textures/"; sfn[255] = '\0'; - char scn[256] = "packages/textures/"; scn[255] = '\0'; + char scn[256] = "packages/textures/"; scn[255] = '\0';*/ + + defformatstring(swn)("packages/textures/%s", path(sw->name)); + defformatstring(sfn)("packages/textures/%s", path(sf->name)); + defformatstring(scn)("packages/textures/%s", path(sc->name)); - strncat(swn, sw->name, 254); + /*strncat(swn, sw->name, 254); strncat(sfn, sf->name, 254); - strncat(scn, sc->name, 254); + strncat(scn, sc->name, 254);*/ - if( 0 //if textures match original texture name saved in Slot.name - == strcmp(sw->tex->name, path(swn)) - == strcmp(sf->tex->name, path(sfn)) - == strcmp(sc->tex->name, path(scn)) ) + if( //if textures match original texture name saved in Slot.name + !strcmp(sw->tex->name, swn) && + !strcmp(sf->tex->name, sfn) && + !strcmp(sc->tex->name, scn) ) { //replace defaults with grid texures e_wall = sw->tex;