// vim: set syntax=cube foldmethod=marker foldmarker={{{,}}}: //Cube engine autoexec.cfg // This file was created by Denilson (nickname CrazyTerabyte) // It is based on autoexec.cfg created by Bill Spencer (spentron) // YOUR NAME AND TEAM -------------- name "CrazyTerabyte" // change! team "UFRJ" // truncated to four characters, case sensitive skill 4 alias howto [ setfilename howto/cubeengine ] // MOUSE MOTION -------------------- invmouse 0 // 1 for flightsim mode sensitivity 75 sensitivityscale 10 // set your mouse sensitivity here: alias msens 100 // similar number to quake // Change mouse sensitivity {{{ alias chgsens [ echo mousesens $msens msinvert $invmouse // recalc reference fov alias cmpfov (div (* $preffov $msens) (+ $msens 1)) if (< $cmpfov 90) [ alias cmpfov 90 ] [ alias cmpfov (+ $cmpfov 1) ] alias zsensit (div (* $msens $zfov) $cmpfov) if (< $zsensit 1) [ alias zsensit 1 ] sensitivity $zsensit ] alias msplus [ if (< $msens 200) [ alias msens (+ $msens 1); chgsens ] if (= (* (div $sensitivity 11) 11) $sensitivity) [ echo ... use sensitivity 1 for invert ] ] alias msminus [ if (< $msens 2) [ invmouse (- 1 $invmouse) echo invmouse $invmouse echo ... press minus to change invert ] [ alias msens (- $msens 1) ; chgsens ] if (< $msens 2) [ echo ... press minus to change invert ] ] // End mouse sensitivity }}} // mouse sens controls bind equals msplus // + bind minus msminus // - // SOUND --------------------------- musicvol 70 // set higher if you want (max 255) soundvol 150 // default is 150 // VISUAL SETTINGS ----------------- alias preffov 105 // set your preferred fov -- 90 is default in other games fov $preffov // set starting fov to pref //fpsrange and minlod were removed on cube_2005_08_22 //fpsrange 30 40 // *don't modify* unless you understand it fully // on slow machines, try setting to 20 25 // on fast machines, 30 40 (default) // 25 40 is spentron's setting to reduce lod changes (not faster but smoother) //minlod 90 // on slow machines, try as low as 25 (bad visuals) //minmillis 5 // on fast machines, limits the maximum frame rate. No need to modify this. dynlight 8 // set 0 or 8 if it slows you down (default is 16) watersubdiv 16 gamma 100 // set to your liking, 100 = default //lightscale 4 // default is 4 //lighterror 8 // default is 8 maxparticles 512 // default is 1000 hudgun 1 // your gun visible (default 1) hidestats 0 // 0=show; 1=hide status info (like fps, LOD...) alias hudgun_toggle [ hudgun (mod (+ $hudgun 1) 2) ] alias hidestats_toggle [ hidestats (mod (+ $hidestats 1) 2) ] alias fullbright_toggle [ fullbright (mod (+ $fullbright 1) 2) ] //maxroll 3 //crosshairsize 3 //crosshairfx 1 // crosshair becames grey when weapon is reloading, // //orange when health<=50, red when health<=25 undomegs 4 // CONTROLS ----------------------- // WARNING do not use: z q e 1 2 3 4 6 7 b n m KP0-3,5,6,8,9,. // see special bind keys below // -- (BASIC) -- bind mouse1 attack //bind mouse2 jump bind mouse2 resetfov bind mouse3 resetfov // mouse3 is toggle normal zoom & sensitivity: {{{ // (mousewheel during game is zoom) alias resetfov [if (= $fov $preffov) [ fov $zfov; sensitivity $zsensit] [ fov $preffov; sensitivity $msens ] ] // }}} // WASD bind W forward bind A left bind S backward bind D right bind space jump // I don't like to delete entities accidentally //bind X [ if $editing [ echo "Use /delent to delete an entity" ] [] ] bind X [ if $editing [ showmenu delent_confirm ] ] newmenu delent_confirm menuitem "Are you sure you want to delete nearest entity?" " " menuitem "No" " " menuitem "Yes" "delent" bind 5 edittoggle // safe edit key -- note E remapped below // The weapon change is mapped below //bind 1 "weapon 1 4 0 2 3" // closest weapon select //bind 2 "weapon 2 4 1 3 0" // (direct select emulate) //bind 3 "weapon 3 2 4 1 0" //bind 4 "weapon 4 3 2 1 0" // ------------- // Very useful command-line bind. It is important too, // because ", ', ~ and ` don't work inside Cube, with my us_intl keyboard. bind slash "saycommand /" bind F5 toggleocull bind F6 showmip bind F7 fullbright_toggle bind F8 "savegame quicksave" bind F9 "loadgame quicksave" // CONTROLS IN EDIT MODE ---------- // (from this line until end of file) // replace textures function (using backslash) {{{ alias rcnt 0 bind BACKSLASH [ if (< $rcnt 6) [echo hold for texture replace; alias rcnt (+ $rcnt 1) ] [ // 6 sets delay time if (< $rcnt 19) [ replace; alias rcnt 19; echo done ] ] onrelease [ alias rcnt 0 ] ] // }}} // USEFUL ALIASES ---------------- alias sp [ mode -2; map $arg1 ] alias dmsp [ mode -1; map $arg1 ] alias ffa [ mode 0; map $arg1 ] alias insta [ mode 4; map $arg1 ] // I don't know what is this... alias lcs1 24; alias lcr1 105; alias lcg1 75; alias lcb1 65 // initial value of custom light 1 (brown) alias lcs2 8; alias lcr2 255; alias lcg2 0; alias lcb2 0 // initial value of custom light 1 (spotlight) alias lcs3 32; alias lcr3 195; alias lcg3 0; alias lcb3 0 // initial value of custom light 1 (broadlight) // KP_period is direct customlight // l is default: newent light 16 255 // below is a fun new way of editing, with all using the mousewheel // try it out :) // Lots of aliases {{{ alias m0 [echo ogro] alias m1 [echo rhino] alias m2 [echo ratamahatta] alias m3 [echo slith] alias m4 [echo bauul] alias m5 [echo hellpig] alias m6 [echo knight] alias m7 [echo goblin] alias m8 [echo none] alias m9 [echo shells] alias m10 [echo bullets] alias m11 [echo rockets] alias m12 [echo riflerounds] alias m13 [echo health] alias m14 [echo healthboost] alias m15 [echo greenarmour] alias m16 [echo yellowarmour] alias m17 [echo quaddamage] alias m18 [echo mapmodel 0] alias m19 [echo playerstart] alias mm8 "" alias mm9 "newent shells" alias mm10 "newent bullets" alias mm11 "newent rockets" alias mm12 "newent riflerounds" alias mm13 "newent health" alias mm14 "newent healthboost" alias mm15 "newent greenarmour" alias mm16 "newent yellowarmour" alias mm17 "newent quaddamage" alias mm18 "newent mapmodel 0" alias mm19 "newent playerstart" alias mon0 8 alias mon1 8 alias trgc 0 alias tagc -1 alias tportc 0 alias tdestc 0 alias lc_r 65 alias lc_g -5 alias lc_b 65 alias lc_rr 65 alias lc_gg 0 alias lc_bb 65 alias lc_s 16 alias custcomm0 "" alias custcomm1 "" alias modifier 0 //alias domodifier [ alias modifier $arg1; onrelease [ alias modifier 0 ] ] //bind Q [ domodifier 1 ] //bind Z [ domodifier 2 ] //bind X [ domodifier 3 ] // }}} // * SETUP COMBO KEYS HERE * (keys Q Z E) // ... change ingame function by changing only the part currently "weapon" commands bind F [ if $editing [ solid 1 ] [ weapon 0 1 4 2 3 ] ] // fist or least alias xxz [ if $editing [ alias modifier 1 ] [ weapon 0 1 4 2 3 ] ] // fist or least alias xxq [ if $editing [ alias modifier 2 ] [ weapon 1 4 2 3 ] ] // least effective guns alias xxe [ if $editing [ alias modifier 3 ] [ weapon 2 4 1 0 ] ] // best nonexplosive gun or fist alias xx1 [ if $editing [ alias modifier 14 ] [ weapon 1 4 0 2 3 ] ] alias xx2 [ if $editing [ alias modifier 15 ] [ weapon 2 4 1 3 0 ] ] alias xx3 [ if $editing [ alias modifier 16 ] [ weapon 3 2 4 1 0 ] ] alias xx4 [ if $editing [ alias modifier 17 ] [ weapon 4 3 2 1 0 ] ] alias xxshift [ if $editing [ alias shift_pressed 5 ] [ weapon 3 2 4 1 0 ] ] // most effective weapons avail. alias shift_pressed 1 //Default value of this alias alias xxconskip [ alias modifier 18 ] alias xxconskipmore [ alias modifier 19 ] // Lots of function aliases {{{ alias xxm [ if $editing [ alias modifier 4 ; concatword m $mon0 ; s ] ] alias xxmm [ if $editing [ alias modifier 5 ; concatword m $mon1 ; s ] ] alias xxtrg [ if $editing [ alias modifier 6 ; edit_trg ] ] alias xxtag [ if $editing [ alias modifier 7 ; edit_tag ] ] alias xxtp [ if $editing [ alias modifier 8 ; edit_tport ] ] alias xxtd [ if $editing [ alias modifier 9 ; edit_tdest ] ] alias xxlr [ if $editing [ alias modifier 10 echo light is $lc_s $lc_rr $lc_gg $lc_bb ] ] alias xxlg [ if $editing [ alias modifier 11 echo light is $lc_s $lc_rr $lc_gg $lc_bb ] ] alias xxlb [ if $editing [ alias modifier 12 echo light is $lc_s $lc_rr $lc_gg $lc_bb ] ] alias xxls [ if $editing [ alias modifier 13 echo light is $lc_s $lc_rr $lc_gg $lc_bb ] ] alias xxlon [ if $editing [ if (= (* $lc_gg $lc_bb) 0) [ echo inserted white light $lc_s $lc_rr // g or b at 0 forces white concat newent light $lc_s $lc_rr s ] [ echo inserted color light $lc_s $lc_rr $lc_gg $lc_bb concat newent light $lc_s $lc_rr $lc_gg $lc_bb s ] ] ] alias l0cnt 1; alias l1cnt 0; alias l2cnt 0; alias l3cnt 0 alias xxsav1 [ if (< $l1cnt 6) [ echo custom light 1 or hold for save; alias l1cnt (+ $l1cnt 1) ] [ // 6 sets delay time if (< $l1cnt 19) [ alias lcs1 $lc_s; alias lcr1 $lc_rr; alias lcg1 $lc_gg alias lcb1 $lc_bb; alias l1cnt 19; echo saved ] ] ] alias xxlon1 [ if $editing [ if (= (* $lcg1 $lcb1) 0) [ echo inserted white light $lcs1 $lcr1 concat newent light $lcs1 $lcr1 s ] [ echo inserted color light $lcs1 $lcr1 $lcg1 $lcb1 concat newent light $lcs1 $lcr1 $lcg1 $lcb1 s ] ] ] alias xxsav2 [ if (< $l2cnt 6) [ echo custom light 2 or hold for save; alias l2cnt (+ $l2cnt 1) ] [ // 6 sets delay time if (< $l2cnt 19) [ alias lcs2 $lc_s; alias lcr2 $lc_rr; alias lcg2 $lc_gg alias lcb2 $lc_bb; alias l2cnt 19; echo saved ] ] ] alias xxlon2 [ if $editing [ if (= (* $lcg2 $lcb2) 0) [ echo inserted white light $lcs2 $lcr2 concat newent light $lcs2 $lcr2 s ] [ echo inserted color light $lcs2 $lcr2 $lcg2 $lcb2 concat newent light $lcs2 $lcr2 $lcg2 $lcb2 s ] ] ] alias xxsav3 [ if (< $l3cnt 6) [ echo custom light 3 or hold for save; alias l3cnt (+ $l3cnt 1) ] [ // 6 sets delay time if (< $l3cnt 19) [ alias lcs3 $lc_s; alias lcr3 $lc_rr; alias lcg3 $lc_gg alias lcb3 $lc_bb; alias l3cnt 19; echo saved ] ] ] alias xxlon3 [ if $editing [ if (= (* $lcg3 $lcb3) 0) [ echo inserted white light $lcs3 $lcr3 concat newent light $lcs3 $lcr3 s ] [ echo inserted color light $lcs3 $lcr3 $lcg3 $lcb3 concat newent light $lcs3 $lcr3 $lcg3 $lcb3 s ] ] ] // }}} // * special bind keys * {{{ bind z [xxz; onrelease [ alias modifier 0 ] ] // heightfield bind q [xxq; onrelease [ alias modifier 0 ] ] // floortex bind e [xxe; onrelease [ alias modifier 0 ] ] // walltex bind 1 [xx1; onrelease [ alias modifier 0 ] ] // editing entity properties using mouse bind 2 [xx2; onrelease [ alias modifier 0 ] ] bind 3 [xx3; onrelease [ alias modifier 0 ] ] bind 4 [xx4; onrelease [ alias modifier 0 ] ] bind lshift [xxshift; onrelease [ alias shift_pressed 1 ] ] bind KP_MULTIPLY [xxconskip; onrelease [ alias modifier 0 ] ] bind KP_DIVIDE [xxconskipmore; onrelease [ alias modifier 0 ] ] bind 7 [xxm; onrelease [ alias modifier 0 ; custcomm0 ] ] // monsters bind 6 [xxmm; onrelease [ alias modifier 0 ; concatword mm $mon1 ; s ] ] // basicentities bind KP8 [xxtrg; onrelease [ alias modifier 0 ; custcomm1 ] ] // triggers bind KP9 [xxtag; onrelease [ alias modifier 0 ; custcomm1 ] ] // tags bind KP5 [xxtp; onrelease [ alias modifier 0 ; custcomm1 ] ] // teleports bind KP6 [xxtd; onrelease [ alias modifier 0 ; custcomm1 ] ] // teledests bind KP1 [xxlr; onrelease [ alias modifier 0 ] ] // lights - red level bind KP2 [xxlg; onrelease [ alias modifier 0 ] ] // lights - green level bind KP3 [xxlb; onrelease [ alias modifier 0 ] ] // lights - blue level bind KP0 [xxls; onrelease [ alias modifier 0 ] ] // lights - size bind KP_PERIOD [ if $l0cnt [ xxlon; alias l0cnt 0 ] // lights - place direct (once) onrelease [ alias l0cnt 1 ] ] // lights - place with save bind b [ xxsav1 // save onrelease [ if (< $l1cnt 19) [xxlon1] // .. or do alias l1cnt 0 ] ] bind n [ xxsav2 // save onrelease [ if (< $l2cnt 19) [xxlon2] // .. or do alias l2cnt 0 ] ] bind m [ xxsav3 // save onrelease [ if (< $l3cnt 19) [xxlon3] // .. or do alias l3cnt 0 ] ] // }}} // mousewheel + none of above keys = floor/ceil height // routines for mousewheel itself: alias universaldelta [ if $editing [ alias s "edit" ] [ alias s "game" ] concatword delta _ $s _ $modifier s ] bind MOUSE4 [ universaldelta 1 ] bind MOUSE5 [ universaldelta -1 ] alias delta_edit_0 [ editheight $flrceil $arg1 ] alias delta_edit_1 [ if $flrceil [ vdelta $arg1 ] [ vdelta (- 0 $arg1) ] ] alias delta_edit_2 [ edittex $flrceil $arg1 ] alias delta_edit_3 [ edittex (+ $flrceil 1) $arg1 ] //alias delta_edit_4 [ equalize $flrceil ] alias delta_edit_4 [ // monsters {{{ alias mon0 (+ $arg1 $mon0 ) if (< $mon0 0) [ alias mon0 8 ] if (> $mon0 8) [ alias mon0 0 ] concatword m $mon0 s if (= $mon0 8) [ alias s "" ] [ concat newent monster $mon0 ] alias custcomm0 $s ] // }}} //alias delta_edit_5 [ entproperty 0 $arg1 ] // and the others alias delta_edit_5 [ // basic entities {{{ alias mon1 (+ $arg1 $mon1 ) if (< $mon1 8) [ alias mon1 19 ] if (> $mon1 19) [ alias mon1 8 ] concatword m $mon1 s ] // }}} alias delta_edit_6 [ // triggers {{{ alias trgc (+ $arg1 $trgc ) if (< $trgc -100) [ alias trgc 0 ] if (> $trgc 98) [ alias trgc 0 ] edit_trg ] // }}} alias delta_edit_7 [ // tags {{{ alias tagc (+ $arg1 $tagc ) if (< $tagc -1) [ alias tagc 99 ] if (> $tagc 99) [ alias tagc -1 ] edit_tag ] // }}} alias delta_edit_8 [ // teleports {{{ alias tportc (+ $arg1 $tportc ) if (< $tportc 0) [ alias tportc 99 ] if (> $tportc 99) [ alias tportc 0 ] edit_tport ] // }}} alias delta_edit_9 [ // teledests {{{ alias tdestc (+ $arg1 $tdestc ) if (< $tdestc 0) [ alias tdestc 99 ] if (> $tdestc 99) [ alias tdestc 0 ] edit_tdest ] // }}} alias delta_edit_10 [ // light brightnesses (3) {{{ alias incrmnt (+ (div (+ $lc_s $arg1) 135) 1) // 2 for lc_r 135-255 alias incrmnt (* $arg1 (* $incrmnt 10)) // step by 10 or 20 alias lc_r (+ $incrmnt $lc_r ) if (< $lc_r 5) [ alias lc_r 255 ] // lc_r from -1 to 255 step 8 if (> $lc_r 255) [ alias lc_r 5 ] if (< $lc_r 6) [ alias lc_rr 1 ] [ alias lc_rr $lc_r ] // but lc_rr min 1 echo light $lc_s $lc_rr $lc_gg $lc_bb ] // }}} alias delta_edit_11 [ // {{{ alias incrmnt (+ (div (+ $lc_g $arg1) 135) 1) // same as lc_r alias incrmnt (* $arg1 (* $incrmnt 10)) alias lc_g (+ $incrmnt $lc_g ) if (< $lc_g -5) [ alias lc_g 255 ] if (> $lc_g 255) [ alias lc_g -5 ] if (= $lc_g -5) [ alias lc_gg 0 ] [ if (< $lc_g 6) [ alias lc_gg 1 ] [ alias lc_gg $lc_g ] ] echo light $lc_s $lc_rr $lc_gg $lc_bb ] // }}} alias delta_edit_12 [ // {{{ alias incrmnt (+ (div (+ $lc_b $arg1) 135) 1) // same as lc_r alias incrmnt (* $arg1 (* $incrmnt 10)) alias lc_b (+ $incrmnt $lc_b ) if (< $lc_b -5) [ alias lc_b 255 ] if (> $lc_b 255) [ alias lc_b -5 ] if (= $lc_b -5) [ alias lc_bb 0 ] [ if (< $lc_b 6) [ alias lc_bb 1 ] [ alias lc_bb $lc_b ] ] echo light $lc_s $lc_rr $lc_gg $lc_bb ] // }}} alias delta_edit_13 [ // light size {{{ alias incrmnt (+ (div (+ $lc_s $arg1) 16) 1) // 2 for lc_s 16-32 alias incrmnt (* $arg1 (* $incrmnt 2)) // step by 2 or 4 alias lc_s (+ $incrmnt $lc_s ) if (< $lc_s 2) [ alias lc_s 32 ] if (> $lc_s 32) [ alias lc_s 2 ] echo light $lc_s $lc_rr $lc_gg $lc_bb ] // }}} alias delta_edit_14 [ entproperty 0 (* $arg1 $shift_pressed ) ] // editing entity properties using mouse alias delta_edit_15 [ entproperty 1 (* $arg1 $shift_pressed ) ] alias delta_edit_16 [ entproperty 2 (* $arg1 $shift_pressed ) ] alias delta_edit_17 [ entproperty 3 (* $arg1 $shift_pressed ) ] alias delta_edit_18 [ conskip (* $arg1 1 ) ] alias delta_game_18 [ conskip (* $arg1 1 ) ] alias delta_edit_19 [ conskip (* $arg1 5 ) ] alias delta_game_19 [ conskip (* $arg1 5 ) ] alias edit_trg [ // {{{ if (= $trgc 0) [ m8; alias custcomm1 "" ] if (= $trgc -1) [ echo end trigger 99; alias custcomm1 "newent trigger 99 2" ] if (> $trgc 0) [ echo visible trigger $trgc concat newent trigger $trgc 0 alias custcomm1 $s ] if (< $trgc -1) [ alias trgcinv (- -1 $trgc ) echo invisible trigger $trgcinv concat newent trigger $trgcinv 1 alias custcomm1 $s ] ] // }}} alias edit_tag [ // {{{ if (= $tagc -1) [ m8; alias custcomm1 "" ] if (= $tagc 0) [ echo clear tag to 0 ; alias custcomm1 "edittag 0" ] if (> $tagc 0) [ echo tag $tagc concat edittag $tagc alias custcomm1 $s ] ] // }}} alias edit_tport [ // {{{ if (= $tportc 0) [ m8; alias custcomm1 "" ] [ echo teleport $tportc concat newent teleport $tportc alias custcomm1 $s ] ] // }}} alias edit_tdest [ // {{{ if (= $tdestc 0) [ m8; alias custcomm1 "" ] [ echo teledest $tdestc concat newent teledest $tdestc alias custcomm1 $s ] ] // }}} // Aard's zoom + Bill's sensit. compensation {{{ // initializations ... sensitivity $msens // loads it alias zsensit $msens alias zfov $preffov // calculation of reference fov to avoid changing sensitivity for // small fov changes (since zoom can result in slight fov variations) alias cmpfov (div (* $preffov $msens) (+ $msens 1)) if (< $cmpfov 90) [ alias cmpfov 90 ] [ alias cmpfov (+ $cmpfov 1) ] // min is 90 // }}} // and the wheel script ... alias delta_game_0 [ // {{{ alias zfov (+ $zfov (* $arg1 (div $zfov -5))) // -5 is stock step factor if (< $zfov 10) [ alias zfov 10 ] if (> $zfov 120) [ alias zfov 120 ] fov $zfov alias zsensit (div (* $msens $zfov) $cmpfov) if (< $zsensit 1) [ alias zsensit 1 ] sensitivity $zsensit // uncomment next line to print zoom fov to screen: echo fov $zfov ] // }}} //alias delta_game_0 [ if (= $arg1 1) [ weapon 2 3 1 ] [ weapon 4 1 2 ] ] // //alias zfov 120 //alias delta_game_1 [ // alias zfov (+ $zfov (* $arg1 (div $zfov -5))) // if (< $zfov 10) [ alias zfov 10 ] // if (> $zfov 120) [ alias zfov 120 ] // fov $zfov //] //Easy reload and save map by Denilson (CrazyTB) {{{ //There is no detection of map changes. User should take care when using these commands. //Instructions: // - Use /setfilename "some/file" to set the filename of current map. // - Press F2 to save it, or F3 to (re)load it. // - Press F4 to save and send it (doing a sendmap). // - To avoid accidental loses when loading another map or accidental saves, // the F2, F3 and F4 keys will show the command prompt, so you need to check if // filename is correct and press Enter. bind F2 ezsave bind F3 ezreload bind F4 ezsendmap alias map_filename "" alias setfilename [ // {{{ concat "Previous filename was" $map_filename echo $s alias map_filename $arg1 concat "Current map filename is" $map_filename echo $s ] // }}} alias ezsave [ // {{{ if (strcmp $map_filename "") [ echo "No filename set. Please use /setfilename" ] [ concat "/savemap" $map_filename saycommand $s ] ] // }}} alias ezreload [ // {{{ if (strcmp $map_filename "") [ echo "No filename set. Please use /setfilename" ] [ concat "/map" $map_filename saycommand $s ] ] // }}} alias ezsendmap [ // {{{ if (strcmp $map_filename "") [ echo "No filename set. Please use /setfilename" ] [ concat "/sendmap" $map_filename saycommand $s ] ] // }}} // }}} //New version of "test_all_models" alias test_all_models2 [ loop 70 [ select (+ (* (mod $i 8) 8) 16) (+ (* (div $i 8) 8) 16) 1 1; newent mapmodel $i ] ] //Show current selection alias show_selection [ concatword "from " $selx "," $sely " to " (+ $selx $selxs) "," (+ $sely $selys) " (" $selxs "," $selys ")" echo $s ] bind BACKSPACE show_selection //Fog Color RGB by Denilson (CrazyTB) alias fogcolor fogcolour $arg1 alias fogcolorrgb fogcolourrgb $arg1 $arg2 $arg3 alias fogcolorgetrgb fogcolourgetrgb alias fogcolourgetrgb [ concat (div $fogcolour 65536) (mod (div $fogcolour 256) 256) (mod $fogcolour 256); echo $s ] alias fogcolourrgb [ fogcolour (+ (+ (* 65536 $arg1) (* 256 $arg2)) $arg3 ) ] //in-game help menus by Denilson (CrazyTerabyte) bind F1 help //They were created using fixed-width font. //I know that Cube uses a variable width font, but if someday cube font is changed... //TODO: look at doc/cofig.html and add more commands here. alias help [ showmenu help ] // {{{ newmenu help menuitem "> submenu i info / command >/ show prompt " " " menuitem "Game modes >" "helpgamemodes" menuitem "Game commands >" "helpgamecmds" menuitem "Favorite servers list >" "favorite_servers" menuitem " --- " " " menuitem "Map commands >" "helpmapcmds" menuitem "Edit commands >" "helpeditcmds" menuitem "newent details >" "helpnewent" menuitem "Triggers details >" "helptrigger" menuitem " --- " " " menuitem "Weapons info >" "helpweapons" menuitem "Items info >" "helpitems" menuitem "Monsters info >" "helpmonsters" menuitem " --- " " " menuitem "Key bindings >" "helpkeys" menuitem "Map list (semi-auto generated) >" "showmenu map_list" // }}} alias helpgamemodes [ showmenu helpgamemodes ] // {{{ newmenu helpgamemodes menuitem " 0 ffa/default /" "mode 0" menuitem " 1 coop edit (identical to 0, but enables editing) /" "mode 1" menuitem " 2 standard non teamplay (meant for FFA and duel) /" "mode 2" menuitem " 3 standard teamplay game /" "mode 3" menuitem " 4 instagib (no items, 1 health, 100 rifle rounds) /" "mode 4" menuitem " 5 instagib team mode /" "mode 5" menuitem " 6 efficiency (no items, 256 health, 2 ammo packs) /" "mode 6" menuitem " 7 efficiency team mode /" "mode 7" menuitem " 8 insta arena (stay dead until one player remains) /" "mode 8" menuitem " 9 insta arena (stay dead until one team remains) /" "mode 9" menuitem "10 tatics arena (like above, but with random weapons)/" "mode 10" menuitem "11 tatics arena team mode /" "mode 11" menuitem "frag count = 1 for frag; -1 for suicide or teamkill " " " menuitem "Timelimit = 10min (15min for teamplay) " " " menuitem "-1 DMSP (deathmatch single player) /" "mode -1" menuitem "-2 SP (progress based single player) /" "mode -2" // }}} alias helpgamecmds [ showmenu helpgamecmds ] // {{{ newmenu helpgamecmds //Not mentioned, because they aren't useful outside scripts, or aren't //needed in normal usage: //say, saycommand, rate, conskip, weapon, gamespeed, quit //record, stop, demo, demoplaybackspeed, demodelaymsec, demotracking menuitem "name nickname i" "echo; echo [Change your nickname.]" menuitem "team newteam i" "echo; echo [Change your team. At most 4 characters.]" menuitem "mode N i" "echo; echo [Set gameplay mode for next maps. Is is easier to use these aliases:]; echo [sp, dmsp, ffa, insta]" menuitem "skill 1_to_10 {default is 3} >/" "saycommand [/skill ]" menuitem "showscores /" "showscores" menuitem "password server_password >/" "saycommand [/password ]" menuitem "connect server_ip >/" "saycommand [/connect ]" menuitem "disconnect /" "disconnect" menuitem "servermenu /" "servermenu" menuitem "updatefrommaster /" "updatefrommaster" menuitem " --- " " " menuitem "savegame name_of_file >/" "saycommand [/savegame ]" menuitem "loadgame name_of_file >/" "saycommand [/loadgame ]" menuitem " --- " " " menuitem "hudgun 0_or_1 /" "hudgun_toggle" menuitem "hidestats 0_or_1 /" "hidestats_toggle" menuitem "screenshot {writes screenshot.bmp} /" "screenshot" menuitem "-> See also map, sendmap and getmap >" "helpmapcmds" // }}} alias helpweapons [ echo "Select an weapon to use it."; showmenu helpweapons ] // {{{ newmenu helpweapons menuitem "# dam d/s relo max bx weapon name " " " menuitem "0 050 200 0.25 inf 00 fist /" "weapon 0" menuitem "1 200 143 1.40 050 10 shotgun (wide angle) /" "weapon 1" menuitem "2 030 300 0.10 100 20 chaingun /" "weapon 2" menuitem "3 120 150 0.80 025 05 rocket launcher (splash) /" "weapon 3" menuitem "4 100 066 1.50 025 05 rifle /" "weapon 4" menuitem "dam=damage d/s=damage/second max=max ammo " " " menuitem "relo=reload time (in seconds) bx=ammo from boxes " " " menuitem "They respawn in 8/6/4 seconds (1-2 / 3-4 / 5+ players)" " " // }}} alias helpitems [ echo "Select an item on list to insert it"; showmenu helpitems ] // {{{ newmenu helpitems menuitem "health - adds 25 (max 100) [20/15/10] /" "newent health" menuitem "health boost - adds 50 (max 200) [60] /" "newent healthboost" menuitem "light armour - 100 (absorbs 40%) [20] (green) /" "newent greenarmour" menuitem "heavy armour - 150 (absorbs 60%) [20] (yellow) /" "newent yellowarmour" menuitem "quad powerup - 4x damage for 20s [60] /" "newent quaddamage" menuitem "[respawn time in seconds] [1-2 / 3-4 / 5+ players] " " " // }}} alias helpmonsters [ echo "Select a monster on table to insert it"; showmenu helpmonsters ] // {{{ newmenu helpmonsters menuitem "# sta sp L F ra name damage and gun " " " menuitem "0 100 14 1 3 10 ogro 05 fireball /" "newent monster 0" menuitem "1 070 18 2 2 01 rhino 07 chaingun /" "newent monster 1" menuitem "2 120 12 4 1 30 ratamahatta 50 shotgun /" "newent monster 2" menuitem "3 200 12 4 1 40 slith 25 rifle /" "newent monster 3" menuitem "4 500 10 6 1 20 bauul 30 rocket launcher/" "newent monster 4" menuitem "5 050 22 1 3 10 hellpig 12 bite /" "newent monster 5" menuitem "6 250 08 6 1 01 knight 10 iceball /" "newent monster 6" menuitem "7 100 12 2 1 20 goblin 07 slimeball /" "newent monster 7" menuitem " " " " menuitem "sta=stamina (health) sp=speed (player speed=24)" " " menuitem "L=loyalty (how many times be hit by other monster) " " " menuitem "F=frequency of spawning (DMSP) ra=rate of fire" " " menuitem "damage is 1/4 from player equivalent damage " " " menuitem "they jump at most 4 cubes down, except if health<=100 " " " // }}} alias helpeditcmds [ showmenu helpeditcmds ] // {{{ newmenu helpeditcmds //Not mentioned, because they are binded to keyboard/mouse commands or //because are less used (most used on autoexec.cfg), or they are on TODO: //edittoggle, edittex, editheight, solid, equalize, heighfield //vdelta, corner, texturereset, texture, archvertex, select //trigger, registersound, mapmodelreset, mapmodel // //Maybe another menu with all of these and with explanations menuitem "newent type value1 value2 value3 value4 >" "helpnewent" menuitem "entproperty prop increment i" "echo; echo [It will increase the prop of nearest entity by increment.]; echo [Example: 'entproperty 0 2' if near to a light, will increase its radius.]" menuitem "scalelights radius intensity i" "echo; echo [Scales all lights in map. Values are percentages.]; echo [This command will not increase radius beyond 32.]" menuitem "clearents type i" "echo; echo [Deletes all entities of this type. See also /helpnewent.]" menuitem "delent i" "echo; echo [Deletes the entity closest to the player.]" menuitem "edittag newtag i" "echo; echo [Sets the newtag [1..255] for selected cubes. 0 does mean no tag.]" menuitem " --- " " " menuitem "perlin scale seed cubesize i" "echo; echo [Generates a perlin noise on selection. Cubesize isn't used for now.]" menuitem "slope xdelta ydelta i" "echo; echo [Makes a slope in current selection.]" menuitem "arch sidedelta >/" "saycommand [/arch ]" menuitem " --- " " " menuitem "fullbright 0_or_1 /" "fullbright_toggle" menuitem "recalc /" "recalc" menuitem "showmip /" "showmip" menuitem "toggleocull /" "toggleocull" menuitem "copy | paste | undo | undomegs | replace i" "echo; echo ['copy', 'paste' and 'undo' are intuitive.]; echo ['undomegs' sets the size in MB of undo buffer.]; echo ['replace' will repeat the last texture change throughout entire map.]; echo ['replace' can't be undone.]" // }}} alias helpmapcmds [ showmenu helpmapcmds ] // {{{ newmenu helpmapcmds menuitem "map mapname i" "echo; echo ['map thing' will load 'packages/base/thing.cgz'.]; echo ['map some/thing' will load 'packages/some/thing.cgz'.]; echo ['data/default_map_settings.cfg', 'package.cfg' and]; echo ['mapname.cfg' will be loaded automatically.]" menuitem "savemap mapname i" "echo; echo ['savemap thing' will save map at 'packages/base/thing.cgz'.]; echo ['savemap some/thing' will save map at 'packages/some/thing.cgz'.]" menuitem "newmap size i" "echo; echo [Creates a new square map with side-length of 2^size cubes.]; echo [6 is small, 7 is medium, 8 is large, 12 is maximum.]; echo [An empty level has heights from 0 to 16.]" menuitem "mapenlarge i" "echo; echo [Doubles each dimension (X and Y) of map. Original map is left at center.]" menuitem "sendmap | getmap i" "echo; echo ['sendmap' reloads current map, then uploads it to server.]; echo ['sendmap mapname' will do 'savemap mapname' before reloading and uploading.]; echo ['getmap' downloads, saves and reloads the map from server.]" menuitem " --- " " " menuitem "mapmsg your message here, between quotes i" "echo; echo [Will be displayed on map load.]; echo [Use 'Title by Author' or simply 'by Author'.]" menuitem "alias nextmap_blah1 blah2 i" "echo; echo [Makes 'blah2' be loaded after 'blah1' has finished.]" menuitem "fog distance >/" "saycommand [/fog ]" menuitem "fogcolour newcolor >/" "saycommand [/fogcolour ]" menuitem "waterlevel newlevel i" "echo; echo [Changes the water level. An empty level has heights from 0 to 16.]" menuitem "music name | sound number i" "echo; echo [Plays a music by passing the filename.]; echo [Plays a sound by passing its number. Use 'registersound' to load sounds.]" menuitem " --- " " " menuitem "exec packages/numbered/load_textures.cfg " menuitem "select 128 16 65 225 " // }}} alias helpnewent [ showmenu helpnewent ] // {{{ newmenu helpnewent menuitem "newent light radius r g b >/" "saycommand [/newent light ]" menuitem "newent light radius brightness >/" "saycommand [/newent light ]" menuitem "newent (playerstart|quaddamage) >" "helpnewentitems" menuitem "newent (shells|bullets|rockets|riflerounds) >" "helpnewentitems" menuitem "newent (health|healthboost|greenarmour|yellowarmour) >" "helpnewentitems" menuitem "newent (teleport|teledest) number >/" "saycommand [/newent tele]" menuitem "newent mapmodel model# extraZelevation texture_or_0 >/" "saycommand [/newent mapmodel ]" menuitem "newent monster number >" "helpmonsters" menuitem "newent trigger tag type orientation >" "helptrigger" menuitem "newent jumppad Z Y X >/" "saycommand [/newent jumppad ]" menuitem "-> See also delent, entproperty and clearents >" "helpeditcmds" // }}} alias helpnewentitems [ showmenu helpnewentitems ] // {{{ newmenu helpnewentitems menuitem "newent playerstart /" "newent playerstart" menuitem " --- " " " menuitem "newent shells /" "newent shells" menuitem "newent bullets /" "newent bullets" menuitem "newent rockets /" "newent rockets" menuitem "newent riflerounds /" "newent riflerounds" menuitem "-> See also helpweapons >" "helpweapons" menuitem "newent quaddamage /" "newent quaddamage" menuitem "newent health /" "newent health" menuitem "newent healthboost /" "newent healthboost" menuitem "newent greenarmour /" "newent greenarmour" menuitem "newent yellowarmour /" "newent yellowarmour" menuitem "-> See also helpitems >" "helpitems" // }}} alias helptrigger [ showmenu helptrigger ] // {{{ newmenu helptrigger menuitem "newent trigger >/" "saycommand [/newent ]" menuitem "Cubes with tag equal to this trigger will be affected " " " menuitem "alias level_trigger_ will be executed " " " menuitem " is 0..3 (used only by types 4 and 5) " " " menuitem "Types: " " " menuitem "0 Carrot model that open walls, with rumble sound " " " menuitem "1 Same as 0, but without carrot " " " menuitem "2 End of map, carrot spins wildly " " " menuitem "3 Same as 1, but with no sound " " " menuitem "4 Same as 0, but with switch model (has orientation) " " " menuitem "5 Same as 0, but with lever model (has orientation) " " " menuitem "-> See also edittag >" "helpeditcmds" // }}} alias helpkeys [ showmenu helpkeys ] // {{{ newmenu helpkeys //TODO: Add description for binded commands. // This is useful to make big map changes easily. menuitem "1, 2, 3, 4 - Change entity property using wheel " " " menuitem "5 - Enter/leave editing mode (edittoggle) " " " menuitem "6 / 7 - Insert basic entities / monsters using wheel " " " menuitem "C/V / U - Copy/paste selected terrain / undo changes " " " menuitem "O, P, [, ] - Change terrain height (or just use wheel)" " " menuitem ",/. - equalize terrain height (floor/ceiling) " " " menuitem "F / G - make terrain solid (column) / space " " " menuitem "K / H/I - make corner / heightfield (floor/ceiling) " " " menuitem "8, 9, Z - Change heightfield vetexes (Z uses wheel) " " " menuitem "Ins, Del, PgUp, PgDn, Q - Floor/ceiling texture " " " menuitem "Home, End, KP7, KP4, E - Wall texture (Q/E use wheel) " " " menuitem "KP8/KP9 - Insert triggers/edit tags using wheel " " " menuitem "KP5/KP6 - Insert teleports/teledests using wheel " " " menuitem "KP1/KP2/KP3/KP0 - Set light red/green/blue/radius " " " menuitem "KP_PERIOD - Insert light (use wheel on above keys) " " " menuitem "B, N, M / \ - Insert/save lights / replace textures " " " menuitem "F5/F6/F7/R - toggleocull/showmip/fullbright/recalc " " " menuitem "F8/F9 / F12 - save/load game 'quicksave' / screenshot " " " menuitem "KP_MINUS/KP_PLUS - scroll console up/down (conskip) " " " menuitem "TAB / T - showscores / chat " " " // }}} alias favorite_servers [ showmenu favorite_servers ] // {{{ newmenu favorite_servers menuitem "Clear password" "password" menuitem "godzilla.uib.no" "password ; connect godzilla.uib.no" menuitem "thinkinsoft.org" "password ; connect thinkinsoft.org" menuitem "cube.servebeer.com pw=esl" "password esl ; connect cube.servebeer.com" menuitem "cube2.servebeer.com pw=esl" "password esl ; connect cube2.servebeer.com" // }}} // Stairs-o-matic, by Denilson (CrazyTerabyte) {{{ alias stairshelp [ echo [Use: /stairsx step inc] echo ["step" is the size (width) of each step, and "inc" is the height of each step.] echo [Use "/stairsx" for stairs on "x" axis, and "/stairsy" for stairs on "y" axis.] ] alias stairsx [ alias stairs_var $selx loop (div $selxs $arg1) [ select (+ $stairs_var (* $i $arg1)) $sely $arg1 $selys // Next line will do a nice effect. // select (+ $stairs_var (* $i $arg1)) $sely 1 $selys editheight $flrceil (* $arg2 (+ $i 1)) ] ] alias stairsy [ alias stairs_var $sely loop (div $selys $arg1) [ select $selx (+ $stairs_var (* $i $arg1)) $selxs $arg1 editheight $flrceil (* $arg2 (+ $i 1)) ] ] // }}} // Fill with lights, by Denilson (CrazyTerabyte) {{{ alias fillwithlightshelp [ echo [Use: /fillwithlights step radius red green blue] echo ["step" is the distance between each light, and other] echo [four arguments are the same passed to "/newent light"] ] alias fillwithlights [ alias fillwithlights_maxy (+ $sely $selys) alias fillwithlights_x $selx alias fillwithlights_y $sely alias fillwithlights_loopx (div $selxs $arg1) if (mod $selxs $arg1) [ alias fillwithlights_loopx (+ $fillwithlights_loopx 1) ] [] while [ (< $fillwithlights_y $fillwithlights_maxy ) ] [ loop $fillwithlights_loopx [ select (+ $fillwithlights_x (* $i $arg1)) $fillwithlights_y 1 1 newent light $arg2 $arg3 $arg4 $arg5 ] alias fillwithlights_y (+ $fillwithlights_y $arg1 ) ] ] // }}} exec map_list.cfg