docs.cfg 250 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985
  1. // This CubeScript file has been automatically generated from AssaultCube's ./docs/reference.xml
  2. // DO NOT MODIFY THIS FILE - Instead, modify ./docs/reference.xml and generate this file automatically.
  3. // To generate this file automatically, please carefully read the comment at the top of reference.xml
  4. docsection [CubeScript]
  5. docident [!] [Performs a negation.];
  6. docargument [A] [argument] [] [0];
  7. docident [!=] [Determines if two values are not equal.];
  8. docargument [A] [first value] [] [0];
  9. docargument [B] [second value] [] [0];
  10. docident [!=f] [Determines if the first floating-point value is not equal to the second floating-point value.];
  11. docargument [A] [the first value] [] [0];
  12. docargument [B] [the second value] [] [0];
  13. docident [!b] [Performs the operation NOT using binary arithmetic on integer values (32-bit signed).];
  14. docargument [A] [argument] [] [0];
  15. docremark [Integer values are 32-bit signed values, so for example "echo (!b 1)" returns "-2".];
  16. docref [&b];
  17. docref [|b];
  18. docref [^b];
  19. docident [&&] [Logical AND.];
  20. docargument [A] [first value] [] [0];
  21. docargument [B] [second value] [] [0];
  22. docexample [echo (&& 1 1)] [Output: 1];
  23. docexample [echo (&& 1 0)] [Output: 0];
  24. docident [&b] [Performs the operation AND using binary arithmetic on integer values (32-bit signed).];
  25. docargument [A] [the first argument] [] [0];
  26. docargument [B] [the second argument] [] [0];
  27. docref [|b];
  28. docref [^b];
  29. docref [!b];
  30. docident [*] [Performs a multiplication 2 or more numbers.];
  31. docargument [A] [the multiplicand] [] [0];
  32. docargument [B] [the multiplier(s)] [] [0];
  33. docident [*=] [Multiplies an alias by a value.];
  34. docargument [A] [the alias to be multiplied] [] [0];
  35. docargument [B] [the multiplier] [] [0];
  36. docremark [Example: *= foo 1337];
  37. docident [*=f] [Multiplies an alias by a floating-point value.];
  38. docargument [A] [the alias to be multiplied] [] [0];
  39. docargument [B] [the multiplier] [] [0];
  40. docremark [Example: *=f foo 13.37];
  41. docident [*f] [Performs a floating point multiplication 2 or more numbers.];
  42. docargument [A] [the multiplicand] [] [0];
  43. docargument [B] [the multiplier(s)] [] [0];
  44. docident [+] [Performs an addition 2 or more numbers.];
  45. docargument [A] [the first summand] [] [0];
  46. docargument [B] [the summand(s)] [] [0];
  47. docremark [Example: echo the sum of x and y is (+ $x $y)];
  48. docident [++] [Increments an alias by 1.];
  49. docargument [A] [the alias name] [] [0];
  50. docexample [i = 0; ++ i; echo $i] [Output: 1];
  51. docref [--];
  52. docref [++f];
  53. docref [--f];
  54. docident [++f] [Increments an alias by floating-point 1.];
  55. docargument [A] [the alias name] [] [0];
  56. docexample [i = 2.14; ++f i; echo $i] [Output: 3.14];
  57. docref [--f];
  58. docref [++];
  59. docref [--];
  60. docident [+=] [Adds a value to an alias.];
  61. docargument [A] [the alias to add to] [] [0];
  62. docargument [B] [value to be added] [] [0];
  63. docremark [Example: += foo 1337];
  64. docident [+=f] [Adds a floating-point value to an alias.];
  65. docargument [A] [the alias to add to] [] [0];
  66. docargument [B] [value to be added] [] [0];
  67. docremark [Example: +=f foo 13.37];
  68. docident [+f] [Adds up two or more floating-point numbers.];
  69. docargument [A] [the first summand] [float] [0];
  70. docargument [B] [the summand(s)] [float] [0];
  71. docident [-] [Performs a subtraction.];
  72. docargument [A] [the minuend] [] [0];
  73. docargument [B] [the subtrahend] [] [0];
  74. docident [--] [Decrements an alias by 1.];
  75. docargument [A] [the alias name] [] [0];
  76. docexample [i = 0; -- i; echo $i] [Output: -1];
  77. docref [++];
  78. docref [--f];
  79. docref [++f];
  80. docident [--f] [Decrements an alias by floating-point 1.];
  81. docargument [A] [the alias name] [] [0];
  82. docexample [i = 4.14; --f i; echo $i] [Output: 3.14];
  83. docref [++f];
  84. docref [--];
  85. docref [++];
  86. docident [-=] [Subtracts a value from an alias.];
  87. docargument [A] [the alias to subtract from] [] [0];
  88. docargument [B] [value to be subtracted] [] [0];
  89. docremark [Example: -= foo 1337];
  90. docident [-=f] [Subtracts a floating-point value from an alias.];
  91. docargument [A] [the alias to subtract from] [] [0];
  92. docargument [B] [value to be subtracted] [] [0];
  93. docremark [Example: -=f foo 13.37];
  94. docident [-f] [Subtracts two floating-point numbers.];
  95. docargument [A] [the minuend] [float] [0];
  96. docargument [B] [the subtrahend] [float] [0];
  97. docident [<] [Determines if a value is smaller than a second value.];
  98. docargument [A] [the first value] [] [0];
  99. docargument [B] [the second value] [] [0];
  100. docident [<=] [Determines if a values is less than or equal to a second value.];
  101. docargument [A] [the first value] [] [0];
  102. docargument [B] [the second value] [] [0];
  103. docident [<=f] [Compares if a particular floating-point value is less than or equal to another floating-point value.];
  104. docargument [A] [The first value.] [] [0];
  105. docargument [B] [The second value.] [] [0];
  106. docident [<f] [Compares if a particular floating-point value is smaller than another floating-point value.];
  107. docargument [A] [The first value.] [] [0];
  108. docargument [B] [The second value.] [] [0];
  109. docident [=] [Determines if two values are equal.];
  110. docargument [A] [first value] [] [0];
  111. docargument [B] [second value] [] [0];
  112. docexample [echo there are only (concatword (= 1 1) (= 1 0)) types of people in the world] [Output: there are only 10 types of people in the world];
  113. docident [=f] [Compares if a particular floating-point value is equal to another floating-point value.];
  114. docargument [A] [The first value.] [] [0];
  115. docargument [B] [The second value.] [] [0];
  116. docident [>] [Determines if a value is bigger than a second value.];
  117. docargument [A] [the first value] [] [0];
  118. docargument [B] [the second value] [] [0];
  119. docident [>=] [Determines if a values is greater than or equal to a second value.];
  120. docargument [A] [the first value] [] [0];
  121. docargument [B] [the second value] [] [0];
  122. docident [>=f] [Determines if the first floating-point value is greater than or equal to the second floating-point value.];
  123. docargument [A] [the first value] [] [0];
  124. docargument [B] [the second value] [] [0];
  125. docident [>f] [Determines if the first floating-point value is greater than the second floating-point value.];
  126. docargument [A] [the first value] [] [0];
  127. docargument [B] [the second value] [] [0];
  128. docident [\f] [Adds color to a string.];
  129. docargument [N] [color id] [0-9, A-Z] [0];
  130. docremark [The whole string has to be included in quotes.];
  131. docexample [echo "\f3Hello \f0world!"] [Output: a red "Hello" and a green "world!"];
  132. docref [cncolumncolor];
  133. docident [^b] [Performs the operation XOR using binary arithmetic on integer values (32-bit signed).];
  134. docargument [A] [the first argument] [] [0];
  135. docargument [B] [the second argument] [] [0];
  136. docref [&b];
  137. docref [|b];
  138. docref [!b];
  139. docident [add2alias] [This will append the passed 2nd argument to any existing content of the alias named in the 1st argument.];
  140. docargument [A] [the alias to add to] [] [0];
  141. docargument [E] [the new element to add] [] [0];
  142. docremark [Several popular aliases have predefined shortcuts using this scriptalias: addOnLoadOnce, addOnLoadAlways. Check config/scripts.cfg for possible omissions in that list.];
  143. docexample [foo = "one" add2alias foo two echo foo] [Output: one two];
  144. docref [add2bind];
  145. docref [add2list];
  146. docident [add2list] [Appends a new element to a list.];
  147. docargument [A] [the alias (list) to add to] [] [0];
  148. docargument [E] [the new element to add] [] [0];
  149. docexample [tmp_list = []; add2list tmp_list Hello; add2list tmp_list world!; echo $tmp_list] [Output: Hello world!];
  150. docref [add2alias];
  151. docref [add2bind];
  152. docident [addpunct] [Injects CubeScript punctuation.];
  153. docargument [S] [a string] [] [0];
  154. docargument [N] [ID or name] [0 (quotes), 1 (brackets), 2 (parenthesis), 3 (_$_), 4 (quote), 5 (percent)] [0];
  155. docexample [echo (addpunct hello)] [Output: "hello"];
  156. docexample [echo (addpunct hello 1)] [Output: [hello]];
  157. docexample [echo (addpunct hello 2)] [Output: (hello)];
  158. docexample [echo (addpunct hello 3)] [Output: $hello];
  159. docexample [test = (concat echo (addpunct fov 3)); test] [Output: 90.0];
  160. docident [alias] [Binds a name to commands.];
  161. docargument [N] [the name of the alias] [string, must not contain '$'] [0];
  162. docargument [A] [the commands] [string] [0];
  163. docexample [alias myalias [ echo "hello world"; alias myalias [ echo "I already said hello" ] ]] [It is possible to re-bind an alias, even during its evaluation.];
  164. docexample [test = [ echo "successful" ]] [There is also the shorthand version of defining an alias via the "="-sign.];
  165. docident [aliasinit] [Initializes a group of aliases using checkinit.];
  166. docargument [L] [the list of aliases to check for] [] [0];
  167. docargument [B] [the block of code to ensure the aliases contain] [] [0];
  168. docref [checkalias];
  169. docref [checkinit];
  170. docref [check2init];
  171. docref [check2initlist];
  172. docident [at] [Grabs a word out of a string.];
  173. docargument [S] [the string] [] [0];
  174. docargument [N] [the index of the word] [] [0];
  175. docexample [echo (at "zero one two three" 2)] [output: two];
  176. docident [break] [Aborts a loop created with a 'loop', 'looplist' or 'while' command.];
  177. docexample [loop i 10 [ if (= $i 4) [ break ]; echo $i]] [output: 0 1 2 3];
  178. docref [continue];
  179. docref [loop];
  180. docref [while];
  181. docident [ceil] [Upper value of a float number.];
  182. docargument [F] [The float number to get the ceil from] [] [0];
  183. docident [check2init] [Defines an alias only if it does not already exist.];
  184. docargument [A] [alias name] [] [0];
  185. docargument [V] [alias value] [] [0];
  186. docref [check2initlist];
  187. docref [checkalias];
  188. docref [checkinit];
  189. docref [aliasinit];
  190. docident [check2initlist] [Uses check2init on a list of aliases.];
  191. docargument [L] [list of alias names] [] [0];
  192. docargument [V] [alias value] [] [0];
  193. docref [checkalias];
  194. docref [checkinit];
  195. docref [aliasinit];
  196. docref [check2init];
  197. docident [checkalias] [Determines if the argument given is an existing alias or not.];
  198. docargument [A] [the alias to check for] [] [0];
  199. docexample [hello = ""; echo (checkalias hello)] [Output: 1];
  200. docexample [echo (checkalias oMgThIsAlIaSpRoLlYdOeSnTeXiSt)] [Output: 0];
  201. docref [checkinit];
  202. docref [aliasinit];
  203. docident [checkinit] [Ensures the initialization of an alias.];
  204. docargument [A] [the alias to check for] [] [0];
  205. docargument [B] [the block of code to ensure that the alias contains] [] [0];
  206. docexample [checkinit mapstartalways] [Output: if alias mapstartalways does not exist, this command initializes it.];
  207. docexample [checkinit mapstartalways [ echo New map, good luck! ]] [Output: if alias mapstartalways does not exist, it is initialized, and if the block of code "[ echo New map, good luck! ]" does not exist within the aliases contents, this command adds it.];
  208. docref [checkalias];
  209. docref [aliasinit];
  210. docref [check2init];
  211. docref [check2initlist];
  212. docident [concat] [Concatenates multiple strings with spaces inbetween.];
  213. docargument [S] [the first string] [] [0];
  214. docargument [...] [collection of strings to concatenate] [] [1];
  215. docexample [alias a "hello"; echo (concat $a "world")] [output: hello world];
  216. docident [concatword] [Concatenates multiple strings.];
  217. docargument [S] [the first string] [] [0];
  218. docargument [...] [collection of strings to concatenate] [] [1];
  219. docremark [The newly created string is saved to the alias 's'.];
  220. docexample [alias a "Cube"; echo (concatword $a "Script")] [output: CubeScript];
  221. docident [const] [Set an alias as a constant.];
  222. docargument [N] [the name of the alias] [string, must not contain '$'] [0];
  223. docargument [A] [the value] [string] [0];
  224. docremark [A constant cannot be redefined : its value cannot be changed.];
  225. docremark [To get rid of a constant, use delalias];
  226. docexample [myalias = myvalue; const myalias;] [Set "myalias" value to "myvalue" then "lock" it as a constant.];
  227. docexample [const myalias myvalue;] [You can directly set a value for your alias when you define it as a constant.];
  228. docexample [const myalias myvalue; myalias = anothervalue;] [Assigning a value to a const will throw you an error. Output: myalias is already defined as a constant];
  229. docident [continue] [Skip current loop iteration.];
  230. docexample [loop i 5 [ if (= $i 2) [ continue ]; echo $i]] [output: 0 1 3 4];
  231. docref [break];
  232. docref [loop];
  233. docref [while];
  234. docident [delalias] [deletes the passed alias.];
  235. docargument [N] [the name of the alias] [string, must not contain '$'] [0];
  236. docident [div] [Performs an integer division.];
  237. docargument [A] [the dividend] [] [0];
  238. docargument [B] [the divisor] [] [0];
  239. docident [div=] [Divides an alias by a value.];
  240. docargument [A] [the alias to be divided] [] [0];
  241. docargument [B] [the divisor] [] [0];
  242. docremark [Example: div= foo 1337];
  243. docident [div=f] [Divides an alias by a floating-point value.];
  244. docargument [A] [the alias to be divided] [] [0];
  245. docargument [B] [the divisor] [] [0];
  246. docremark [Example: div=f foo 13.37];
  247. docident [divf] [Performs a division with floating-point precision.];
  248. docargument [A] [] [the dividend] [0];
  249. docargument [B] [] [the divisor] [0];
  250. docident [editsvar] [Interactively edits an alias in the console buffer.];
  251. docargument [A] [Alias to edit] [The alias name, without $] [0];
  252. docremark [This takes the current value of the alias, and inserts it into the command line / text entry box];
  253. docexample [alias test "Hello World"; editsvar test] [Result: edit test: Hello World];
  254. docref [inputcommand];
  255. docident [enumalias] [Lists all persistent aliases that start with prefix.];
  256. docremark [Returns a table with two entries per alias: 1) full name and 2) name without prefix.];
  257. docref [alias];
  258. docident [escape] [Replaces control characters in a string with escaped sequences.];
  259. docargument [S] [string to escape] [] [0];
  260. docexample [echo (escape (concat (c 3) "Hello World"))] [Output: "\f3Hello World"];
  261. docident [execute] [Executes the specified string as CubeScript.];
  262. docargument [S] [the string to execute] [] [0];
  263. docexample [execute (concat echo (addpunct fov 3))] [Example output: 90.0];
  264. docident [findlist] [Searches a list for a specified value.];
  265. docargument [L] [the list] [] [0];
  266. docargument [I] [the item to find] [] [0];
  267. docident [floor] [Floor value of a float number.];
  268. docargument [F] [The float number to get the floor from] [] [0];
  269. docident [forceinit] [Forcibly sets a list of aliases to a specified value.];
  270. docargument [L] [list of alias names] [] [0];
  271. docargument [V] [alias value] [] [0];
  272. docexample [alias1 = 0; alias2 = 0; alias3 = 0; alias4 = 0; alias 5 = 0] [Can be written as:];
  273. docexample [forceinit [alias1 alias2 alias3 alias4 alias5] 0] [];
  274. docident [format] [Replaces "%" format specifiers in the string by the values specified in subsequent arguments.];
  275. docargument [F] [format] [use %1..%9 for the values] [0];
  276. docargument [V] [value(s)] [] [0];
  277. docexample [echo (format "%1 bottles of %2 on the %3, %1 bottles of %2!" 99 beer wall)] [output: 99 bottles of beer on the wall, 99 bottles of beer!];
  278. docident [getalias] [Returns the value of the alias.];
  279. docargument [N] [alias name] [] [0];
  280. docref [storesets];
  281. docref [getvarrange];
  282. docident [getvarrange] [Gets range attribute for builtin variable.];
  283. docargument [W] [what] [min, max, default] [0];
  284. docargument [N] [the name of any builtin variable (integer or float)] [] [0];
  285. docref [getalias];
  286. docident [h0] [Returns value as string of hexadecimal digits, padded with leading zeros to a given minimum length (precision).];
  287. docargument [P] [precision] [] [0];
  288. docargument [V] [value] [] [0];
  289. docexample [echo (h0 2 1024)] [Output: 400];
  290. docexample [echo (h0 4 1024)] [Output: 0400];
  291. docexample [echo (h0 6 1024)] [Output: 000400];
  292. docexample [echo (h0 0 (&b 0xe 0x3))] [Output: 2];
  293. docexample [echo (h0 0 (|b 0xe 0x3))] [Output: f];
  294. docexample [echo (h0 0 (^b 0xe 0x3))] [Output: d];
  295. docexample [echo (h0 0 (!b 0xe))] [Output: fffffff1];
  296. docexample [echo (h0 0 (* -1 0xe))] [Output: fffffff2];
  297. docref [l0];
  298. docident [if] [Controls the script flow based on a boolean expression.];
  299. docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
  300. docargument [true] [the body to execute if the condition is true] [] [0];
  301. docargument [false] [the body to execute if the condition is false] [] [0];
  302. docexample [if (> $x 10) [ echo x is bigger than 10 ] [ echo x too small ]] [];
  303. docident [inputcommand] [Makes an input perform a certain command.];
  304. docargument [I] [input] [] [0];
  305. docargument [C] [command] [] [0];
  306. docargument [P] [prompt] [] [0];
  307. docref [complete];
  308. docref [listcomplete];
  309. docref [saycommand];
  310. docident [isIdent] [Returns whether or not there is an identifier by that name.];
  311. docargument [N] [identifier name] [] [0];
  312. docident [isconst] [Determines if the argument given is a constant or not.];
  313. docargument [A] [the alias to check for] [] [0];
  314. docexample [const hello ""; echo (isconst hello)] [Output: 1];
  315. docexample [hello = value; echo (isconst hello)] [Output: 0];
  316. docref [const];
  317. docident [isolatecontext] [Isolates the given context.];
  318. docargument [C] [the context] [] [0];
  319. docremark [This disables access from this context to identifiers located in other contexts, also it removes all aliases created in this context once the running context changes.];
  320. docref [sealcontexts];
  321. docident [l0] [Leading zeros for the number V to make it W chars wide.];
  322. docargument [W] [width] [] [0];
  323. docargument [V] [value] [] [0];
  324. docremark [It may look like 10 - which might be considered a mnemonic - but it's lowercase-L and 0!];
  325. docexample [echo (l0 5 1000)] [Output: 01000];
  326. docexample [echo (l0 3 1000)] [Output: 1000];
  327. docref [h0];
  328. docident [listaverage] [Returns the average of a list of numbers.];
  329. docargument [L] [the list of numbers] [supports ints and floats] [0];
  330. docexample [echo (listaverage "2 5 5")] [Output: 4.0];
  331. docident [listlen] [returns the element count of the given list.];
  332. docargument [L] [the list] [] [0];
  333. docident [listoptions] [Lists the argument options for several argument types.];
  334. docexample [echo (listoptions)] [Output: "entities ents weapons teamnames teamnames-abbrv punctuations crosshairnames menufilesortorders texturestacktypes cubetypes"];
  335. docexample [echo (listoptions teamnames)] [Output: "CLA RVSF CLA-SPECT RVSF-SPECT SPECTATOR"];
  336. docident [loop] [Loops the specified body.];
  337. docargument [V] [the alias used as counter] [] [0];
  338. docargument [N] [the amount of loops] [] [0];
  339. docargument [body] [the body to execute on each iteration] [] [0];
  340. docremark [This command sets the alias you choose, as first argument, from 0 to N-1 for every iteration.];
  341. docexample [loop i 10 [ echo $i ]] [];
  342. docref [break];
  343. docref [continue];
  344. docref [while];
  345. docref [looplist];
  346. docident [looplist] [Browses a list and executes a body for each element.];
  347. docargument [V] [the list to browse] [] [0];
  348. docargument [N] [the alias(es) containing the current element value] [] [0];
  349. docargument [body] [the body to execute on each iteration] [] [0];
  350. docremark [It works optionally with several variables.];
  351. docexample [looplist "zero one two three" number [echo $number]] [];
  352. docexample [looplist [0 "is knife" 1 "is pistol"] [n w] [echo weapon $n $w]] [];
  353. docref [break];
  354. docref [continue];
  355. docref [loop];
  356. docref [looplisti];
  357. docident [looplisti] [Browses a list and executes a body for each element.];
  358. docargument [V] [the list to browse] [] [0];
  359. docargument [N] [the alias(es) containing the current element value] [] [0];
  360. docargument [body] [the body to execute on each iteration] [] [0];
  361. docremark [The same as looplist, but it automatically counts the loops in "i", starting with 0. It works optionally with several variables.];
  362. docexample [a = [u v w]; b = [x y z]; looplisti $a m [echo $m (at $b $i) $i]] [Output: u x 0 , v y 1 , w z 2];
  363. docref [break];
  364. docref [continue];
  365. docref [loop];
  366. docref [looplist];
  367. docident [mod] [Performs a modulo operation.];
  368. docargument [A] [the dividend] [] [0];
  369. docargument [B] [the divisor] [] [0];
  370. docident [modf] [Performs a floating-point modulo operation.];
  371. docargument [A] [the dividend] [] [0];
  372. docargument [B] [the divisor] [] [0];
  373. docexample [echo (modf 7.5 12.5)] [Output: 7.5];
  374. docexample [echo (modf 17.5 12.5)] [Output: 5.0];
  375. docident [numargs] [The number of arguments passed to the current alias.];
  376. docargument [V] [numargs] [ read-only];
  377. docident [persistidents] [Controls whether aliases defined afterwards will be saved (1) or not (0).];
  378. docargument [B] [control option] [1...persistent, 0...not persistent] [0];
  379. docremark [This option is useful to keep saved.cfg free from unneeded clutter.];
  380. docremark [Note: in map and model configs, this option is always disabled.];
  381. docexample [persistidents 0; foo = [ echo "bar"]] [foo will not be saved and has to be redefined when restarting AC.];
  382. docexample [persistidents 1; bar = [ echo "foo"]] [bar will be saved and persistent across sessions.];
  383. docident [pop] [Resets a previously pushed alias to it's original value.];
  384. docargument [A] [alias] [] [0];
  385. docremark [It is allowed to use multiple arguments for "pop". So instead of "pop var_a ; pop var_b" you can write "pop var_a var_b". Also, "pop" will now give back the removed value of the first alias from the argument list. This allows using the pop'd value one last time.];
  386. docexample [pop p; echo $p] [Output: 1];
  387. docref [push];
  388. docident [powf] [Returns A raised to the power of B (floating-point).];
  389. docargument [A] [the mantissa] [] [0];
  390. docargument [B] [the exponent] [] [0];
  391. docident [push] [Temporarily redefines the value of an alias.];
  392. docargument [N] [alias name] [] [0];
  393. docargument [A] [action] [] [0];
  394. docexample [p = 1; push p 2; echo $p] [Output: 2];
  395. docref [pop];
  396. docident [resetsleeps] [Resets all current "sleep".];
  397. docident [result] [Sets the result value of a CubeScript block.];
  398. docargument [R] [the result] [] [0];
  399. docref [execute];
  400. docref [return];
  401. docident [return] [Sets the result value of a CubeScript block.];
  402. docargument [R] [the result] [] [0];
  403. docref [execute];
  404. docref [result];
  405. docident [rnd] [Random value.];
  406. docargument [A] [The upper limit of the random value] [] [0];
  407. docident [round] [Rounds the given float.];
  408. docargument [F] [The float number to round] [] [0];
  409. docident [scriptcontext] [];
  410. docargument [C] [context] [] [0];
  411. docargument [N] [idname] [] [0];
  412. docident [sealcontexts] [Secures this configuration for the rest of the game.];
  413. docident [sleep] [Executes a command after specified time period.];
  414. docargument [N] [the amount of milliseconds] [] [0];
  415. docargument [C] [the command to execute] [] [0];
  416. docargument [P] [ignore map change (optional)] [] [0];
  417. docexample [sleep 1000 [ echo foo ]] [Prints 'foo' to the screen after 1 second.];
  418. docident [sortlist] [Returns a sorted version of a list.];
  419. docargument [L] [list to sort] [] [0];
  420. docexample [echo (sortlist [1 3 2])] [Output: 1 2 3];
  421. docident [storesets] [Generates an alias (list) of the current values for the given aliases/CVARs.];
  422. docargument [L] [the list of aliases/CVARs] [] [0];
  423. docargument [A] [the alias to store them in] [] [0];
  424. docexample [storesets "sensitivity hudgun fov" tmp] [Example result: stores "3.000 1 120" into alias "tmp".];
  425. docref [getalias];
  426. docident [strcmp] [Determines if two strings are equal.];
  427. docargument [A] [the first string] [] [0];
  428. docargument [B] [the second string] [] [0];
  429. docexample [if (strcmp yes yes) [echo the two strings are equal] [echo the two strings are not equal]] [Output: the two strings are equal];
  430. docref [strstr];
  431. docident [strlen] [Returns the length (in characters, including whitespace) of string S.];
  432. docargument [S] [STRING] [] [0];
  433. docexample [echo (strlen "Hello world!")] [Output: 12];
  434. docref [substr];
  435. docident [strpos] [Returns the position of a substring into another.];
  436. docargument [H] [haystack string] [] [0];
  437. docargument [S] [needle string] [] [0];
  438. docargument [N] [The occurence of 'needle' to find (optional)] [] [0];
  439. docremark [Character indexes and occurence number begin at 0.];
  440. docexample [echo (strpos "hello world" "world") 6] [];
  441. docexample [echo (strpos "hello world" "l") 2] [];
  442. docexample [echo (strpos "hello world" "l" 2) 9] [];
  443. docident [strreplace] [Returns a string, with a portion of it replaced with a new sub-string.];
  444. docargument [S] [the original string to modify] [] [0];
  445. docargument [T] [the target sub-string to replace] [] [0];
  446. docargument [N] [the new sub-string to replace the target] [] [0];
  447. docexample [echo (strreplace "Hello cruel world" cruel "")] [Output: Hello world];
  448. docref [strpos];
  449. docref [substr];
  450. docident [strstr] [Determines if string B was found in string A.];
  451. docargument [A] [the first string] [] [0];
  452. docargument [B] [the second string] [] [0];
  453. docexample [if (strstr "Hello world!" Hello) [echo found Hello in Hello world!] [echo did not find Hello in Hello world!]] [Output: found Hello in Hello world!];
  454. docref [strcmp];
  455. docident [substr] [Copies a substring out of the original.];
  456. docargument [S] [the original string] [] [0];
  457. docargument [A] [start position] [] [0];
  458. docargument [L] [substring length (optional)] [] [0];
  459. docremark [Character indexes begins at 0. If "start position" is negative, the reference is the end of the string.];
  460. docexample [echo (substr abcdefgh 2 5) cdefg] [];
  461. docexample [echo (substr abcdefgh -3 2) fg] [];
  462. docexample [echo (substr abcdefgh 2) cdefgh] [];
  463. docref [strlen];
  464. docref [strpos];
  465. docref [strreplace];
  466. docref [parsestring];
  467. docident [swapelements] [Returns a modified list swapping the positions of 2 elements.];
  468. docargument [L] [list] [] [0];
  469. docargument [S] [positions of 2 elements in the list to swapping] [] [0];
  470. docexample [echo (swapelements [0 1 2 3] [0 3])] [Output: 3 1 2 0];
  471. docident [switch] [Takes an integer argument to determine what block of code to execute.];
  472. docargument [I] [integer] [] [0];
  473. docargument [C] [a variable number of 'case' arguments...] [] [0];
  474. docremark [This command can only handle up to 23 'cases'. (because of cubescript's 24 argument limit)];
  475. docexample [switch 2 [echo case 0] [echo case 1] [echo case 2] [echo case 3] [echo case 4]] [Output: case 2];
  476. docident [tempalias] [Creates a temporary alias that will not be written to saved.cfg, and thus will not persist after quitting.];
  477. docargument [N] [temporary alias name] [] [0];
  478. docargument [C] [Cubescript command(s)] [] [0];
  479. docref [alias];
  480. docident [testchar] [Tests a character argument for various things.];
  481. docargument [C] [the character to test] [] [0];
  482. docargument [N] [type of test to run] [min 0/max 7/default 0] [0];
  483. docremark [See the following c++ functions for more information about the usage of this command:];
  484. docremark [isalpha(), isalnum(), isdigit(), islower(), isprint(), ispunct(), isupper(), and isspace()];
  485. docexample [echo (testchar 1)] [Output: 1 // It is a 0-9 digit];
  486. docexample [echo (testchar a 1)] [Output: 1 // It is a a-z or A-Z character];
  487. docexample [echo (testchar z 2)] [Output: 1 // It is a a-z or A-Z character or 0-9 digit];
  488. docexample [echo (testchar b 3)] [Output: 1 // It is a lowercase a-z character];
  489. docexample [echo (testchar B 4)] [Output: 1 // It is a uppercase A-Z character];
  490. docexample [echo (testchar , 5)] [Output: 1 // It is a printable character];
  491. docexample [echo (testchar . 6)] [Output: 1 // It is a punctuation character];
  492. docexample [echo (testchar " " 7)] [Output: 1 // It is a whitespace character];
  493. docident [tolower] [Converts a string to all lowercase characters.];
  494. docargument [S] [a string] [] [0];
  495. docexample [echo (tolower HELLO)] [Output: hello];
  496. docref [toupper];
  497. docident [toupper] [Converts a string to all uppercase characters.];
  498. docargument [S] [a string] [] [0];
  499. docexample [echo (toupper hello)] [Output: HELLO];
  500. docref [tolower];
  501. docident [while] [Loops the specified body while the condition evaluates to true.];
  502. docargument [cond] [the condition] [the code evaluated before each iteration] [0];
  503. docargument [body] [the body to execute on each iteration] [] [0];
  504. docremark [This command sets the alias "i" from 0 to N-1 for every iteration. Note that the condition here has to have [], otherwise it would only be evaluated once.];
  505. docexample [alias i 0; while [ (< $i 10) ] [ echo $i; alias i (+ $i 1) ]] [];
  506. docref [break];
  507. docref [continue];
  508. docref [loop];
  509. docident [|b] [Performs the operation OR using binary arithmetic on integer values (32-bit signed).];
  510. docargument [A] [the first argument] [] [0];
  511. docargument [B] [the second argument] [] [0];
  512. docref [&b];
  513. docref [^b];
  514. docref [!b];
  515. docident [||] [Logical OR.];
  516. docargument [A] [first value] [] [0];
  517. docargument [B] [second value] [] [0];
  518. docexample [echo (|| 1 0)] [output: 1];
  519. docexample [echo (|| 0 0)] [output: 0];
  520. docsection [General]
  521. docident [addpckserver] [Adds a packages source server where to download custom content from.];
  522. docargument [S] [The server address. Trailing slash not needed.] [] [0];
  523. docargument [P] [priority of the server] [] [0];
  524. docremark [Only add servers you trust.];
  525. docremark [The list of servers is saved into config/pcksources.cfg on game quit.];
  526. docremark [If a priority is given, it influences the sorting of servers. Servers with higher priority are queried first. If servers have the same priority, they are sorted by ping. Default priority is zero.];
  527. docexample [addpckserver http://packages.ac-akimbo.net] [];
  528. docref [resetpckservers];
  529. docref [autodownload];
  530. docref [getpckserver];
  531. docident [addserver] [Adds a server to the list of server to query in the server list menu.];
  532. docargument [S] [the address of the server (hostname or IP)] [] [0];
  533. docargument [P] [the port] [] [0];
  534. docident [addzipmod] [Add the zip package file "mods/zipname.zip" to the virtual file system.];
  535. docargument [N] [the name of the zip mod] [] [0];
  536. docremark [Add the zip package file "mods/zipname.zip" to the virtual file system. Only files below the path "packages/" are added (and also files below "config/", if zipname starts with "###"). If the size of the zip file is below "zipcachemaxsize", the whole zip file is cached in memory. (Un-cached zip files are kept open at all time, so caching keeps the number of simultaneously opened files lower.)];
  537. docref [getmod];
  538. docref [zipcachemaxsize];
  539. docref [zipmodremove];
  540. docref [zipmodclear];
  541. docref [zipmodlist];
  542. docref [zipmodgetdesc];
  543. docref [zipmodgetfiles];
  544. docref [zipmodgetrevision];
  545. docident [allowhudechos] [Enables or disables the ability of hudecho to output text to the heads up display.];
  546. docargument [N] [0 off, 1 on] [min 0/max 1/default 1];
  547. docref [hudecho];
  548. docident [applydialog] [Toggles the showing of the "Apply changes now?" menu when changing certain graphical settings.];
  549. docargument [N] [1 = show, 0 = don't show] [min 0/max 1/default 1];
  550. docident [autodownload] [Determines if the game should try to download missing packages such as textures or mapmodels on the fly.];
  551. docargument [V] [Note: This is turned on by default] [min 0/max 1/default 1];
  552. docident [autodownloaddebug] [When the variable autodownloaddebug is set to 1 and/or in debug binaries, more debug output is produced.];
  553. docargument [V] [Add debug info to autodownload] [min 0/max 1/default 0];
  554. docident [autogetmap] [Determines if the current played map should be automatically downloaded if it is not available locally.];
  555. docargument [B] [enable auto map download] [min 0/max 1/default 1];
  556. docident [autogetnewmaprevisions] [Automatically get new map revisions from the server.];
  557. docargument [N] [0: no, 1: yes] [min 0/max 1/default 0];
  558. docident [autoscreenshot] [Toggle for taking an automatic screenshot during intermission.];
  559. docargument [B] [0=Off, 1=On] [min 0/max 1/default 1];
  560. docident [cleanshot] [Takes a "clean" screenshot with no HUD items.];
  561. docremark [Your current HUD configuration is stored into a buffer, and is re-enabled afterwards.];
  562. docref [screenshot];
  563. docref [blankouthud];
  564. docident [clearservers] [Clears the server list.];
  565. docident [clockerror] [Sets the correction value for clockfix.];
  566. docargument [V] [correction value] [min 990000/max 1010000/default 1000000];
  567. docremark [Engine source-code snippet (main.cpp): if(clockfix) millis = int(millis*(double(clockerror)/1000000));];
  568. docref [clockfix];
  569. docident [clockfix] [Enables correction of the system clock.];
  570. docargument [B] [enable correction] [min 0/max 1/default 0];
  571. docref [clockerror];
  572. docident [complete] [];
  573. docargument [C] [command] [any command or alias] [0];
  574. docargument [P] [path] [path to search] [0];
  575. docargument [E] [extension] [extension to match] [0];
  576. docremark [The completion will work on the first word of your console input.];
  577. docexample [complete demo "demos" dmo] [If you enter "/demo " and press TAB you will cycle through all available demos.];
  578. docexample [alias mapcomplete [complete $arg1 "packages/maps" cgz]] [Helper alias for quickly adding complete-definitions for all gamemodes - see config/script.cfg (below "Auto-completions").];
  579. docref [saycommand];
  580. docref [listcomplete];
  581. docident [conline] [Returns text from the last line in the console.];
  582. docident [connected] [Indicates if a connection to a server exists.];
  583. docargument [B] [the connection state] [1 (connected), 0 (disconnected) min 0/max 1/default 0];
  584. docident [conopen] [Indicates the state of the console.];
  585. docargument [N] [console state] [0: closed, 1: open in an alternate size, 2: open regularly read-only];
  586. docref [altconsize];
  587. docref [toggleconsole];
  588. docident [conskip] [Allows to browse through the console history by offsetting the console output.];
  589. docargument [N] [the offset] [] [0];
  590. dockey [KP_MINUS] [- on the keypad] [scrolls into the history (conskip 1)];
  591. dockey [KP_PLUS] [+ on the keypad] [resets the history (conskip -1000)];
  592. docident [datestring] [Representation of date.];
  593. docremark [Format: Www Mmm dd hh:mm:ss yyyy];
  594. docremark [Use timestamp to create your own formatting.];
  595. docexample [echo (datestring) "Sat Jun 7 17:08:35 2008"] [];
  596. docident [debugargs] [Dumps all command arguments to STDOUT.];
  597. docargument [...] [...] [] [1];
  598. docident [demonameformat] [Sets the formatstring for demo filenames.];
  599. docargument [S] [string] [] [0];
  600. docremark [we use the following internal mapping of formatchars:];
  601. docremark [%g : gamemode (int) ; %G : gamemode (chr) ; %F : gamemode (full) ;];
  602. docremark [%m : minutes remaining ; %M : minutes played ;];
  603. docremark [%s : seconds remaining ; %S : seconds played ;];
  604. docremark [%h : IP of server ; %H : hostname of server (client only) ;];
  605. docremark [%n : mapname ;];
  606. docremark [%w : timestamp "when" (formatted by demotimeformat) .];
  607. docref [demotimeformat];
  608. docident [demotimeformat] [Sets the formatstring for demo timestamp.];
  609. docargument [S] [string] [strftime format] [0];
  610. docremark [If the string starts with 'U', UTC is used - otherwise local time.];
  611. docremark [The same format options as in strftime().];
  612. docref [demonameformat];
  613. docident [echo] [Outputs text to the console.];
  614. docargument [L] [List of strings] [] [0];
  615. docref [hudecho];
  616. docident [exec] [Executes all commands in a specified config file.];
  617. docargument [C] [the config file] [] [0];
  618. docremark [It also allows to pass arguments to and deliver results from script files - when a script file is executed, any additional arguments are passed as execarg1..execargX to the script. The number of arguments is in execnumargs and if the script in the file sets the value of execresult, the exec command returns that value.];
  619. docremark [Example:];
  620. docremark [if there is a file testscript.cfg with this content: execresult = (* $execarg1 $execarg2)];
  621. docremark [then the command: "echo (exec testscript.cfg 6 7)" will output "42".];
  622. docident [execdir] [Executes all commands in all config files in the specified directory.];
  623. docargument [s] [the directory path from the assaultcube root] [] [0];
  624. docexample [execdir scripts] [];
  625. docref [exec];
  626. docident [getEngineState] [Returns a list of values describing the current engine (rendering) state.];
  627. docremark [It will only be filled after the first frame was drawn.];
  628. docremark [The list is: FPS LOD WQD WVT EVT];
  629. docremark [FPS = Frames Per Second];
  630. docremark [LOD = Level Of Detail];
  631. docremark [WQD = World QuaD Count];
  632. docremark [WVT = World VerTex Count];
  633. docremark [EVT = Extra VerTex Count (HUD & menu)];
  634. docexample [echo (getEngineState)] [];
  635. docident [getpckserver] [Returns a table with four columns of all configured package servers.];
  636. docremark [The columns are: host name, priority, ping and resolved. "resolved" is a flag, indicating, if the server answered the ping during game start.];
  637. docref [addpckserver];
  638. docref [autodownload];
  639. docref [resetpckservers];
  640. docident [getscrext] [Returns the file extension of the client's current screenshottype setting.];
  641. docexample [echo (getscrext)] [Example output: .jpg];
  642. docref [screenshottype];
  643. docident [groupvariables] [Controls how many variables (with similar names) are grouped together on one line in saved.cfg.];
  644. docargument [N] [Variables per line] [min 0/max 10/default 4];
  645. docremark [This only pertains to commented variables in saved.cfg caused by omitunchangeddefaults being 0.];
  646. docremark [This only pertains to commented variables in saved.cfg caused by omitunchangeddefaults being 0.];
  647. docref [omitunchangeddefaults];
  648. docident [history] [Executes the specified command in the command line history.];
  649. docargument [N] [the N'th command from the history] [] [0];
  650. docremark [For example, binding "history 1" to a key allows you to quickly repeat the last command typed in (useful for placing many identical entities etc.)];
  651. docident [hudecho] [Outputs text to the console and heads up display.];
  652. docargument [L] [List of strings] [] [0];
  653. docref [allowhudechos];
  654. docref [echo];
  655. docident [jpegquality] [Sets the JPEG screenshot image quality.];
  656. docargument [N] [Compression level] [min 10/max 100/default 70];
  657. docremark [The image quality is set by it's compression level, a value of 10 sets maximum compression and a small file size but results in a bad quality image];
  658. docremark [while a value of 100 results in a large file but gives the best quality image.];
  659. docident [lang] [Sets the language for which a translated server MOTD will be fetched, if the server has one for this language.];
  660. docargument [L] [the language code] [min /max /default ];
  661. docremark [This is always a two-letter language code as defined in the ISO 639 standard, three-letter codes are currently not allowed.];
  662. docremark [If lang is not set, or if the server does not have a matching MOTD file, it will fall back to English.];
  663. docremark [Note: this does not affect the client language, which is derived from the system settings (e.g. on many *nix systems, it may be changed via the "LANG" environment variable).];
  664. docexample [en, de, fr, ...] [];
  665. docident [listcomplete] [];
  666. docref [saycommand];
  667. docref [complete];
  668. docident [mapshot] [Saves an image of the entire radar-overview of the map.];
  669. docident [maxcon] [Sets the total number of text lines from the console to store as history.];
  670. docargument [V] [] [min 10/max 1000/default 200];
  671. docident [maxhistory] [Sets how many typed console commands to store.];
  672. docargument [N] [Total of stored commands] [min 0/max 10000/default 1000];
  673. docremark [This value sets how many command lines to store in memory, everytime a command is entered it gets store so it can be recalled using the "/" key along with the arrow keys to scroll back and forth through the list.];
  674. docident [millis] [Returns the number of milliseconds since engine start.];
  675. docexample [echo (millis)] [];
  676. docident [networkdebug] [Enables output of processed network packets.];
  677. docargument [B] [enable network debugging] [min 0/max 1/default 0];
  678. docremark [This variable only has an effect if the client binary is compiled in debug mode.];
  679. docident [numconlines] [Hold the current number of lines on the console.];
  680. docident [omitunchangeddefaultbinds] [Omit unchanged default binds from saved.cfg.];
  681. docargument [N] [0 = print; 1 = print, but commented out; 2 = omit] [min 0/max 2/default 1];
  682. docref [omitunchangeddefaults];
  683. docident [omitunchangeddefaults] [Omit variables with unchanged default values from saved.cfg.];
  684. docargument [N] [0 = print, but commented out; 1 = omit] [min 0/max 1/default 1];
  685. docremark [If this value is 1, variables that are at their default values are omitted from saved.cfg. If 0, the variables are written to saved.cfg, but commented out.];
  686. docref [groupvariables];
  687. docref [omitunchangeddefaultbinds];
  688. docident [physinterp] [Toggles physics interpolation.];
  689. docargument [B] [] [min 0/max 1/default 1];
  690. docident [pngcompress] [Sets the PNG screenshot file compression.];
  691. docargument [N] [Compression level] [min 0/max 9/default 9];
  692. docremark [A value of 9 sets maximum data compression and a smaller file size while a value of 0 results in a large file image, quality is always the same since PNG its a loosless format.];
  693. docident [protocol] [Gets an integer representing the game protocol. READ ONLY];
  694. docremark [As example, the protocol of version 1.2.0.2 is represented as value 1201.];
  695. docident [quit] [Quits the game without asking.];
  696. docident [resetcfg] [Determines if all settings should be reset when the game quits.];
  697. docargument [B] [enable reset] [min 0/max 1/default 0];
  698. docremark [It is recommended to quit the game immediately after enabling this setting. Note that the reset happens only once as the value of this variable is reset as well.];
  699. docref [resetbinds];
  700. docref [quit];
  701. docident [resetpckservers] [Resets the list of packages source servers where to download custom content from.];
  702. docremark [Restart AssaultCube to take the effect.];
  703. docref [addpckserver];
  704. docref [autodownload];
  705. docref [getpckserver];
  706. docident [resetsecuremaps] [Clears the list of secured maps.];
  707. docref [securemap];
  708. docident [run] [Executes a config file within "config" folder.];
  709. docargument [N] [the file name (without extension)] [] [0];
  710. docident [saycommand] [Puts a prompt on screen.];
  711. docargument [S...] [the text to display in the prompt] [] [1];
  712. docremark [This puts a prompt on screen that you can type into, and will capture all keystrokes until you press return (or ESC to cancel). If what you typed started with a "/", the rest of it will be executed as a command, otherwise its something you "say" to all players.];
  713. dockey [T] [] [opens empty prompt];
  714. dockey [BACKQUOTE] [`] [opens a command prompt /];
  715. dockey [TAB] [] [autocompletes commands/variables/aliases];
  716. dockey [UP] [] [browse command history forwards];
  717. dockey [DOWN] [] [browse command history backwards];
  718. docref [complete];
  719. docref [listcomplete];
  720. docref [inputcommand];
  721. docident [screenshot] [Takes a screenshot.];
  722. docremark [Screenshots are saved to "screenshots/[date]_[time]_[map]_[mode].[ext]", where [ext] is the image type selected.];
  723. dockey [F12] [] [];
  724. docref [cleanshot];
  725. docident [screenshotscale] [Scales screenshots by the given factor before saving. 1 = original size, 0.5 = half size, etc.];
  726. docargument [S] [Scale] [min 0.1/max 1/default 1];
  727. docident [screenshottype] [Toggle format of screenshot image. Your choice is for BMP (0), JPEG (1) or PNG (2).];
  728. docargument [T] [0=BMP, 1=JPEG, 2=PNG] [min 0/max 2/default 1];
  729. docref [getscrext];
  730. docident [securemap] [Adds a map to the list of secured maps.];
  731. docargument [S] [the name of the map] [] [0];
  732. docremark [Secured maps can not be overwritten by the commands sendmap and getmap.];
  733. docref [resetsecuremaps];
  734. docref [sendmap];
  735. docref [getmap];
  736. docident [systime] [Seconds since the epoch (00:00:00 UTC on January 1, 1970).];
  737. docexample [echo (systime)] [];
  738. docident [throttle_accel] [Determines how fast network throttling accelerates.];
  739. docargument [V] [acceleration] [min 0/max 32/default 2];
  740. docref [throttle_interval];
  741. docref [throttle_decel];
  742. docident [throttle_decel] [Determines how fast network throttling decelerates.];
  743. docargument [V] [deceleration] [min 0/max 32/default 2];
  744. docref [throttle_accel];
  745. docref [throttle_interval];
  746. docident [throttle_interval] [Determines the interval of re-evaluating network throttling.];
  747. docargument [V] [interval] [seconds min 0/max 30/default 5];
  748. docref [throttle_accel];
  749. docref [throttle_decel];
  750. docident [timestamp] [A list of values for current time.];
  751. docremark [Format: YYYY mm dd HH MM SS];
  752. docexample [echo (timestamp) "2008 08 08 08 08 08"] [];
  753. docexample [echo (timestamp) "2063 04 05 12 00 00"] [];
  754. docexample [echo (at (timestamp) 0) (at (timestamp) 2) (at (timestamp) 1) "2063 05 04"] [];
  755. docident [timestring] [The current time in (H)H:MM:SS format.];
  756. docexample [echo (timestring) "12:34:56"] [];
  757. docexample [echo (timestring) "1:02:03"] [];
  758. docident [tsswap] [Swaps vertices of model triangles.];
  759. docargument [V] [] [min 0/max 1/default 1];
  760. docident [updatefrommaster] [Contacts the masterserver and adds any new servers to the server list.];
  761. docargument [B] [force update] [0 (delayed), 1 (immediate)] [0];
  762. docremark [The servers are written to the config/servers.cfg file. This menu can be reached through the Multiplayer menu.];
  763. docident [version] [Gets an integer representing the game version. READ ONLY];
  764. docremark [As example, version 1.2.0.2 is represented as value 1202.];
  765. docident [writecfg] [Writes current configuration to config/saved.cfg - automatic on quit.];
  766. docident [zipcachemaxsize] [Maximal size of the file, which is cached in memory.];
  767. docargument [S] [size [kB]] [min 0/max 1024/default 512];
  768. docremark [If the size of the zip file is below "zipcachemaxsize", then during loading the whole zip file is cached in memory. When the size is greater, then zip is just opened as a file and read from disk.];
  769. docref [addzipmod];
  770. docident [zipmodclear] [Removes all zip files from the virtual file system.];
  771. docref [addzipmod];
  772. docref [zipmodremove];
  773. docident [zipmodgetdesc] [Reads and returns the first 11 lines from the file "desc.txt" in the named zip file.];
  774. docargument [N] [the name of the zip mod] [] [0];
  775. docremark [The first line is supposed to contain a descriptive title for the zip (for use in menus) and the next 10 lines should contain a more detailed description (also for use in menus). The command also unpacks "preview.jpg" from the zip and mounts it as a temporary file under the name "packages/modpreviews/zipname.jpg".];
  776. docref [getmod];
  777. docref [addzipmod];
  778. docref [zipmodlist];
  779. docref [zipmodgetfiles];
  780. docref [zipmodgetrevision];
  781. docident [zipmodgetfiles] [Returns the list of files contained in a zip file.];
  782. docargument [N] [the name of the zip mod] [] [0];
  783. docref [getmod];
  784. docref [addzipmod];
  785. docref [zipmodlist];
  786. docref [zipmodgetdesc];
  787. docref [zipmodgetrevision];
  788. docident [zipmodgetrevision] [Returns the revision number of the zip file.];
  789. docargument [N] [the name of the zip mod] [] [0];
  790. docremark [The number is supposed to be part of a filename: "revision_n". If no such file is found in the zip file, the return value is zero. The content of the revision file is not relevant and a file size of zero is recommended.];
  791. docref [getmod];
  792. docref [addzipmod];
  793. docref [zipmodlist];
  794. docref [zipmodgetdesc];
  795. docref [zipmodgetfiles];
  796. docident [zipmodlist] [Lists zip files in "mods/".];
  797. docargument [W] [what] [all, active, inactive] [0];
  798. docremark [By default or if "what" is "all", all zips are listed. If "what" is "active", only those zips, that are already in use, are listed. If "what" is "inactive", only the unused zip files are listed.];
  799. docref [getmod];
  800. docref [addzipmod];
  801. docref [zipmodgetdesc];
  802. docref [zipmodgetfiles];
  803. docref [zipmodgetrevision];
  804. docident [zipmodremove] [Removes one zip file from the virtual file system.];
  805. docargument [N] [the name of the zip mod] [] [0];
  806. docref [addzipmod];
  807. docref [zipmodclear];
  808. docsection [Gameplay]
  809. docident [afterinit] [If defined, this will be executed after saved.cfg is loaded.];
  810. docident [akimboautoswitch] [Enables or disables automatic switching to the akimbo upon pickup.];
  811. docargument [N] [enable or disable] [min 0/max 1/default 1];
  812. docref [akimboendaction];
  813. docident [akimboendaction] [Sets the behavior of weapon switching upon akimbo expiration.];
  814. docargument [] [] [0 (switch to knife)] [0];
  815. docargument [] [] [1 (stay with pistol)] [0];
  816. docargument [] [] [2 (switch to grenades)] [0];
  817. docargument [] [] [3 (switch to primary)] [0];
  818. docargument [N] [akimbo end action] [min 0/max 3/default 3];
  819. docremark [If no ammunition is detected for the target weapon, it will fallback to the previous weapon until it finds a weapon with ammunition to use.];
  820. docref [akimboautoswitch];
  821. docident [attack] [Fires the current weapon.];
  822. docremark [default: left mouse button];
  823. docident [autoreload] [Indicates if the weapons should be reloaded automatically.];
  824. docargument [B] [the autoreload state] [on (1), off (0) min 0/max 1/default 1];
  825. docident [backward] [Moves the player backward.];
  826. docremark [default keys: S and Down Arrow];
  827. docident [benchme] [Moves from active team to spectator during match.];
  828. docident [burstshots] [Sets the firing mode of automatic weapons between full auto mode and burst fire mode.];
  829. docargument [N] [the weapon number or name] [4 (subgun), 6 (assault), 8 (akimbo)] [0];
  830. docargument [S] [shots per burst] [Special values: 0: set weapon to full auto, -1: don't set, instead check and return shots per burst] [0];
  831. docident [changefollowplayer] [];
  832. docargument [D] [delta] [how many players to shift +/-] [0];
  833. docref [setfollowplayer];
  834. docident [changeteam] [Swaps your player to the enemy team.];
  835. docref [team];
  836. docident [checkmag] [Determines if you have any ammunition available for the specified weapon. (uses magcontent and magreserve)];
  837. docargument [N] [the weapon number or name] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  838. docref [magcontent];
  839. docref [magreserve];
  840. docident [clearignored] [Clear list of ignored players.];
  841. docargument [A] [client number, or -1 to clear the whole list] [] [0];
  842. docremark [Omit the client number to clear the whole list.];
  843. docident [clearmuted] [Clears a list of muted players.];
  844. docargument [A] [client number, or -1 to clear the whole list] [] [0];
  845. docremark [Omit the client number to clear the whole list.];
  846. docident [connect] [Connects to a server.];
  847. docargument [N] [the address of the server (hostname or IP)] [] [0];
  848. docargument [O] [the port] [] [0];
  849. docargument [P] [the server password] [] [0];
  850. docremark [If the server name is omitted, the client will try to connect to an available server in the LAN. If the port is omitted or set to 0, the default port will be used.];
  851. docexample [connect 127.0.0.1 555 myServerPassword] [];
  852. docref [connectadmin];
  853. docref [disconnect];
  854. docref [reconnect];
  855. docident [connectadmin] [Connects to a server and tries to claim admin state.];
  856. docargument [N] [the address of the server (hostname or IP)] [] [0];
  857. docargument [O] [the port] [] [0];
  858. docargument [P] [the admin password] [] [0];
  859. docremark [This command will connect to a server just like the command 'connect' and try to claim admin state. If the specified password is correct, the admin will be able to connect even if he is locked out by ban, private master mode or taken client slots. If successfully connected, bans assigned to the admin's host will be removed automatically. If all client slots are taken a random client will be kicked to let the admin in.];
  860. docremark [If the server name ist omitted, the client will try to connect to an available server in the LAN. If the port is omitted or set to 0, the default port will be used.];
  861. docexample [connectadmin 127.0.0.1 777 myAdminPassword] [connect as admin on port 777 of localhost];
  862. docexample [connectadmin "" 0 myAdminPassword] [will try to connect to a LAN server on the default port as admin with the given password of "myAdminPassword".];
  863. docref [connect];
  864. docref [disconnect];
  865. docref [reconnect];
  866. docident [crouch] [Triggers a crouch.];
  867. docremark [default keys: left shift.];
  868. docident [curautoteam] [Returns the server's current autoteam state.];
  869. docident [curdemofile] [Returns the name of played demo.];
  870. docref [demo];
  871. docident [curmap] [Returns the current map being played.];
  872. docref [gamemode];
  873. docref [map];
  874. docref [mode];
  875. docident [curmaprevision] [Current map revision number.];
  876. docident [curmastermode] [Returns the server's current mastermode state.];
  877. docident [curname] [Returns the nick name of the local player.];
  878. docref [name];
  879. docident [curplayers] [Returns the size of the players vector.];
  880. docremark [The return value includes the local player "(you)" and works in both singleplayer and multiplayer scenarios. It can be used, for example, in a loop to find all valid clients (players) on server. Note: it DOESN'T return current number of players.];
  881. docref [isclient];
  882. docident [currentprimary] [Returns the weapon-index the local player currently has selected as primary.];
  883. docremark [This is not the same as curweapon - which could be a grenade or the knife.];
  884. docref [nextprimary];
  885. docref [curweapon];
  886. docref [prevweapon];
  887. docref [weapon];
  888. docref [magcontent];
  889. docref [magreserve];
  890. docref [hasprimary];
  891. docident [curserver] [Returns information on the current server - if you're connected to one.];
  892. docargument [I] [info] [0, 1, 2, 3, 4, 5, 6, 7, 8] [0];
  893. docremark [If I is 0 (omitted or any other value than the ones below) you will get a string with 'IP PORT'];
  894. docremark [If I is 1,2 or 3 you will get the IP, HostName or port respectively.];
  895. docremark [If I is 4 you get a string representing the current state of the peer - usually this should be 'connected'.];
  896. docremark [If I is 5 you will get a server name.];
  897. docremark [If I is 6 or 7 you will get a server description.];
  898. docremark [If I is 8, you will get a serverbrowser-line with the server - this is handled with caution, sometimes empty, #8 will be outdated w/o serverbrowser open.];
  899. docexample [echo [I am (curserver 4) to (curserver 2)]] [Output: I am connected to ctf-only.assault-servers.net];
  900. docexample [last_server = "" remember_server = [ if (strcmp (curserver 4) "connected") [ last_server = (curserver 0) echo "I'm remembering:" $last_server ] [ echo "you are not 'connected' - you" (concatword "are '" (curserver 4) "' !") ] ] bind PRINT [ if (strcmp $last_server "") [ remember_server ] [ say (concat "^L2I was just ^Lfon^L3" $last_server) last_server = "" ] ]] [This will either remember or retrieve the last server you pressed the PrintScreen-key on.];
  901. docident [curweapon] [Returns the weapon-index the local player is currently holding.];
  902. docref [currentprimary];
  903. docref [nextprimary];
  904. docref [prevweapon];
  905. docref [weapon];
  906. docref [magcontent];
  907. docref [magreserve];
  908. docref [hasprimary];
  909. docident [demo] [Plays a recorded demo.];
  910. docargument [S] [the demo name] [] [0];
  911. docremark [Playback is interpolated for the player whose perspective you view.];
  912. docref [setmr];
  913. docref [rewind];
  914. docref [curdemofile];
  915. docident [disconnect] [Leaves a server.];
  916. docref [reconnect];
  917. docref [connect];
  918. docref [connectadmin];
  919. docident [dlmap] [Downloads and loads the specified map from an available packages source server.];
  920. docargument [S] [the name of the map] [] [0];
  921. docref [getmap];
  922. docref [sendmap];
  923. docident [drawzone] [Draws a zone marker with the specified color and dimensions on the minimap/radar.];
  924. docargument [X1] [X-coordinate - top-left corner] [] [0];
  925. docargument [X2] [X-coordinate - bottom-right corner] [] [0];
  926. docargument [Y1] [Y-coordinate - top-left corner] [] [0];
  927. docargument [Y2] [Y-coordinate - bottom-right corner] [] [0];
  928. docargument [C] [a color for the zone, in hexadecimal notation] [default: 0x00FF00 (green)] [0];
  929. docremark [This is primarily intended for the survival mode.];
  930. docremark [You can draw a few zones at a time. They will be reset (i.e. removed) once a new game starts.];
  931. docremark [Note that the coordinates must be specified as integers, not as floating-point values.];
  932. docref [resetzones];
  933. docref [survival];
  934. docident [dropflag] [Drops the taken flag.];
  935. docident [findcn] [Finds client number (cn) of player with given name.];
  936. docargument [N] [player name] [] [0];
  937. docident [flyspeed] [Determines by how much to multiply the fly speeds by.];
  938. docargument [N] [the multiplier] [min 1.0/max 5.0/default 2.0];
  939. docident [forward] [Moves the player forward.];
  940. docremark [default keys: W and Up Arrow];
  941. docident [fragmessage] [Sets the frag message corresponding to a weapon (appearing on the hud).];
  942. docargument [N] [the weapon number or name] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  943. docargument [M] [the message you want to appear] [example: sniped] [0];
  944. docexample [fragmessage sniper sniped] [It will display "you sniped unarmed" on the hud when you frag unarmed with sniper.];
  945. docref [gibmessage];
  946. docref [weapon];
  947. docident [gamespeed] [Sets the gamespeed in percent.];
  948. docargument [N] [the game speed] [min 10/max 1000/default 100];
  949. docremark [This does not work in multiplayer. For entertainment purposes only :)];
  950. docident [gametimecurrent] [Returns the time (in milliseconds) of the currently played game. READ ONLY];
  951. docexample [showtime = [ if (> $lastgametimeupdate 0) [ gmr = (- $gametimemaximum (+ $gametimecurrent (- (millis) $lastgametimeupdate))) gsr = (div $gmr 1000) gts = (mod $gsr 60) if (< $gts 10) [ gts = (concatword 0 $gts) ] [ ] gtm = (div $gsr 60) if (< $gtm 10) [ gtm = (concatword 0 $gtm) ] [ ] echo (concatword $gtm : $gts) remaining ] [ echo gametime not updated yet ] ]] [];
  952. docref [minutesremaining];
  953. docref [gametimemaximum];
  954. docref [lastgametimeupdate];
  955. docref [millis];
  956. docident [gametimemaximum] [Returns the maximum time (in milliseconds) of the currently played game. READ ONLY];
  957. docref [minutesremaining];
  958. docref [gametimecurrent];
  959. docref [lastgametimeupdate];
  960. docref [millis];
  961. docident [gametimestart] [Returns the time (in milliseconds) when the last map was loaded.];
  962. docref [minutesremaining];
  963. docref [gametimecurrent];
  964. docref [lastgametimeupdate];
  965. docref [millis];
  966. docident [getdemo] [];
  967. docargument [X] [number in list] [] [0];
  968. docargument [P] [subpath] [] [0];
  969. docref [listdemos];
  970. docident [getmap] [Retrieves the last map that was sent to the server using 'sendmap'.];
  971. docargument [S] [the name of the map] [] [0];
  972. docargument [C] [cubescript to execute once map is installed] [] [0];
  973. docremark [If the command is passed an argument, different than the map being played, the game tries to download the specified map from an available packages source server.];
  974. docref [sendmap];
  975. docref [dlmap];
  976. docident [getmod] [Try to download mods/modname.zip from all configured package servers.];
  977. docargument [N] [the name of the mod] [] [0];
  978. docremark [Does not automatically activate the mod.];
  979. docref [addzipmod];
  980. docident [gibmessage] [Sets the gib message corresponding to a weapon (appearing on the hud).];
  981. docargument [N] [the weapon number or name] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  982. docargument [M] [the message you want to appear] [example: slashed] [0];
  983. docremark [This command is identical to fragmessage, please see it.];
  984. docref [fragmessage];
  985. docref [weapon];
  986. docident [gndtoggle] [Toggles between your primary weapon and grenades. (must be bound to a key)];
  987. docref [sndtoggle];
  988. docref [knftoggle];
  989. docident [grenades] [Switches to grenades (if available). (must be bound to a key)];
  990. docref [primary];
  991. docref [secondary];
  992. docref [melee];
  993. docref [quicknadethrow];
  994. docident [hasprimary] [Determines if the local player (you) are currently carrying a primary weapon.];
  995. docremark [Returns 0 (false) or 1 (true).];
  996. docexample [add2bind MOUSE1 [ if (hasprimary) [ echo you attacked with a primary weapon ] ]] [Everytime you press the left mouse button, assuming you are carrying your primary weapon, the above echo will be executed.];
  997. docref [currentprimary];
  998. docref [curweapon];
  999. docref [checkmag];
  1000. docident [highestcn] [Returns the highest valid client number available.];
  1001. docident [ignore] [Ignore a player.];
  1002. docargument [A] [client number] [] [0];
  1003. docremark [You won't see any further game chat or hear any more voice com messages from that player.];
  1004. docident [ignoreall] [Ignore all clients currently on the server.];
  1005. docref [unignoreall];
  1006. docref [ignoreteam];
  1007. docref [ignoreenemy];
  1008. docident [ignoreenemy] [Ignore all clients on the enemy team.];
  1009. docref [ignoreall];
  1010. docref [unignoreall];
  1011. docref [ignoreteam];
  1012. docident [ignoreteam] [Ignore all clients on the specified team.];
  1013. docargument [T] [the team to ignore] [0 or 1 || cla or rvsf] [0];
  1014. docref [ignoreall];
  1015. docref [unignoreall];
  1016. docref [ignoreenemy];
  1017. docident [isclient] [Determines if the client number given is a valid client (player).];
  1018. docargument [C] [client number] [] [0];
  1019. docexample [echo (isclient 0)] [Example output: 1];
  1020. docexample [echo (isclient 32)] [Example output: 0];
  1021. docref [curplayers];
  1022. docident [jump] [Triggers a jump.];
  1023. docremark [default keys: space and right ctrl.];
  1024. docident [knftoggle] [Toggles between your primary weapon and knife. (must be bound to a key)];
  1025. docref [sndtoggle];
  1026. docref [gndtoggle];
  1027. docident [lanconnect] [Tries to connect to a LAN server.];
  1028. docident [lastgametimeupdate] [Returns the last time (in milliseconds) the gametime was updated. READ ONLY];
  1029. docref [minutesremaining];
  1030. docref [gametimecurrent];
  1031. docref [gametimemaximum];
  1032. docref [millis];
  1033. docident [lastpm] [Holds the CN of the last client who sent you a private message.];
  1034. docremark [If you haven't recieved any private messages, 'lastpm' is -1];
  1035. docref [pm];
  1036. docref [quickanswer];
  1037. docident [left] [Moves the player left.];
  1038. docremark [default keys: A and Left Arrow];
  1039. docident [listdemos] [Get the game demos listing from the server we are currently connected.];
  1040. docref [getdemo];
  1041. docident [listignored] [Print a list of all players that you are currently ignoring.];
  1042. docident [listmuted] [Prints a list of all players that you have muted.];
  1043. docident [loadcrosshair] [Loads a crosshair for given type.];
  1044. docargument [T] [type] [default, teammate, scope, edit, knife, pistol, carbine, shotgun, subgun, sniper, assault, grenade, akimbo] [0];
  1045. docargument [I] [image] [] [0];
  1046. docexample [loadcrosshair red_dot.png] [Loads the red_dot.png crosshair for all weapons.];
  1047. docexample [loadcrosshair default red_dot.png] [Same as above. Loads the red_dot.png crosshair for all weapons.];
  1048. docexample [loadcrosshair knife red_dot.png] [Loads the red_dot.png crosshair for your knife only.];
  1049. docexample [loadcrosshair assault red_dot.png] [Loads the red_dot.png crosshair for your assault rifle only.];
  1050. docexample [loadcrosshair scope red_dot.png] [Loads the red_dot.png crosshair for your sniper rifle scope only.];
  1051. docident [loadmap] [Loads a map directly in the current gamemode (singleplayer only).];
  1052. docargument [M] [map name] [] [0];
  1053. docref [map];
  1054. docref [votemap];
  1055. docref [mode];
  1056. docident [magcontent] [Returns contents of current magazine.];
  1057. docargument [N] [the weapon number or name] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  1058. docremark [A knife will always return 1.];
  1059. docremark [Weapons that aren't available will return -1.];
  1060. docref [curweapon];
  1061. docref [currentprimary];
  1062. docref [nextprimary];
  1063. docref [prevweapon];
  1064. docref [weapon];
  1065. docref [magreserve];
  1066. docident [magreserve] [Returns contents of magazine reserve.];
  1067. docargument [N] [the weapon number or name] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  1068. docref [curweapon];
  1069. docref [currentprimary];
  1070. docref [nextprimary];
  1071. docref [prevweapon];
  1072. docref [weapon];
  1073. docref [magcontent];
  1074. docident [map] [Loads up a map in the gamemode set previously by the 'mode' command.];
  1075. docargument [M] [Name of the map to load] [string] [0];
  1076. docremark [If connected to a multiplayer server, it votes to load the map (others will have to type "map M" as well to agree with loading this map). To vote for a map with a specific mode, set the mode before you issue the map command.];
  1077. docremark [A map given as "blah" refers to "packages/maps/blah.cgz", "mypackage/blah" refers to "packages/mypackage/blah.cgz". At every map load, "config/default_map_settings.cfg" is loaded which sets up all texture definitions, etc. Everything defined there can be overridden per package or per map by creating a "mapname.cfg" which contains whatever you want to do differently from the default.];
  1078. docremark [When the map finishes it will load the next map when one is defined, otherwise it reloads the current map. You can define what map follows a particular map by making an alias like (in the map script): alias nextmap_blah1 blah2 (loads "blah2" after "blah1").];
  1079. docref [votemap];
  1080. docref [loadmap];
  1081. docref [mode];
  1082. docident [mapstartalways] [If this alias exists it will be run every time the game starts a new map.];
  1083. docexample [mapstartalways = [ echo "------------------------------" ]] [This will output the string and override any other actions that might've been defined.];
  1084. docexample [addOnLoadAlways [ echo "------------------------------" ]] [This will output the string after any previously defined actions have run.];
  1085. docref [add2alias];
  1086. docref [mapstartonce];
  1087. docref [onNewMap];
  1088. docident [mapstartonce] [If this alias exists it will be run when the game starts a new map, then it is deleted.];
  1089. docexample [mapstartonce = [ echo "------------------------------" ]] [This will output the string and override any other actions that might've been defined.];
  1090. docexample [addOnLoadOnce [ echo "------------------------------" ]] [This will output the string after any previously defined actions have run.];
  1091. docref [add2alias];
  1092. docref [mapstartalways];
  1093. docref [onNewMap];
  1094. docident [me] [Action chat message.];
  1095. docargument [...] [...] [] [1];
  1096. docident [melee] [Switches to knife. (must be bound to a key)];
  1097. docref [primary];
  1098. docref [secondary];
  1099. docref [grenades];
  1100. docident [minutesremaining] [Returns the remaining minutes of the currently played game. READ ONLY];
  1101. docref [gametimecurrent];
  1102. docref [gametimemaximum];
  1103. docref [lastgametimeupdate];
  1104. docref [millis];
  1105. docident [modconnect] [Connects to a modded server.];
  1106. docargument [A] [IP] [] [0];
  1107. docargument [B] [port] [] [0];
  1108. docargument [C] [password] [] [0];
  1109. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  1110. docident [modconnectadmin] [Connects to a modded server and tries to claim admin state.];
  1111. docargument [A] [IP] [] [0];
  1112. docargument [B] [port] [] [0];
  1113. docargument [C] [admin password] [] [0];
  1114. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  1115. docident [modlanconnect] [Tries to connect to a modified LAN server.];
  1116. docremark [The modified server needs to use the original client-server protocol. The protocol version number will be the negated value of an unmodded server.];
  1117. docident [muteplayer] [Mutes a player.];
  1118. docargument [A] [client number] [] [0];
  1119. docremark [You won't hear any further voice com messages from that player.];
  1120. docident [name] [Sets the nick name for the local player.];
  1121. docargument [N] [the name] [] [0];
  1122. docref [curname];
  1123. docident [nextprimary] [Sets the primary weapon on next respawn.];
  1124. docargument [A] [the weapon number or name] [2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault)] [0];
  1125. docident [nickcomplete] [Adds a command to complete nicknames on.];
  1126. docremark [Your own nick will be ignored.];
  1127. docexample [nickgreet = [ say (concat "Hello," (concatword $arg1 "!")) ]; nickcomplete nickgreet] [with this you can enter "/nickgreet " and cycle via TAB to the nickname you want to greet.];
  1128. docref [complete];
  1129. docident [onAttack] [If defined, this will be executed each time you shot a bullet, throw a grenade or use your knife.];
  1130. docargument [weapon] [The weapon that was used] [] [0];
  1131. docremark [Remark: it works only in singleplayer.];
  1132. docident [onCallVote] [If this alias exists it will be run every time a vote is called.];
  1133. docref [onChangeVote];
  1134. docref [onVoteEnd];
  1135. docident [onChangeVote] [If this alias exists it will be run every time a vote is changed.];
  1136. docref [onCallVote];
  1137. docref [onVoteEnd];
  1138. docident [onConnect] [If defined, this will be executed when you or another player join(s) a server.];
  1139. docargument [player] [The client number of the player who connected] [integer (-1 for local player)] [0];
  1140. docident [onDisconnect] [If defined, this will be executed when you or another player disconnect(s) from a server.];
  1141. docargument [player] [The client number of the player who disconnected] [integer (-1 for local player)] [0];
  1142. docident [onFlag] [If defined, this will be executed each time a flag action occurs.];
  1143. docargument [action] [The action that occured] [integer (0 = stolen, 1 = dropped, 2 = lost, 3 = returned, 4 = scored, 5 = ktfscore, 6 = failed to score, 7 = reset)] [0];
  1144. docargument [actor] [The client number of the actor] [integer] [0];
  1145. docargument [flag] [The flag owner team] [integer (0 = CLA, 1 = RVSF)] [0];
  1146. docremark [Remark: it works only in singleplayer.];
  1147. docident [onHit] [If it's defined, this alias will be executed each time a damage is done.];
  1148. docargument [actor] [The client number of the actor] [integer] [0];
  1149. docargument [target] [The client number of the target] [integer] [0];
  1150. docargument [damage] [The damage done] [integer] [0];
  1151. docargument [gun] [The number of the gun used] [integer] [0];
  1152. docargument [gib] [Is it a gib or a normal frag] [integer (0 or 1)] [0];
  1153. docremark [Remark: it works only in singleplayer.];
  1154. docident [onKill] [If it exists, this alias will be executing when any player get killed, receiving a few arguments.];
  1155. docargument [actor] [The client number of the actor] [integer] [0];
  1156. docargument [target] [The client number of the target] [integer] [0];
  1157. docargument [gun] [The number of the gun used] [integer] [0];
  1158. docargument [gib] [Is it a gib or a normal frag] [integer (0 or 1)] [0];
  1159. docremark [Remark: it works only in singleplayer.];
  1160. docident [onLastMin] [If this alias exists, it will be automatically executed on the last minute remaining mark.];
  1161. docident [onNameChange] [If defined, this will be executed when you or another player change(s) his name.];
  1162. docargument [player] [The client number of the player who changed name] [integer] [0];
  1163. docargument [new name] [The new name of the client] [string] [0];
  1164. docremark [The alias is executed before the name is effectively changed, so you can still get the previous name of the client from this alias.];
  1165. docremark [Remark: it works only in singleplayer.];
  1166. docident [onPM] [If defined, this will be executed when another player sent you private message.];
  1167. docargument [player] [The client number who sent you private message] [integer] [0];
  1168. docargument [message] [The private message] [string] [0];
  1169. docident [onPickup] [If defined, this will be executed each time you pick up an item.];
  1170. docargument [item] [The item that was picked up] [integer (0 = pistol clips, 1 = ammo box, 2 = grenade, 3 = health, 4 = helmet, 5 = armour, 6 = akimbo)] [0];
  1171. docargument [q] [The quantity that was received] [] [0];
  1172. docremark [Remark: it works only in singleplayer.];
  1173. docident [onReload] [If defined, this will be executed each time you reload a weapon.];
  1174. docargument [B] [was autoreload?] [0 (false), 1 (true)] [0];
  1175. docremark [Remark: it works only in singleplayer.];
  1176. docident [onSpawn] [If defined, this will be executed each time a player spawns.];
  1177. docargument [player] [The client number of the player who spawned] [integer] [0];
  1178. docremark [Remark: it works only in singleplayer.];
  1179. docident [onVoteEnd] [If this alias exists it will be run every time a vote passes or fails.];
  1180. docref [onCallVote];
  1181. docref [onChangeVote];
  1182. docident [onWeaponSwitch] [If defined, this will be executed each time you switch to a different weapon.];
  1183. docargument [W] [The weapon number that you switched to] [] [0];
  1184. docremark [Remark: it works only in singleplayer.];
  1185. docident [paused] [Determines if the game should be paused.];
  1186. docargument [B] [pause game] [min 0/max 1/default 0];
  1187. docident [pm] [Sends a private message to a specified client.];
  1188. docargument [C] [Client number] [] [0];
  1189. docargument [L] [List of strings] [] [0];
  1190. docref [say];
  1191. docref [quickanswer];
  1192. docref [lastpm];
  1193. docident [prevweapon] [Returns the weapon-index the local player was previously holding.];
  1194. docref [currentprimary];
  1195. docref [nextprimary];
  1196. docref [curweapon];
  1197. docref [weapon];
  1198. docref [magcontent];
  1199. docref [magreserve];
  1200. docident [primary] [Switches to your current primary weapon. (must be bound to a key)];
  1201. docref [secondary];
  1202. docref [melee];
  1203. docref [grenades];
  1204. docident [pstat_weap] [Returns the shot statistics for the player with the given clientnumber.];
  1205. docargument [C] [client] [0..N] [0];
  1206. docremark [The list is:];
  1207. docremark [knife/atk dmg pistol/atk dmg carbine/atk dmg shotgun/atk dmg smg/atk dmg sniper/atk dmg assault/atk dmg nade/atk dmg akimbo/atk dmg];
  1208. docexample [echo (pstat_weap 0)] [Output: 0 0 0 0 0 0 0 0 0 0 1 240 15 312 0 0 3 112 0 0];
  1209. docref [start_intermission];
  1210. docref [pstat_score];
  1211. docref [weapon];
  1212. docident [quickanswer] [Easily respond the last client who sent you a private message.];
  1213. docref [pm];
  1214. docref [lastpm];
  1215. docident [quicknadethrow] [Switches to grenades (if available). (must be bound to a key)];
  1216. docremark [If grenades are already selected, throw a grenade and switch back to previous weapon.];
  1217. docref [grenades];
  1218. docident [reconnect] [Disconnects then reconnects you to the current server.];
  1219. docargument [P] [the server password] [] [0];
  1220. docref [disconnect];
  1221. docref [connect];
  1222. docref [connectadmin];
  1223. docident [reload] [Reloads the weapon.];
  1224. docargument [A] [] [value] [0];
  1225. docident [resetzones] [Reset all drawn zones.];
  1226. docref [drawzone];
  1227. docref [survival];
  1228. docident [rewind] [Rewind the current demo to S seconds ago.];
  1229. docargument [S] [the number of seconds to rewind] [] [0];
  1230. docremark [Note: you can use a negative value to forward.];
  1231. docref [demo];
  1232. docref [setmr];
  1233. docident [right] [Moves the player right.];
  1234. docremark [default keys: D and Right Arrow];
  1235. docident [say] [Outputs text to other players.];
  1236. docargument [S...] [the text] [] [1];
  1237. docremark [If the text begins with a percent character (%), only team mates will receive the message.];
  1238. docident [scopefov] [Determines the FOV when scoping.];
  1239. docargument [V] [] [min 5/max 60/default 50];
  1240. docref [fov];
  1241. docident [secondary] [Switches to your secondary weapon. (must be bound to a key)];
  1242. docref [primary];
  1243. docref [melee];
  1244. docref [grenades];
  1245. docident [setfollowplayer] [];
  1246. docargument [C] [clientnum] [which player to follow] [0];
  1247. docref [changefollowplayer];
  1248. docref [spectatecn];
  1249. docident [setmr] [Go to a predefined number of minutes before the end of the game while watching a demo.];
  1250. docargument [M] [the minutes remaining to skip to] [] [0];
  1251. docref [demo];
  1252. docref [rewind];
  1253. docident [setscope] [Displays a scope for the sniper-rifle.];
  1254. docargument [Y] [scope on?] [0||1] [0];
  1255. docremark [It is used in the zoom-script (config/scripts.cfg: "const zoom").];
  1256. docident [shiftweapon] [Shifts your selected weapon by a given delta.];
  1257. docargument [D] [delta] [-N..-1,+1..N] [0];
  1258. docremark [By default the mouse-wheel shifts one up or down according to your scroll direction.];
  1259. dockey [MOUSE4] [] [cycle one up];
  1260. dockey [MOUSE5] [] [cycle one down];
  1261. docident [sndtoggle] [Toggles between your primary weapon and secondary weapon. (must be bound to a key)];
  1262. docref [knftoggle];
  1263. docref [gndtoggle];
  1264. docident [spectate] [Toggles spectator mode.];
  1265. docref [spectatemode];
  1266. docref [spectatepersistent];
  1267. docident [spectatecn] [Returns client number of spectated player.];
  1268. docref [setfollowplayer];
  1269. docident [spectatemode] [Sets the desired spectating mode.];
  1270. docargument [M] [the mode] [2 (1st-person), 3 (3rd-person), 4 (3rd-person transparent), 5 (free flying)] [0];
  1271. dockey [SPACE] [] [switch spectator mode];
  1272. docref [spectate];
  1273. docident [spectatepersistent] [Enables persistent spectating concrete player.];
  1274. docargument [N] [0: enabled in non-arena modes, 1: always enabled] [min 0/max 1/default 1];
  1275. docremark [For "spectatepersistent" = 1 persistent spectating is enabled in all game modes in multiplayer (that means, that spectated player isn't changed after his death), for "0" it is enabled only in non-arena modes.];
  1276. docref [spectate];
  1277. docident [start_intermission] [If this alias exists it will be run when the game reaches intermission.];
  1278. docexample [start_intermission = [ echo "INTERMISSION - STATISTICS TIME" loop p 255 [ pn = (player $p name) if (strcmp $pn "") [ ] [ echo (concatword Player $p ":") (pstat_score $p) ":" (pstat_weap $p) ] ] echo "------------------------------" ]] [This will output the full statistics line for all players.];
  1279. docref [pstat_score];
  1280. docref [pstat_weap];
  1281. docident [stopdemo] [Stops demo playback.];
  1282. docident [suicide] [Kills your player. You will lose 1 frag point and receive 1 death point when using this command.];
  1283. docident [team] [Sets the team for the local player.];
  1284. docargument [N] [the team number or name] [0 (CLA), 1 (RVSF), 2 (CLA-SPECT), 3 (RVSF-SPECT), 4 (SPECTATOR)] [0];
  1285. docexample [team CLA] [];
  1286. docref [changeteam];
  1287. docident [teaminfo] [Returns attributes of a team.];
  1288. docargument [T] [Team] [cla, rvsf, 0, 1] [0];
  1289. docargument [A] [Attribute] [Valid attributes: flags, frags, deaths, points, name, players] [0];
  1290. docident [togglespect] [Cycles through all available spectator modes.];
  1291. docremark [These modes are: Follow-1stPerson, Follow-3rdPerson, Follow-3rdPerson-transparent and Fly.];
  1292. dockey [SPACE] [] [cycle spectator modes];
  1293. docident [unignoreall] [Unignore all clients currently on the server.];
  1294. docref [ignoreall];
  1295. docref [ignoreteam];
  1296. docref [ignoreenemy];
  1297. docident [voicecom] [];
  1298. docargument [S] [sound] [must be a registered voicecom-sound] [0];
  1299. docargument [T] [text] [] [0];
  1300. dockey [V] [] [opens the voicecom menu, use number keys for your choice];
  1301. docident [voicecomsounds] [Enables or disables voicecom audio.];
  1302. docargument [] [] [0 (off)] [0];
  1303. docargument [] [] [1 (always play voicecom audio)] [0];
  1304. docargument [] [] [2 (only play voicecom audio from you and your teammates)] [0];
  1305. docargument [N] [voicecom sounds] [min 0/max 2/default 1];
  1306. docident [vote] [Agree or disagree to the currently running vote.];
  1307. docargument [V] [vote value] [1 (yes) OR 2 (no)] [0];
  1308. dockey [F1] [] [votes YES];
  1309. dockey [F2] [] [votes NO];
  1310. docident [votemap] [Sets the next gamemode then calls a vote for a map.];
  1311. docargument [I] [mode id] [] [0];
  1312. docargument [M] [map name] [] [0];
  1313. docref [map];
  1314. docref [loadmap];
  1315. docref [mode];
  1316. docident [votepending] [Determines if there is a vote pending or not.];
  1317. docexample [echo $votepending] [Output: if there is currently a vote pending, returns 1, else returns 0.];
  1318. docident [watchingdemo] [Returns 1 when the current game is being played from a demo, else 0.];
  1319. docexample [echo I am (at [not now] (watchingdemo)) watching a demo. "so, are you?"] [];
  1320. docident [weapon] [Changes the weapon. (must be bound to a key)];
  1321. docargument [N] [the number/name of available weapon] [0 (knife), 1 (pistol), 2 (carbine), 3 (shotgun), 4 (subgun), 5 (sniper), 6 (assault), 7 (grenades), 8 (akimbo)] [0];
  1322. docident [whereami] [Prints the local client's (x,y) coordinates.];
  1323. docident [whois] [Get the IP address of a given clientnumber - only admins get shown the last octet.];
  1324. docargument [C] [clientnum] [] [0];
  1325. docident [winners] [Returns the team number with the highest score, or if in a non-team mode, returns the CN of the player with the highest score.];
  1326. docsection [Keyboard and mouse]
  1327. docident [KEYPRESS] [If defined, this will be executed every time you press a key.];
  1328. docargument [I] [integer key code] [] [0];
  1329. docexample [checkinit KEYPRESS [echo You pressed key: (findkey $arg1)]] [];
  1330. docref [KEYRELEASE];
  1331. docref [findkey];
  1332. docident [KEYRELEASE] [If defined, this will be executed every time you release a key.];
  1333. docargument [I] [integer key code] [] [0];
  1334. docexample [checkinit KEYRELEASE [echo You released key: (findkey $arg1)]] [];
  1335. docref [KEYPRESS];
  1336. docref [findkey];
  1337. docident [_resetallbinds] [Clears all binds for all keys and all modes, including self-assigned ones.];
  1338. docremark [Do not use the command manually.];
  1339. docref [resetbinds];
  1340. docident [add2bind] [Adds a block of code, if it does not already exist, to a keybind.];
  1341. docargument [K] [the key to add to] [] [0];
  1342. docargument [C] [the code to add] [] [0];
  1343. docref [add2alias];
  1344. docref [add2list];
  1345. docident [autoscopesens] [Switches between scopesensscale and autoscopesensscale.];
  1346. docargument [N] [auto on/off] [min 0 (scopesensscale)/max 1 (autoscopesens)/default 0];
  1347. docremark [Determines how to calculate scoped sensitivity if scopesens is zero. If enabled, derives scoped sensitivity from scopefov and fov.];
  1348. docref [sensitivity];
  1349. docref [sensitivityscale];
  1350. docref [scopesens];
  1351. docref [scopesensscale];
  1352. docident [bind] [Binds a key to a command.];
  1353. docargument [K] [the key to bind] [string] [0];
  1354. docargument [A] [the command] [string, usually an alias] [0];
  1355. docremark [To find out what key names and their default bindings are, look at config/keymap.cfg, then add bind commands to your autoexec.cfg.];
  1356. docref [editbind];
  1357. docref [specbind];
  1358. docref [megabind];
  1359. docref [onrelease];
  1360. docident [editbind] [Similar to bind, but is only active while editing, where it overrides the regular bind for the specified key.];
  1361. docargument [K] [the key to bind] [string] [0];
  1362. docargument [A] [the command] [string, usually an alias] [0];
  1363. docref [bind];
  1364. docref [specbind];
  1365. docident [findkey] [Returns the name of a key via a specified code.];
  1366. docargument [I] [integer] [] [0];
  1367. docremark [Returns -255 if the key does not exist.];
  1368. docremark [See /config/keymap.cfg for a full list of valid key codes.];
  1369. docexample [echo (findkey 8)] [Output: BACKSPACE];
  1370. docexample [echo (findkey 280)] [Output: PAGEUP];
  1371. docref [keybind];
  1372. docref [findkeycode];
  1373. docident [findkeycode] [Returns the integer code of a key.];
  1374. docargument [K] [the name of the key] [] [0];
  1375. docremark [Returns -255 if the key does not exist.];
  1376. docremark [See /config/keymap.cfg for a full list of valid key names.];
  1377. docexample [echo (findkeycode BACKSPACE)] [Output: 8];
  1378. docexample [echo (findkeycode PAGEUP)] [Output: 280];
  1379. docref [keybind];
  1380. docref [findkey];
  1381. docident [invmouse] [Sets mouse to "flight sim" mode.];
  1382. docargument [B] [sets invmouse] [0 (off), else (on)] [0];
  1383. docremark [Inverts movement on the y-axis.];
  1384. docident [keybind] [Returns the contents of a keybind, bound with 'bind'.];
  1385. docargument [K] [name of key] [] [0];
  1386. docref [bind];
  1387. docref [findkey];
  1388. docref [findkeycode];
  1389. docref [keyeditbind];
  1390. docref [keyspecbind];
  1391. docident [keyeditbind] [Returns the contents of a keybind, bound with 'editbind'.];
  1392. docargument [K] [name of key] [] [0];
  1393. docref [editbind];
  1394. docref [keybind];
  1395. docref [keyspecbind];
  1396. docident [keymap] [Sets up the keymap for the specified key.];
  1397. docargument [K] [the key to map] [] [0];
  1398. docargument [N] [the name for the key] [] [0];
  1399. docargument [A] [the default action] [] [0];
  1400. docremark [You should never have to use this command manually, use "bind" instead.];
  1401. docref [bind];
  1402. docident [keyspecbind] [Returns the contents of a keybind, bound with 'specbind'.];
  1403. docargument [K] [name of key] [] [0];
  1404. docref [keybind];
  1405. docref [keyeditbind];
  1406. docref [specbind];
  1407. docident [megabind] [Binds a key to many different actions depending on the current game state.];
  1408. docargument [K] [the key to bind] [string] [0];
  1409. docargument [D] [body of code to execute if watching a demo] [a body of code] [0];
  1410. docargument [E] [body of code to execute if editing or in coop-edit mode] [a body of code] [0];
  1411. docargument [C] [body of code to execute if connected to a server] [a body of code] [0];
  1412. docargument [B] [body of code to execute if in a bot mode] [a body of code] [0];
  1413. docargument [O] [body of code to execute if none of the other arguments have been met] [a body of code] [0];
  1414. docremark [This command requires 6 arguments, no less. Use an empty set of brackets [] for any of the arguments that you want to "do nothing".];
  1415. docexample [megabind F9 [echo Demo!] [echo Editing or coop!] [echo Connected!] [echo Bots!] [echo Other!]] [];
  1416. docref [bind];
  1417. docref [onrelease];
  1418. docident [mfilter] [Sets the degree of mouse filtering (0.0 being no filtering).];
  1419. docargument [N] [Amount of mouse filtration] [min 0.0/max 6.0/default 0.0];
  1420. docident [mouseaccel] [Sets the mouse acceleration.];
  1421. docargument [N] [acceleration factor] [min 0.0/max 1000.0/default 0.0];
  1422. docref [sensitivity];
  1423. docident [onrelease] [Executes a command on the release of a key/button.];
  1424. docargument [A] [the command] [] [0];
  1425. docremark [This command must be placed in an action in a bind or in an alias in a bind.];
  1426. docexample [bind CTRL [ echo "key pressed"; onrelease [ echo "key released" ] ]] [];
  1427. docref [bind];
  1428. docref [megabind];
  1429. docident [resetbinds] [Resets all binds back to their default values.];
  1430. docremark [This command executes the file /config/resetbinds.cfg which will bind all keys to the values specified in that file, thus resetting the binds to their default values.];
  1431. docref [resetcfg];
  1432. docref [_resetallbinds];
  1433. docident [scopesens] [Mouse sensitivity while scoped.];
  1434. docargument [N] [scoped sensitivity] [min 0/max 1000/default 0];
  1435. docremark [If zero, autoscopesens determines, how sensitivity is changed during scoping.];
  1436. docref [sensitivity];
  1437. docref [sensitivityscale];
  1438. docref [autoscopesens];
  1439. docref [scopesensscale];
  1440. docident [scopesensscale] [Change sensitivity when scoping.];
  1441. docargument [N] [factor to change sensitivity while scoped] [min 0.001/max 1000.0/default 0.5];
  1442. docremark [If used, scoped sens = sensitivity * scopesensscale (roughly). Ignored, if autoscopesens is set.];
  1443. docref [sensitivity];
  1444. docref [sensitivityscale];
  1445. docref [scopesens];
  1446. docref [autoscopesens];
  1447. docident [searchbinds] [Searches keybinds (bound with 'bind'), returns keys with matching contents.];
  1448. docargument [S] [search string] [] [0];
  1449. docremark [This is the inverse of 'keybind'];
  1450. docexample [echo (searchbinds "reload")] [Output: R];
  1451. docref [bind];
  1452. docref [keybind];
  1453. docident [searcheditbinds] [Searches keybinds (bound with 'editbind'), returns keys with matching contents.];
  1454. docargument [s] [search string] [] [0];
  1455. docremark [This is the inverse of 'keyeditbind'];
  1456. docexample [echo (searcheditbinds "toggleocull")] [Output: F5];
  1457. docref [editbind];
  1458. docref [keyeditbind];
  1459. docident [searchspecbinds] [Searches keybinds (bound with 'specbind'), returns keys with matching contents.];
  1460. docargument [s] [search string] [] [0];
  1461. docremark [This is the inverse of 'keyspecbind'];
  1462. docref [specbind];
  1463. docref [keyspecbind];
  1464. docident [sensitivity] [Sets the mouse sensitivity.];
  1465. docargument [S] [the sensitivity] [floating-point] [0];
  1466. docref [sensitivityscale];
  1467. docref [scopesens];
  1468. docref [autoscopesens];
  1469. docref [scopesensscale];
  1470. docident [sensitivityscale] [Scales all mouse sensitivity values.];
  1471. docargument [N] [the sensitivity scale] [min 0.001/max 1000.0/default 1.0];
  1472. docremark [Changes all sensitivity values. If unsure, keep this at "1".];
  1473. docref [sensitivity];
  1474. docref [scopesens];
  1475. docref [autoscopesens];
  1476. docref [scopesensscale];
  1477. docident [specbind] [Similar to bind, but is only active while spectating, where it overrides the regular bind for the specified key.];
  1478. docargument [K] [the key to bind] [string] [0];
  1479. docargument [A] [the command] [string, usually an alias] [0];
  1480. docref [bind];
  1481. docref [editbind];
  1482. docident [togglegrab] [Toggles grabbing of mouse and keyboard input in a game.];
  1483. docremark [Grabbing means that the mouse is confined to the AC, and nearly all keyboard input is passed directly to AC, and not interpreted by a window manager, if any. This is only useful when you run AC windowed.];
  1484. docsection [Editing]
  1485. docident [addentity] [Adds an entity of the specified type at the current camera position.];
  1486. docargument [E] [the entity type or number] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0];
  1487. docremark [It also returns the index number of the new entity, so that the other attributes can be set by editentity.];
  1488. docref [enumentities];
  1489. docref [editentity];
  1490. docref [deleteentity];
  1491. docident [addselection] [Selects the given area, as if dragged with the mouse holding editmeta.];
  1492. docargument [X] [the X coordinate] [] [0];
  1493. docargument [Y] [the Y coordinate] [] [0];
  1494. docargument [XS] [the length along the X axis] [] [0];
  1495. docargument [XY] [the length along the Y axis] [] [0];
  1496. docremark [This command is useful for making complex geometry-generating scripts. It adds a selection to the current list of selections. The dimensions of the current selections can be accessed by the commands selx, sely, selxs and selys. These commands return the list of coordinates corresponding to each selection.];
  1497. docremark [Coordinates are as follows: after a "newmap 6" the top-left corner (the one where the red dot points) are (8,8), the opposite corner is (56,56) (or (120,120) on a "newmap 7" etc.).];
  1498. docref [select];
  1499. docref [selectall];
  1500. docref [resetselections];
  1501. docref [expandselection];
  1502. docref [shrinkselection];
  1503. docref [enlargevdeltaselections];
  1504. docref [selx];
  1505. docref [sely];
  1506. docref [selxs];
  1507. docref [selys];
  1508. docref [selectionwalk];
  1509. docref [pushselections];
  1510. docref [editmeta];
  1511. docident [addtodoentity] [Adds the entity #index to the TODO list.];
  1512. docargument [I] [index] [] [0];
  1513. docargument [C] [comment] [] [0];
  1514. docremark [Entity errors during map load are automatically added to the list. The list is saved and restored with xmaps.];
  1515. docref [cleartodoentities];
  1516. docref [enumtodoentities];
  1517. docident [advancemaprevision] [Selects the increment of the map revision number for the next 'savemap'.];
  1518. docargument [N] [increment] [min 1/max 100/default 1];
  1519. docident [ambient] [Controls the ambient lighting of the map, i.e. how bright areas not affected by any light entities will appear.];
  1520. docargument [N] [the ambient color] [min 0x000000/max 0xFFFFFF/default 0];
  1521. docident [applymapsoundchanges] [During map editing, drop all mapsounds so they can be re-added.];
  1522. docident [arch] [Makes an arch out of the current selection.];
  1523. docargument [S] [side delta] [] [0];
  1524. docremark [The selection must be a heightfield before this command can be used. Will make the arch in the long direction, i.e when you have 6x2 cubes selected, the arch will span 7 vertices. Optionally, sidedelta specifies the delta to add to the outer rows of vertices in the other direction, i.e. give the impression of an arch that bends 2 ways (try "arch 2" on an selection of at least 2 thick to see the effect). Not all arch sizes are necessarily available, see config/prefabs.cfg.];
  1525. docref [archvertex];
  1526. docref [enlargearchslopeselections];
  1527. docident [archvertex] [Defines a vertex delta for a specific arch span prefab, used by the 'arch' command.];
  1528. docargument [S] [span value] [integer] [0];
  1529. docargument [V] [vertex value] [integer] [0];
  1530. docargument [D] [delta value] [integer] [0];
  1531. docremark [It returns the old value of the vertex, and if the vertex argument is omitted, doesn't change it.];
  1532. docremark [See config/prefabs.cfg for an example on usage.];
  1533. docident [automapconfig] [Enables the "automatic embedded map config data" feature.];
  1534. docremark [With the next map save the map config file will get renamed and the map config data stored inside the map file.];
  1535. docref [getautomapconfig];
  1536. docref [embedconfigfile];
  1537. docref [extractconfigfile];
  1538. docref [listheaderextras];
  1539. docident [calcmipstats] [Counts all the mips in the current map and prints their numbers as 1x1/2x2/4x4/8x8/16x16/32x32/64x64.];
  1540. docref [showmip];
  1541. docident [clearents] [Deletes all entities of said type.];
  1542. docargument [T] [the entity type, see command 'newent'] [string] [0];
  1543. docref [delent];
  1544. docref [deleteentity];
  1545. docident [cleartodoentities] [Clears list of TODO entities.];
  1546. docargument [I] [index] [] [0];
  1547. docremark [The list is also deleted, when a new map is loaded.];
  1548. docremark [If an entity number is given as an argument, only entries for this entity are cleared.];
  1549. docref [addtodoentity];
  1550. docref [enumtodoentities];
  1551. docident [clearvantagepoint] [Clears a set parameters of vantage point.];
  1552. docref [setvantagepoint];
  1553. docref [gotovantagepoint];
  1554. docident [closestenttype] [Restricts 'closest entity' display to one entity type.];
  1555. docargument [A] [entity type] [] [0];
  1556. docident [convertclips] [Converts the nearest entity (if its a clip or plclip) to its opposite type.];
  1557. docexample [convertclips] [Assuming the nearest entity is a clip, it will be converted to a plclip.];
  1558. docexample [convertclips] [Assuming the nearest entity is a plclip, it will be converted to a clip.];
  1559. docident [copy] [Copies the current selection into a buffer.];
  1560. dockey [C] [] [];
  1561. docref [paste];
  1562. docident [copyent] [Copies the current closest entity into a buffer.];
  1563. docremark [Only works while in edit mode.];
  1564. docref [pasteent];
  1565. docident [corner] [Makes the current selection into a "corner".];
  1566. docremark [Currently there is only one type of corner (a 45 degree one), only works on a single unit (cube) at a time. It can be positioned either next to 2 solid walls or in the middle of 2 higher floorlevels and 2 lower ones forming a diagonal (and similar with ceiling).];
  1567. docremark [In both cases, the corner will orient itself automatically depending on its neighbours, behaviour with other configurations than the 2 above is unspecified. Since the latter configuration generates possibly 2 floor and 2 ceiling levels, up to 4 textures are used: for example for the 2 floors the higher one will of the cube itself, and the lower one of a neighbouring low cube. You can make bigger corners at once by issuing "corner" on grid aligned 2x2/4x4/8x8 selections, with equal size solid blocks next to them.];
  1568. dockey [K] [] [];
  1569. docident [countwalls] [Returns the number of solid walls contained into the current selection.];
  1570. docargument [T] [the integer of type of the walls you want to count] [ 0 (solid), 1 (corner), 2 (floor heightfield), 3 (ceil heightfield), 4 (empty cube), 5 (semi solid)] [0];
  1571. docexample [echo (concat "The selection contains " (countwalls 0) "solid wall(s)")] [Output: The selection contains 3 solid wall(s)];
  1572. docident [delent] [Deletes the entity closest to the player.];
  1573. dockey [BACKSPACE] [] [];
  1574. docref [undelent];
  1575. docref [deleteentity];
  1576. docref [clearents];
  1577. docident [deleteentity] [Deletes a map entity.];
  1578. docargument [N] [entity index/number] [] [0];
  1579. docremark [Note: deleting an entity only marks it as unused. It will be completely removed after saving and loading the map.];
  1580. docref [delent];
  1581. docref [clearents];
  1582. docref [enumentities];
  1583. docref [addentity];
  1584. docref [editentity];
  1585. docref [undelent];
  1586. docref [getdeletedentities];
  1587. docref [unlistdeletedentity];
  1588. docident [deletemapmodelslot] [Deletes an unused mapmodel slot.];
  1589. docargument [N] [mapmodel slot number] [] [0];
  1590. docargument [P] [purge] [] [0];
  1591. docremark [If "purge" is specified as second argument, it also deletes an used slot (including all map entities which use that mapmodel).];
  1592. docremark [Also it enables automapconfig.];
  1593. docref [mapmodel];
  1594. docref [mapmodelslotname];
  1595. docref [mapmodelslotbyname];
  1596. docref [mapmodelslotusage];
  1597. docref [editmapmodelslot];
  1598. docref [mapmodelchanged];
  1599. docident [deletemapsoundslot] [Deletes an unused map sound slot.];
  1600. docargument [N] [map sound slot number] [] [0];
  1601. docargument [P] [purge] [] [0];
  1602. docremark [If "purge" is specified as second argument, it also deletes an used slot (including all map entities which use that sound).];
  1603. docremark [Also it enables automapconfig.];
  1604. docref [mapsound];
  1605. docref [mapsoundslotbyname];
  1606. docref [mapsoundslotusage];
  1607. docref [editmapsoundslot];
  1608. docref [mapsoundchanged];
  1609. docident [deletetextureslot] [Deletes an unused texture slot.];
  1610. docargument [N] [texture slot number] [0..255] [0];
  1611. docargument [P] [delete used slot?] [purge] [0];
  1612. docargument [R] [replacement slot] [0..255] [0];
  1613. docremark [If "purge" word is put as second argument, it also deletes an used slot. All mapmodels that use that texture as skin are changed to default skin. All world geometry, which uses the texture, is instead set to use slot #255 or a specified replacement slot. Slots below #5 always require "purge", no matter if they are in use (default slots).];
  1614. docremark [Also enables automapconfig.];
  1615. docref [texture];
  1616. docref [textureslotusage];
  1617. docref [textureslotusagelist];
  1618. docref [textureslotbyname];
  1619. docref [edittextureslot];
  1620. docref [edittexturestack];
  1621. docident [editaxis] [Contains the main axis of the player orientation.];
  1622. docargument [N] [11: X, 12: Y, 13: Z] [min 0/max 13/default 0];
  1623. docident [editentity] [Edits a map entity.];
  1624. docargument [N] [entity index/number] [] [0];
  1625. docargument [A] [list of attributes] [] [0];
  1626. docremark [It edits only parameters given a non-empty value. Returns the type and the values of all attributes (x, y, z, attr1 - attr7). It uses float values for some attributes, return values also may be float.];
  1627. docexample [echo (editentity 33)] [Prints all attributes of map entity number 33, for example "light 174 172 12 20 255 200 200 0 0 0"];
  1628. docexample [editentity 33 "" 173] [Changes the y-position of entity 33 to 173];
  1629. docref [entset];
  1630. docref [enumentities];
  1631. docref [addentity];
  1632. docref [deleteentity];
  1633. docident [editheight] [Changes the height of the current selection.];
  1634. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  1635. docargument [D] [the delta value to move it in] [1 (forwards), -1 (backwards)] [0];
  1636. docremark [Default keys are [ and ] for floor level, and o/p for ceiling.];
  1637. docident [editing] [A variable indicating if the game is in editmode.];
  1638. docargument [B] [editmode] [1 (true), 0 (false) read-only];
  1639. docident [editmapmodelslot] [Edits the parameters of a mapmodel slot.];
  1640. docargument [N] [mapmodel slot number] [integer] [0];
  1641. docargument [R] [radius] [integer] [0];
  1642. docargument [H] [height] [integer] [0];
  1643. docargument [Z] [z-offset] [integer] [0];
  1644. docargument [0] [redundant, leave it at zero so you don't break the command] [0] [0];
  1645. docargument [P] [mapmodel path] [string] [0];
  1646. docremark [Edits the parameters of a mapmodel slot. Only non-empty parameters actually change something.];
  1647. docremark [The command returns the resulting data of the mapmodel slot. If only the mapmodel slot number is specified, no changes are made, but the current data is returned. Therefore the command can be used to get and set parameters.];
  1648. docremark [If anything is changed, automapconfig is enabled.];
  1649. docexample [editmapmodelslot 33 "" "" -5] [sets the z-offset of slot #33 to -5 without affecting other parameters];
  1650. docexample [echo (editmapmodelslot 33)] [prints the current parameters of mapmodel slot #33 , for example: 0 0 0 0 "makke/lightbulb"];
  1651. docref [mapmodel];
  1652. docref [mapmodelslotname];
  1653. docref [mapmodelslotbyname];
  1654. docref [mapmodelslotusage];
  1655. docref [deletemapmodelslot];
  1656. docref [mapmodelchanged];
  1657. docident [editmapmsg] [Allows to edit the map message.];
  1658. docref [mapmsg];
  1659. docident [editmapsoundslot] [Edits path/name and maxuses parameters of a mapsound slot.];
  1660. docargument [N] [map sound slot number] [] [0];
  1661. docargument [P] [map sound path] [] [0];
  1662. docargument [M] [maxuses] [] [0];
  1663. docremark [Only non-empty parameters actually change something. The command returns the resulting data of the map sound slot. If only the map sound slot number is specified, no changes are made, but the current data is returned. Therefore the command can be used to get and set parameters.];
  1664. docremark [If anything is changed, automapconfig is enabled.];
  1665. docref [mapsound];
  1666. docref [mapsoundslotbyname];
  1667. docref [mapsoundslotusage];
  1668. docref [deletemapsoundslot];
  1669. docref [mapsoundchanged];
  1670. docident [editmeta] [First modifier key for editing mode.];
  1671. docremark [Go to references mentioned below to see the use.];
  1672. dockey [LCTRL] [left Ctrl] [first modifier key for editing mode];
  1673. docref [addselection];
  1674. docref [entproperty];
  1675. docref [undelent];
  1676. docref [editmetakeydown];
  1677. docident [editmeta2] [Second modifier key for editing mode.];
  1678. docremark [Go to references mentioned below to see the use.];
  1679. dockey [LCTRL] [left Shift] [second modifier key for editing mode];
  1680. docref [entproperty];
  1681. docref [undelent];
  1682. docref [editmeta2down];
  1683. docident [editmeta2down] [Indicates if second editmeta key is pressed.];
  1684. docargument [N] [state of the second editmeta key] [0: unpressed, 1: pressed read-only];
  1685. docref [editmeta2];
  1686. docident [editmetakeydown] [Indicates if editmeta key is pressed.];
  1687. docargument [N] [state of the first editmeta key] [0: unpressed, 1: pressed read-only];
  1688. docref [editmeta];
  1689. docident [edittag] [];
  1690. docargument [T] [tag] [integer value] [0];
  1691. docident [edittagclip] [Sets tag clip type of all selected cubes.];
  1692. docargument [T] [type] [0 (none), 64 (clip), 128 (plclip)] [0];
  1693. docremark [Type can be numeric or a keyword.];
  1694. docref [transformclipentities];
  1695. docident [edittex] [Changes the texture on current selection by browsing through a list of textures directly shown on the cubes.];
  1696. docargument [T] [an integer denoting the type] [0 (floor), 1 (lower or wall), 2 (ceiling), 3 (upper wall)] [0];
  1697. docargument [D] [the direction you want to cycle the textures in] [1 (forwards), -1 (backwards)] [0];
  1698. docremark [Default keys are the six keys above the cursor keys, which each 2 of them cycle one type (and numpad 7/4 for upper).];
  1699. docremark [The way this works is slightly strange at first, but allows for very fast texture assignment. All textures are in 3 individual lists for each type (both wall kinds treated the same), and each time a texture is used, it is moved to the top of the list. So after a bit of editing, all your most frequently used textures will come first when pressing these keys, and the most recently used texture is set immediately when you press the forward key for the type. These lists are saved with the map. Make a selection (including wall bits) and press these keys to get a feel for what they do.];
  1700. docref [hudtexttl];
  1701. docident [edittextureslot] [Edits the parameters of a texture slot.];
  1702. docargument [N] [texture slot number] [0..255] [0];
  1703. docargument [S] [scale] [] [0];
  1704. docargument [P] [path] [] [0];
  1705. docremark [Only non-empty parameters actually change something. The command returns the resulting data of the texture slot. If only the texture slot number is specified, no changes are made, but the current data is returned. Therefore the command can be used to get and set parameters.];
  1706. docremark [If anything is changed, automapconfig is enabled.];
  1707. docexample [edittextureslot 33 "" "arcitool/rohbaubims.jpg"] [Sets texture name of slot #33];
  1708. docexample [echo (edittextureslot 33)] [Prints the current parameters of texture slot #33, for example: 0 "zastrow/3wood_crate_10.jpg"];
  1709. docref [texture];
  1710. docref [textureslotusage];
  1711. docref [textureslotusagelist];
  1712. docref [textureslotbyname];
  1713. docref [deletetextureslot];
  1714. docref [edittexturestack];
  1715. docident [edittexturestack] [Puts a texture slot in a "last used" list up front.];
  1716. docargument [S] [surface] [floor, wall or ceiling] [0];
  1717. docargument [N] [texture slot number] [0..255] [0];
  1718. docremark [The first parameter picks the list, the second parameter is the texture slot number to be used for the next edit.];
  1719. docref [texture];
  1720. docref [textureslotusage];
  1721. docref [textureslotusagelist];
  1722. docref [textureslotbyname];
  1723. docref [deletetextureslot];
  1724. docref [edittextureslot];
  1725. docident [edittoggle] [Switches between map edit mode and normal.];
  1726. docremark [In map edit mode you can select bits of the map by clicking or dragging your crosshair on the floor or ceiling (using the "attack" identifier, normally MOUSE1), then use the identifiers below to modify the selection. While in edit mode, normal physics and collision don't apply (clips), and key repeat is ON. Note that if you fly outside the map, cube still renders the world as if you were standing on the floor directly below the camera.];
  1727. dockey [E] [] [];
  1728. docref [select];
  1729. docident [embedconfigfile] [Loads the map config file, includes it in the map header and renames the original config file.];
  1730. docremark [Embedded config files take precedence over regular config files.];
  1731. docref [automapconfig];
  1732. docref [extractconfigfile];
  1733. docref [listheaderextras];
  1734. docident [enlargearchslopeselections] [Automatically enlarge selections after placing arches or slopes.];
  1735. docargument [N] [0: don't enlarge selection, 1: enlarge selection] [min 0/max 1/default 0];
  1736. docremark [If the variable is set to 1, after placing an arch or a slope, the selection is enlarged, so that the arch or slope can be changed by vdelta increments (for example, to raise an arch in 1/4 cube increments).];
  1737. docremark [If the variable is set to 0 (which is default), the selection remains unchanged. This way, for example, the arch can be raised or lowered by regular cube increments.];
  1738. docref [arch];
  1739. docref [slope];
  1740. docident [enlargevdeltaselections] [Enlarges all selections by one cube in x- and y- direction, to change a selection from the "cube area" to the "vdelta area".];
  1741. docargument [I] [incremente] [] [0];
  1742. docremark [If an argument is given, it is used as increment value, so, for example "enlargevdeltaselections -1" undoes a previous enlargement.];
  1743. docref [select];
  1744. docref [addselection];
  1745. docident [entproperty] [Changes property (attributes) of the closest entity.];
  1746. docargument [A] [attribute index] [0..6 (atrr1 - attr7), 11..13 (x, y, z)] [0];
  1747. docargument [I] [attribute increment] [] [0];
  1748. docargument [U] [unscaled flag] [0 or 1] [0];
  1749. docremark [For example 'entproperty 0 2' when executed near a lightsource would increase its radius by 2.];
  1750. docremark [Keys 1..7, in combination with the scrollwheel, can be used to alter the new entity attributes (attr1 - attr7). Pressing editmeta speeds up the scrolling. Pressing editmeta2 enables unscaled editing of entity attributes.];
  1751. docremark [Increment is a float for some attributes. If "unscaled" flag is "1", increment is applied as unscaled integer, which means, it will change float attributes at their highest resolution.];
  1752. docref [getclosestent];
  1753. docref [getentattr];
  1754. docref [getenttype];
  1755. docref [editmeta];
  1756. docref [editmeta2];
  1757. docident [entset] [Edits the closest entity.];
  1758. docargument [E] [the entity type or number] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0];
  1759. docargument [attr1] [see newent 'type'] [] [0];
  1760. docargument [attr2] [see newent 'type'] [] [0];
  1761. docargument [attr3] [see newent 'type'] [] [0];
  1762. docargument [attr4] [see newent 'type'] [] [0];
  1763. docremark [Overwrites the closest entity with the specified attributes. Some attributes may be specified as floats.];
  1764. docref [editentity];
  1765. docident [entstats] [Prints some map entity statistics to the console.];
  1766. docident [enumentities] [Returns a list of the numbers of all entities of that type.];
  1767. docargument [type] [the entity type] [light, sound, clip, plclip, playerstart, pistol, ammobox, grenades, health, armour, akimbo, mapmodel, ladder, ctf-flag, helmet] [0];
  1768. docremark [If no such entities exist or the entity type could not be recognised, the list is empty.];
  1769. docref [gotoentity];
  1770. docref [addentity];
  1771. docref [editentity];
  1772. docref [deleteentity];
  1773. docident [enumtodoentities] [Returns a list of TODO entities.];
  1774. docremark [Returns entity index number and comment for every entry.];
  1775. docref [addtodoentity];
  1776. docref [cleartodoentities];
  1777. docref [xmap_list];
  1778. docident [equalize] [Levels the floor/ceiling of the selection.];
  1779. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  1780. docremark [default keys , and .];
  1781. docident [expandselection] [Increases the size of the current selection by N cubes on all sides.];
  1782. docargument [N] [number of cubes] [integer] [0];
  1783. docremark [Instead of manually executing this command, you can bind "domodifier 11" to a key. While holding this key you can expand/shrink the current selection with the mouse wheel.];
  1784. docref [select];
  1785. docref [addselection];
  1786. docref [shrinkselection];
  1787. docident [extractconfigfile] [Writes an embedded config file to a separate file and removes it from the map header.];
  1788. docref [automapconfig];
  1789. docref [embedconfigfile];
  1790. docident [flrceil] [A variable indicating if the player looks at the floor or at the ceiling.];
  1791. docargument [B] [flrceil] [0 (floor), 2 (ceiling) read-only];
  1792. docident [fullbright] [Sets all light values to fullbright.];
  1793. docargument [B] [sets fullbright on or off] [0 (off), 1 (on)] [0];
  1794. docremark [Will be reset when you issue a 'recalc'. Only works in edit mode.];
  1795. docident [fullbrightlevel] [Sets the level of brightness to use when using the command "/fullbright 1".];
  1796. docargument [V] [Light intensity level] [min 0/max 255/default 176];
  1797. docident [getautomapconfig] [Returns "1" if automapconfig is already enabled, "0" otherwise.];
  1798. docref [automapconfig];
  1799. docident [getclosestent] [Returns the entity index number of the closest entity (or of the pinned entity, if one exists).];
  1800. docremark [Returns -1, if no entities are on the map.];
  1801. docremark [Returns always exactly the entity, that edit commands like delent will use next.];
  1802. docref [toggleclosestentpin];
  1803. docref [entproperty];
  1804. docref [getentattr];
  1805. docref [getenttype];
  1806. docident [getdeletedentities] [Returns a list of deleted entities.];
  1807. docremark [Each line contains the entity type, the position and all seven attributes.];
  1808. docref [undelent];
  1809. docref [unlistdeletedentity];
  1810. docref [deleteentity];
  1811. docident [getentattr] [Returns the value of the selected attribute of the nearest entity.];
  1812. docargument [A] [attribute index] [0..6] [0];
  1813. docargument [U] [unscaled flag] [0 or 1] [0];
  1814. docremark [It returns float values for some attributes. If "unscaled" flag is "1", raw integer values (representing the highest resolution) are returned.];
  1815. docref [entproperty];
  1816. docref [getenttype];
  1817. docident [getenttype] [Returns the entity type of the nearest entity.];
  1818. docref [entproperty];
  1819. docref [getentattr];
  1820. docident [getmapmodelattributes] [Returns values for all attributes to a specific mapmodel.];
  1821. docargument [P] [model path] [] [0];
  1822. docargument [N] [attribute name] [keywords, desc, defaults, usage, author, license, distribution, version] [0];
  1823. docremark [If modelpath is a number, it is interpreted as index for the list of models in the current map config. If no attribute name is specified, all attributes are printed to the console instead.];
  1824. docref [mapmodel];
  1825. docref [listallmapmodelattributes];
  1826. docref [mapmodelregister];
  1827. docref [mdlattribute];
  1828. docident [getmapsoundlist] [Returns a list of all *.wav and *.ogg files below packages/audio/ambience.];
  1829. docref [mapsound];
  1830. docref [getmapsoundorigin];
  1831. docident [getmapsoundorigin] [Returns the location where the map sound file actually can be found.];
  1832. docargument [N] [filename or partial path with filename] [] [0];
  1833. docremark [The possibilities are:];
  1834. docremark ["official": mapsound file was found in the working directory, which indicates an official mapsound.];
  1835. docremark ["custom": mapsound file was found in the profile directory, which means, the mapsound is either manually installed or downloaded.];
  1836. docremark ["package dir #x": mapsound file was found in a mod directory.];
  1837. docremark ["<file not found>"];
  1838. docref [mapsound];
  1839. docref [getmapsoundlist];
  1840. docident [getmaptimestamp] [Returns the "last written" timestamp of the current map in the requested format.];
  1841. docargument [fmt] [format] [strftime format] [0];
  1842. docremark [If "fmt" starts with "U", the time is given as UTC, otherwise as local time. If "fmt" is empty, or not given or just the "U", the format defaults to "YYYYMMDD_hh.mm.ss". Use "%c" to get something nicer.];
  1843. docremark [The same format options as in strftime().];
  1844. docident [gettexturelist] [Returns a table of all texture files fitting a certain description.];
  1845. docargument [includes] [Optional list of path prefixes to include in the table.] [] [0];
  1846. docargument [excludes] [Optional list of path prefixes to exclude from the table.] [] [0];
  1847. docargument [extensions] [Optional list of filename extensions to include in the table.] [] [0];
  1848. docremark [All files found under packages/textures are examined.];
  1849. docremark [By default, the command returns a list with two columns: path and filename. If "excludes" is exactly one path prefix to exclude, the table gets a third column with path names without that prefix. If "extensions" is exactly one extension which does not start with the character '.', the table gets an additional (third or fourth) column containing file names without that extension.];
  1850. docexample [echo (gettexturelist)] [Outputs two columns like "noctua/wall" "wall02.jpg"];
  1851. docexample [echo (gettexturelist "" "map_editor skymaps")] [Outputs two columns like "noctua/wall" "wall02.jpg", but omits skymaps and special textures for the editor];
  1852. docexample [echo (gettexturelist makke)] [Outputs only textures by makke and adds a third column like "makke/rattrap" "rb_box_03.jpg" "/rattrap"];
  1853. docexample [echo (gettexturelist "skymaps/" "" "_ft.jpg")] [Outputs four columns like "skymaps/egypt" "egypt_ft.jpg" "egypt" "egypt", "skymaps/humus" "meadow_ft.jpg" "humus" "meadow"];
  1854. docref [texture];
  1855. docref [gettextureorigin];
  1856. docident [gettextureorigin] [Returns the location where the texture file actually can be found.];
  1857. docargument [N] [filename or partial path with filename] [] [0];
  1858. docremark [The possibilities are:];
  1859. docremark ["official": texture file was found in the working directory, which indicates an official texture.];
  1860. docremark ["custom": texture file was found in the profile directory, which means, the texture is either manually installed or downloaded.];
  1861. docremark ["package dir #x": texture file was found in a mod directory.];
  1862. docremark ["<file not found>"];
  1863. docref [texture];
  1864. docref [gettexturelist];
  1865. docident [getwatercolour] [Returns a string with the four components of the water colour: red, green, blue and alpha.];
  1866. docexample [echo (getwatercolor)] [Output: 20 25 20 178];
  1867. docref [watercolour];
  1868. docref [setwatercolour];
  1869. docident [gotoentity] [Jump to the location of a map entity.];
  1870. docargument [N] [the entity number] [] [0];
  1871. docremark [You can get the entity number with use "enumentities" command.];
  1872. docref [enumentities];
  1873. docident [gotoposition] [Only in edit mode: gets and sets camera position.];
  1874. docargument [x] [X coordinate] [float] [0];
  1875. docargument [y] [Y coordinate] [float] [0];
  1876. docargument [z] [Z coordinate] [float] [0];
  1877. docargument [yaw] [yaw] [integer] [0];
  1878. docargument [pitch] [pitch] [integer] [0];
  1879. docremark [Returns x, y, z, yaw and pitch. Sets x, y, z, yaw and pitch, if the parameter is not an empty string.];
  1880. docexample [echo (gotoposition)] [Output: 67.7 78.6 5.5 8 0];
  1881. docexample [gotoposition "" "" "" 180 0] [Change yaw and pitch to look straight in +y direction.];
  1882. docident [gotovantagepoint] [Sets camera position in vantage point.];
  1883. docref [setvantagepoint];
  1884. docref [clearvantagepoint];
  1885. docident [guidetoggle] [Enables or disables a special set of default textures while editing.];
  1886. docremark [The textures in "packages/textures/map_editor" are used.];
  1887. docident [heightfield] [Marks the current selection as a heightfield.];
  1888. docargument [T] [an integer denoting the type] [0 (floor), 2 (ceiling)] [0];
  1889. docremark [marks the current selection as a heightfield, with T being floor or ceiling, as above. A surface marked as heightfield will use the vdelta values (see below) of its 4 corners to create a sloped surface. To mark a heightfield as normal again (ignoring vdelta values, set or not) use "solid 0". Default keys are h (floor) and i (ceiling).];
  1890. docremark [Heightfields should be made the exact size that is needed, not more not less. The most important reason for this is that cube automatically generates "caps" (side-faces for heightfields) only on the borders of the heightfield. This also means if you have 2 independent heightfields accidentally touch each other, you will not get correct caps. Also, a heightfield is slightly slower to render than a non-heightfield floor or ceiling. Last but not least, a heightfield should have all the same baseheight (i.e. the height determined by a normal editheight operation) to get correct results.];
  1891. docref [vdelta];
  1892. docident [hudtexttl] [Show preview of textures during editing.];
  1893. docargument [T] [time to show texture preview [ms]] [min 0/max 10000/default 2500];
  1894. docremark [When textures of the map geometry are changed, five textures around the current pick from the "last used" stack are shown.];
  1895. docremark [The texture assigned to the "sky" slot is not shown. Instead, a plain blue rectangle is used.];
  1896. docref [edittex];
  1897. docident [ignoreoverride_limitwaveheight] [Ignores per-map overrides to limit waveheight on the client.];
  1898. docargument [N] [0: off, 1: ignore] [0..1] [0];
  1899. docremark [Ignores the overrides set by the mappers (for their maps only). If "1", mapoverride_limitwaveheight is ignored, and "waveheight" is used unchanged.];
  1900. docref [mapoverride_limitwaveheight];
  1901. docref [ignoreoverride_nowaterreflect];
  1902. docref [ignoreoverride_nostencilshadows];
  1903. docident [ignoreoverride_nostencilshadows] [Ignores per-map overrides to disable stencil shadows on the client.];
  1904. docargument [N] [0: off, 1: ignore] [0..1] [0];
  1905. docremark [Ignores the overrides set by the mappers (for their maps only). If "1", mapoverride_nostencilshadows is ignored.];
  1906. docref [mapoverride_nostencilshadows];
  1907. docref [ignoreoverride_nowaterreflect];
  1908. docref [ignoreoverride_limitwaveheight];
  1909. docident [ignoreoverride_nowaterreflect] [Ignores per-map overrides to disable water reflection on the client.];
  1910. docargument [N] [0: off, 1: ignore] [0..1] [0];
  1911. docremark [Ignores the overrides set by the mappers (for their maps only). If "1", mapoverride_nowaterreflect is ignored and regular client settings are used.];
  1912. docref [mapoverride_nowaterreflect];
  1913. docref [ignoreoverride_limitwaveheight];
  1914. docref [ignoreoverride_nostencilshadows];
  1915. docident [listallmapmodelattributes] [Returns a table of all known mapmodels.];
  1916. docargument [N] [list of attribute names] [explodekeywords, sortby: keywords, desc, defaults, usage, author, license, distribution, version] [0];
  1917. docremark [Each model is listed with the modelpath and the values for the requested attributes. To be used instead of a fixed table in menu_edit.cfg.];
  1918. docremark [In addition to attribute names, the function also allows the keywords "explodekeywords" and "sortby:" as arguments. If "explodekeywords" is given, all mapmodels with more than one keyword are listed multiple times, once for each keyword. If an attribute name is preceeded by "sortby:" the list will be sorted by this table column. If "sortby:" is used several times, this first sort will have highest priority. The list is always sorted by path by default.];
  1919. docexample [listallmapmodelattributes sortby: author sortby: desc explodekeywords] [];
  1920. docref [mapmodel];
  1921. docref [getmapmodelattributes];
  1922. docref [mapmodelregister];
  1923. docref [mdlattribute];
  1924. docident [listheaderextras] [Returns a list with additional data ("header extras") from current map header.];
  1925. docremark [The header extras can be permanent, like the embedded config file, or can be used only once after map load, like the undo/redo data. Additional extra data can be easily added and will not break backward compatibility.];
  1926. docref [automapconfig];
  1927. docref [embedconfigfile];
  1928. docident [loadallmapmodels] [Tries to load mapmodels from all paths below packages/models/mapmodels.];
  1929. docremark [It will throw a lot of error messages, because not all directories contain models to load. This command can be used to build or rebuild the complete list of all available mapmodels. It is only necessary, if models are added manually to the directories, since every mapmodel gets added to the list when it is loaded - which takes care of all automatically downloaded models.];
  1930. docref [mapmodel];
  1931. docident [mapareacheck] [Calculates some key values to determine map geometry viability.];
  1932. docargument [W] [what] [vdelta, steepest, total, pprest, pp (default)] [0];
  1933. docremark [It returns different sets of statistics, depending on the keyword "what":];
  1934. docremark ["vdelta" - returns table of numbers of cubes within a certain range of vdelta differences (steepness). First entry is "0..2 cubes steep", next is "2..4" and so on.];
  1935. docremark ["steepest" - returns the coordinates of the steepest heightfield cube.];
  1936. docremark ["total" - returns the number of non-solid cubes on the map.];
  1937. docremark ["pprest" - returns the number of cubes _not_ visible from one of the probe positions.];
  1938. docremark ["pp" (default) - returns a table of all (currently 64) probe points of the map. Each probe point is listed with: x-coordinate, y-coordinate, floor height, area visible, volume of visible area, average height in visible area.];
  1939. docident [mapbackupsonsave] [Determines if map backups (.bak) should be created when a map is saved.];
  1940. docargument [N] [0 off, 1 on] [min 0/max 1/default 1];
  1941. docident [mapenlarge] [Enlarges the current map.];
  1942. docremark [This command will make the current map 1 power of two bigger. So a size 6 map (64x64 units) will become a size 7 map (128x128), with the old map in the middle (from 32-96) and the new areas solid.];
  1943. docref [newmap];
  1944. docref [mapsize];
  1945. docref [mapshrink];
  1946. docident [mapinfo_comment] [Sets the map comment string.];
  1947. docargument [C] [comment] [string] [0];
  1948. docremark [The variable is stored withing the header of a map file. The comment string is ignored, as long as no map license string is set.];
  1949. docremark [You can get the comment string with the $mapinfo_comment variable.];
  1950. docref [mapinfo_license];
  1951. docident [mapinfo_license] [Sets the map license.];
  1952. docargument [L] [type of license] [string] [0];
  1953. docremark [The name of license is stored withing the header of a map file. The license string is meant to hold an abbreviated name of the license, picked from a list of known map licenses.];
  1954. docremark [You can get the type of map license with the $mapinfo_license variable.];
  1955. docref [mapinfo_comment];
  1956. docident [mapmodelchanged] [Set to "1" with every command that changes mapmodel slots.];
  1957. docargument [N] [0: not changed, 1: changed] [min 0/max 1/default 0];
  1958. docremark [Should be used to trigger a rebuild of mapsound menus.];
  1959. docref [mapmodel];
  1960. docref [editmapmodelslot];
  1961. docref [deletemapmodelslot];
  1962. docident [mapmodelregister] [Adds values for all attributes to a specific mapmodel.];
  1963. docargument [P] [model path] [] [0];
  1964. docargument [V] [list of all attribute values] [] [0];
  1965. docremark [This is used to restore the cached values from config/mapmodelattributes.cfg during game start. It does not actually verify of load the model.];
  1966. docref [mapmodel];
  1967. docref [getmapmodelattributes];
  1968. docref [listallmapmodelattributes];
  1969. docref [mdlattribute];
  1970. docident [mapmodelslotbyname] [Returns the slot number registered in the map config file of the model with the given name.];
  1971. docargument [M] [mapmodel name (with path)] [] [0];
  1972. docexample [echo (mapmodelslotbyname "mapmodels/makke/platform_bridge")] [Output: 5];
  1973. docref [mapmodel];
  1974. docref [mapmodelslotname];
  1975. docref [mapmodelslotusage];
  1976. docref [editmapmodelslot];
  1977. docref [deletemapmodelslot];
  1978. docident [mapmodelslotname] [Returns the map model name (and path) of the mapmodel registered in the given slot number in the map config file.];
  1979. docargument [N] [mapmodel slot number] [] [0];
  1980. docref [mapmodel];
  1981. docref [mapmodelslotbyname];
  1982. docref [mapmodelslotusage];
  1983. docref [editmapmodelslot];
  1984. docref [deletemapmodelslot];
  1985. docident [mapmodelslotusage] [Returns a list of map entity indices which use a certain mapmodel slot.];
  1986. docargument [N] [mapmodel slot number] [] [0];
  1987. docremark [If the mapmodel is unused, it returns an empty string.];
  1988. docremark [It returns a single space, if the model slot is not used by any map entity, but is required by another model (with entities).];
  1989. docref [mapmodel];
  1990. docref [mapmodelslotname];
  1991. docref [mapmodelslotbyname];
  1992. docref [editmapmodelslot];
  1993. docref [deletemapmodelslot];
  1994. docident [mapmodelzoff] [Allows negative z-offsets for mapmodels.];
  1995. docargument [N] [mapmodel slot number] [] [0];
  1996. docremark [A mapmodel entity is placed at a z-coordinate that is based on the floor height of map geometry and a z-offset. The z-offset is a sum of the entity attribute 3 and the third mapmodel slot parameter. The entity z-offset can range from 0 to 255 while the mapmodel slot parameter can be any integer including negative numbers. So, to place a mapmodel below floor height, the mapmodel slot parameter has to be negative.];
  1997. docremark ["mapmodelzoff" script decreases the mapmodel slot parameter by one and increases the z-offset of every mapmodel which uses that slot also by one. This means, that all mapmodel are exact in the same place afterwards - but the entity z-offset now has room to lower the mapmodel by one more cube.];
  1998. docremark [If you need more z-offset available, run the script several times.];
  1999. docident [mapmrproper] [Cleanups hidden map attributes.];
  2000. docremark ["mapmrproper" tries to optimize hidden attributes of maps in a way, that the map can be handled in bigger chunks by the renderer.];
  2001. docremark [The mipmapping routine does not take into account, if certain textures of a cube are visible at all, when it collects otherwise identical cubes to be handled en-bloc. "mapmrproper" changes invisible textures in a way, that the cubes are in fact identical - so, that the mipmapper is satisfied. The optimizer does not change any map properties that are visible in any way.];
  2002. docremark [Before any changes are made, mapmrproper creates a backup, which can be restored by "undo" command. Enable mipstats ("showmip" command), to see, what has been done.];
  2003. docref [showmip];
  2004. docident [mapmsg] [Sets the map message, which will be displayed when the map loads.];
  2005. docargument [M] [The map message] [String] [0];
  2006. docremark [You will need to use quote marks around the message, otherwise it save the message correctly.];
  2007. docremark [For example: /mapmsg "Map By Author"];
  2008. docremark [You can get the current map message with the $mapmsg variable.];
  2009. docref [editmapmsg];
  2010. docident [mapoverride_limitwaveheight] [Per-map override to limit waveheight on the client.];
  2011. docargument [N] [0: off, 1: limit waveheight] [0..1] [0];
  2012. docremark [Set by the mapper, for his map only. The overrides are stored in the map header.];
  2013. docremark [If "1", waveheight is capped at 0.1 max. Useful for small water areas (like puddles), where higher waves would look weird.];
  2014. docref [mapoverride_nowaterreflect];
  2015. docref [mapoverride_nostencilshadows];
  2016. docref [ignoreoverride_limitwaveheight];
  2017. docident [mapoverride_nostencilshadows] [Per-map override to disable stencil shadows on the client.];
  2018. docargument [N] [0: off, 1: disable stencil shadows] [0..1] [0];
  2019. docremark [Set by the mapper, for his map only. The overrides are stored in the map header.];
  2020. docremark [If "1", stencil shadows are disabled. On clients, where stencil shadows are otherwise enabled, blob shadows are used instead. If shadows are disabled anyway, they stay disabled. Useful for dim maps, where hard shadows make no sense.];
  2021. docref [mapoverride_nowaterreflect];
  2022. docref [mapoverride_limitwaveheight];
  2023. docref [ignoreoverride_nostencilshadows];
  2024. docident [mapoverride_nowaterreflect] [Per-map override to disable water reflection on the client.];
  2025. docargument [N] [0: off, 1: disable water reflection] [0..1] [0];
  2026. docremark [Set by the mapper, for his map only. The overrides are stored in the map header.];
  2027. docremark [If "1", water reflection is disabled. Useful, when odd water colours are used to emulate other liquids that are not supposed to be that reflective.];
  2028. docref [mapoverride_limitwaveheight];
  2029. docref [mapoverride_nostencilshadows];
  2030. docref [ignoreoverride_nowaterreflect];
  2031. docident [mapshrink] [Reduces the world size by 1.];
  2032. docremark [This command will make the current map 1 power of two smaller. So a size 7 map (128x128) will become a 6 size map (64x64 units), by removing 32 cubes from each side. The area to be removed needs to be empty (= all solid).];
  2033. docref [newmap];
  2034. docref [mapsize];
  2035. docref [mapenlarge];
  2036. docident [mapsize] [Outputs the mapsize.];
  2037. docref [newmap];
  2038. docref [mapenlarge];
  2039. docref [mapshrink];
  2040. docident [mapsoundchanged] [Set to "1" with every command that changes mapsound slots.];
  2041. docargument [N] [0: not changed, 1: changed] [min 0/max 1/default 0];
  2042. docremark [Should be used to trigger a rebuild of mapsound menus.];
  2043. docref [mapsound];
  2044. docref [editmapsoundslot];
  2045. docref [deletemapsoundslot];
  2046. docident [mapsoundslotbyname] [Returns the list of numbers of all mapsound slots which use that sound file.];
  2047. docargument [N] [map sound filename] [] [0];
  2048. docref [mapsound];
  2049. docref [mapsoundslotusage];
  2050. docref [editmapsoundslot];
  2051. docref [deletemapsoundslot];
  2052. docident [mapsoundslotusage] [Returns a list of map entity indices which use a certain map sound slot.];
  2053. docargument [N] [map sound slot number] [] [0];
  2054. docremark [If the sound is unused, it returns an empty string.];
  2055. docref [mapsound];
  2056. docref [mapsoundslotbyname];
  2057. docref [editmapsoundslot];
  2058. docref [deletemapsoundslot];
  2059. docident [mapstats_hud] [Controls whether or not to show map statistics on map load.];
  2060. docargument [N] [0: Don't show, 1: Show] [min 0/max 1/default 0];
  2061. docref [showmapstats];
  2062. docident [movemap] [Moves the whole map (including all entities) in the specified direction.];
  2063. docargument [dX] [x-offset] [] [0];
  2064. docargument [dY] [y-offset] [] [0];
  2065. docargument [dZ] [z-offset] [] [0];
  2066. docident [newent] [Adds a new entity.];
  2067. docargument [E] [the entity type or number] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0];
  2068. docargument [attr1] [see newent 'type'] [] [0];
  2069. docargument [attr2] [see newent 'type'] [] [0];
  2070. docargument [attr3] [see newent 'type'] [] [0];
  2071. docargument [attr4] [see newent 'type'] [] [0];
  2072. docremark [(x,y) is determined by the current selection (the red dot corner) and z by the camera height, of said type. The type of entity may optionally take attributes (depending on the entity).];
  2073. docident [newent akimbo] [Adds a new akimbo item.];
  2074. docident [newent ammobox] [Adds a new ammo box item.];
  2075. docident [newent armour] [Adds a new armour item.];
  2076. docident [newent clip] [Adds a clip entity.];
  2077. docargument [Z] [elevation above the ground] [integer] [0];
  2078. docargument [X] [X radius around the box center] [integer] [0];
  2079. docargument [Y] [Y radius around the box center] [integer] [0];
  2080. docargument [H] [height of the box] [integer] [0];
  2081. docremark [Defines a clipping box against which the player will collide.];
  2082. docremark [Use this clip type to clip visible obstacles like fences or the gas tank. If you only want to prevent a player from entering an area, use plclip instead.];
  2083. docident [newent ctf-flag] [Adds a CTF flag entity.];
  2084. docargument [T] [denotes the flag's team] [0 (CLA), 1 (RVSF)] [0];
  2085. docremark [Note that outside of edit mode, this entity is only rendered as flag if the current game mode is CTF.];
  2086. docident [newent grenades] [Adds a new grenades item.];
  2087. docident [newent health] [Adds a new health item.];
  2088. docident [newent helmet] [Adds a new helmet item.];
  2089. docident [newent ladder] [Adds a ladder entity.];
  2090. docargument [H] [the height of the ladder] [integer] [0];
  2091. docremark [Note that this entity is used for physics only, to create a visual ladder you will need to add a mapmodel entity too.];
  2092. docref [newent mapmodel];
  2093. docident [newent light] [Adds a new light entity.];
  2094. docargument [radius] [the light radius] [1..32] [0];
  2095. docargument [R] [red colour component. see remarks below.] [1..255] [0];
  2096. docargument [G] [green colour component] [1..255] [0];
  2097. docargument [B] [blue colour component] [1..255] [0];
  2098. docremark [if only argument R is specified, it is interpreted as brightness for white light.];
  2099. docident [newent mapmodel] [Adds a map model to the map (i.e. a rendered md2/md3 model which you collide against but has no behaviour or movement).];
  2100. docargument [N] [The mapmodel identifier] [Integer] [0];
  2101. docargument [Z] [Extra elevation above ground] [Integer] [0];
  2102. docargument [T] [The map texture to use] [Integer] [0];
  2103. docremark [The mapmodel identifier is the desired map model which is defined by the 'mapmodel' command. The order in which the mapmodel is placed in the map config file defines the mapmodel identifier. The map texture refers to a texture which is defined by the 'texture' command, if omitted the models default skin will be used. The 'mapmodel' and 'texture' commands are placed in the map config normally. Mapmodels are more expensive than normal map geometry, so do not use insane amounts of them to replace normal geometry.];
  2104. docident [newent pistol] [Adds a pistol magazine item.];
  2105. docident [newent playerstart] [Adds a new spawn spot.];
  2106. docremark [The yaw is taken from the current camera yaw.];
  2107. docident [newent plclip] [Adds a player clip entity.];
  2108. docargument [Z] [elevation above the ground] [integer] [0];
  2109. docargument [X] [X radius around the box center] [integer] [0];
  2110. docargument [Y] [Y radius around the box center] [integer] [0];
  2111. docargument [H] [height of the box] [integer] [0];
  2112. docremark [Defines a clipping box against which (only) the player will collide.];
  2113. docremark [Use this clip type to define no-go areas for players without visible obstacles, for example to prevent players from walking on a wall.];
  2114. docremark [Nades will not be affected by this clip type.];
  2115. docident [newent sound] [Adds a sound entity.];
  2116. docargument [N] [the sound to play] [integer] [0];
  2117. docargument [R] [the radius] [] [0];
  2118. docargument [S] [the size] [default 0] [0];
  2119. docargument [V] [the volume] [default 255] [0];
  2120. docremark [Will play map-specific sound so long as the player is within the radius. However, only up to the maxuses allowed for N (specified in the mapsound command) will play, even if the player is within the radius of more N sounds than the max. By default (size 0), the sound is a point source. Its volume is maximal at the entity's location, and tapers off to 0 at the radius. If size is specified, the volume is maximal within the specified size, and only starts tapering once outside this distance. Radius is always defined as distance from the entity's location, so a size greater than or equal to the radius will just make a sound that is always max volume within the radius, and off outside.];
  2121. docremark [A sound entity can be either ambient or non-ambient. Ambient sounds have no specific direction, they are 'just there'. Non-ambient sounds however appear to come from a specific direction (stereo panning). If S is set to 0, the sound is a single point and will therefore be non-ambient. However if S is greater than 0, the sound will be ambient as it covers a specified area instead of being a single point.];
  2122. docref [mapsound];
  2123. docident [newmap] [Creates a new map.];
  2124. docargument [S] [the size of the new map] [6..9] [0];
  2125. docremark [The new map has 2^S cubes. For S, 6 is small, 7 medium, 8 large.];
  2126. docref [mapsize];
  2127. docref [mapenlarge];
  2128. docref [mapshrink];
  2129. docident [nextclosestent] [Chooses another 'closest ent'.];
  2130. docremark [Use this, when two entities are placed in exactly the same location.];
  2131. docident [nextplayerstart] [Visit next player spawn entity.];
  2132. docargument [TYPE] [0|1|100] [] [0];
  2133. docident [oldselstyle] [Enables or disables using squares to render the editing grid/current selection instead of triangles.];
  2134. docargument [N] [0 off, 1 on] [min 0/max 1/default 1];
  2135. docident [onNewMap] [This alias will automatically be executed when a new map is created via the "newmap" command.];
  2136. docremark [Does not affect the loading of an existing map.];
  2137. docref [newmap];
  2138. docref [mapstartonce];
  2139. docref [mapstartalways];
  2140. docident [paste] [Pastes a previously copied selection.];
  2141. docremark [To paste a selection back requires a same size selection at the destination location. If it is not the same size the selection will be resized automatically prior to the paste operation (with the red dot as anchor), which is easier for large selections.];
  2142. dockey [V] [] [];
  2143. docref [copy];
  2144. docident [pasteent] [Pastes a previously copied entity.];
  2145. docremark [Only works while in edit mode.];
  2146. docref [copyent];
  2147. docident [perlin] [Generates a perlin noise landscape in the current selection.];
  2148. docargument [S] [the scale, frequency of the features] [default is 10] [0];
  2149. docargument [E] [the random seed] [integer] [0];
  2150. docargument [C] [cube size, how many cubes to generate a surface for at once (unused)] [] [0];
  2151. docremark [Keep the seed the same to create multiple perlin areas which fit with each other, or use different numbers if to create alternative random generations.];
  2152. docident [preserveundosonsave] [Determines if undo data should be preserved on using "savemap" command.];
  2153. docargument [N] [0: don't preserve undos, 1: preserve undos] [min 0/max 1/default 0];
  2154. docremark [Undo data can be saved only in edit mode.];
  2155. docref [savemap];
  2156. docident [pushselections] [Stores the positions of all current selections.];
  2157. docremark [Can be used repeatedly. To restore the selections, type "popselections".];
  2158. docref [select];
  2159. docref [addselection];
  2160. docident [recalc] [Recomputes all there is to recompute about a map, currently only lighting.];
  2161. docident [redo] [Redoes editing operations undone by 'undo'.];
  2162. docremark [With editmeta pressed it also restores player position and selects the affected area.];
  2163. dockey [R] [] [];
  2164. docref [undo];
  2165. docref [editmeta];
  2166. docident [replace] [Repeats the last texture edit throughout the map.];
  2167. docremark [The way it works is intuitive: simply edit any texture anywhere, then using "replace" will replace all textures throughout the map in the same way (taking into account whether it was a floor/wall/ceil/upper too). If the there was more than one "old" texture in your selection, the one nearest to the red dot is used. This operation can't be undone.];
  2168. docident [rereadsoundlists] [Variable, which is set to "1" when a sound is downloaded.];
  2169. docargument [N] [is sound downloaded?] [0: no, 1: yes min 0/max 1/default 1];
  2170. docremark [Used to trigger menu rebuilds.];
  2171. docref [rereadtexturelists];
  2172. docident [rereadtexturelists] [Variable, which is set to "1" when a texture is downloaded.];
  2173. docargument [N] [is texture downloaded?] [0: no, 1: yes min 0/max 1/default 1];
  2174. docremark [Used to trigger menu rebuilds.];
  2175. docref [rereadsoundlists];
  2176. docident [resetselections] [Resets all current selections.];
  2177. docref [select];
  2178. docref [selectall];
  2179. docref [addselection];
  2180. docident [savemap] [Saves the current map.];
  2181. docargument [M] [file name of the map, see command 'map' for the naming scheme] [string] [0];
  2182. docremark [It makes a versioned backup (mapname_N.BAK) if a map by that name already exists. If the name argument is omitted, it is saved under the current map name.];
  2183. docremark [Where you store a map depends on the complexity of what you are creating: if its a single map (maybe with its own .cfg) then the "base" package is the best place. If its multiple maps or a map with new media (textures etc.) its better to store it in its own package (a directory under "packages"), which makes distributing it less messy.];
  2184. docremark [For "savemap" to save different maps during editing with undo data, the variable "preserveundosonsave" has to be "1". It is "0" by default. "savemap" when not editing saves optimised map, with no undo data.];
  2185. docref [map];
  2186. docref [savemapoptimised];
  2187. docref [preserveundosonsave];
  2188. docident [savemap9] [Saves a map in old map format 9 (may lose some map details that are not possible with format 9).];
  2189. docident [savemapoptimised] [Saves optimised the current map, with no undo data.];
  2190. docargument [M] [file name of the map, see command 'map' for the naming scheme] [string] [0];
  2191. docremark [It makes a versioned backup (mapname_N.BAK) if a map by that name already exists. If the name argument is omitted, it is saved under the current map name.];
  2192. docref [map];
  2193. docref [savemap];
  2194. docident [scalelights] [Scales all lights in the map.];
  2195. docargument [S] [size change (percentage)] [] [0];
  2196. docargument [I] [intensity change (percentage)] [] [0];
  2197. docremark [This command is useful if a map is too dark or bright but you want to keep the light entities where they are.];
  2198. docident [select] [Resets all current selections and selects the given area, as if dragged with the mouse.];
  2199. docargument [X] [the X coordinate] [] [0];
  2200. docargument [Y] [the Y coordinate] [] [0];
  2201. docargument [XS] [the length along the X axis] [] [0];
  2202. docargument [XY] [the length along the Y axis] [] [0];
  2203. docremark [This command is similar to addselection although "select" resets all selections.];
  2204. docref [addselection];
  2205. docref [selectall];
  2206. docref [resetselections];
  2207. docref [expandselection];
  2208. docref [shrinkselection];
  2209. docref [enlargevdeltaselections];
  2210. docref [selx];
  2211. docref [sely];
  2212. docref [selxs];
  2213. docref [selys];
  2214. docref [selectionwalk];
  2215. docref [pushselections];
  2216. docident [selectall] [Selects the whole map (minus the two cubes wide border).];
  2217. docref [select];
  2218. docref [addselection];
  2219. docref [resetselections];
  2220. docident [selectionflip] [Flips the selected part of the map at an axis.];
  2221. docargument [AXIS] [X or Y] [] [0];
  2222. docident [selectionrotate] [Rotates the selected part of the map in 90 degree steps.];
  2223. docargument [D] [steps] [] [0];
  2224. docremark [To rotate clockwise, use a positive number of steps. Note, that only quadratic selections can be rotated by 90 degrees.];
  2225. docident [selectionwalk] [Iterates over all cubes in all selections and executes "action" for each cube.];
  2226. docargument [action] [action] [] [0];
  2227. docargument [beginsel] [begin action before cubes action of each selection] [] [0];
  2228. docargument [endsel] [end action before cubes action of each selection] [] [0];
  2229. docremark [The cubes of every selection are framed by executions of "beginsel" and "endsel", i.e. for each new selection, before executing "action" for the cubes of that selection, "beginsel" is executed, and then, after actions for all cubes of that selection, "endsel" is executed. The action script is allowed to make changes to cube attributes, and if it does, an undo point is automatically added. "beginsel" and "endsel" are optional.];
  2230. docremark [While the scripts are executed, several aliases provide further info:];
  2231. docremark ["sw_cursel" - position and size of the current selection. Valid in all three scripts. Holds four integer values for x, y, xs, ys. See "select" command for details.];
  2232. docremark [(all following aliases are only valid during the execution of the action script and provide the attributes of one cube of the map)];
  2233. docremark ["sw_abs_x", "sw_abs_y", "sw_rel_x", "sw_rel_y" - absolute and relative (within the current selection) coordinates of the current cube. Read-only values.];
  2234. docremark ["sw_type" - type of the current cube. Can be 0..4 for SOLID, CORNER, FHF, CHF and SPACE. May be changed to other numerical value or keyword.];
  2235. docremark ["sw_floor", "sw_ceil" - floor and ceiling heights of the current cube. Range -128..127.];
  2236. docremark ["sw_wtex", "sw_ftex", "sw_ctex", "sw_utex" - texture slot indices for wall, floor, ceiling and upper wall of the current cube.];
  2237. docremark ["sw_vdelta", "sw_tag" - vdelta and tag values of current cube.];
  2238. docremark ["sw_r", "sw_g", "sw_b" - current light values of current cube. Can be edited, but only with temporary effect. Will be reset with the next light recalc.];
  2239. docremark [The command is mostly useful for statistics scripts (like counting cubes with certain attributes), but is can also be used for scripted editing, as the following (useless) example shows: selectionwalk [ += sw_floor (rnd 2) ]];
  2240. docref [select];
  2241. docref [addselection];
  2242. docident [selx] [Returns the x-coordinate of the westernmost (towards negative x) cube(s) in the current selection.];
  2243. docref [select];
  2244. docref [sely];
  2245. docref [selxs];
  2246. docref [selys];
  2247. docident [selxs] [Returns the x-span (size on the x-axis) of the current selection.];
  2248. docref [select];
  2249. docref [selx];
  2250. docref [sely];
  2251. docref [selys];
  2252. docident [sely] [Returns the y-coordinate of the northernmost (towards negative y) cube(s) in the current selection.];
  2253. docref [select];
  2254. docref [selx];
  2255. docref [selxs];
  2256. docref [selys];
  2257. docident [selys] [Returns the y-span (size on the y-axis) of the current selection.];
  2258. docref [select];
  2259. docref [selx];
  2260. docref [sely];
  2261. docref [selxs];
  2262. docident [setedithide] [Hides the list of entity types you set. Pass 1 for light, 2 for spawn, or use "playerstart".];
  2263. docargument [L] [list of entity types or numbers to hide] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0];
  2264. docremark [Pass light or 1, playerstart or 2. Call "setedithide [1 10]" to just hide all lights and mapmodels.];
  2265. docremark [Or "setedithide [3 4 5 6 7 8 9 12 13]" for all the clips, ammo, nades, health, helmet, armour, akimbo, ladder, and flag.];
  2266. docremark [Reversly just use [1 2 10 11 13 14 15 16] to hide light, spawn, mapmodel, ladder, sound, clip, plclip.];
  2267. docremark [Only shown entity types are potential 'closest entity'.];
  2268. docremark ["setedithide" without any arguments restores visibility of all entities.];
  2269. docref [seteditshow];
  2270. docref [showedithide];
  2271. docident [seteditshow] [Hides all but the single entity type you give. Pass 1 for light, 2 for spawn, or use [playerstart].];
  2272. docargument [T] [the entity type or number to show exclusively] [light (1), playerstart (2), pistol (3), ammobox (4), grenades (5), health (6), helmet (7), armour (8), akimbo (9), mapmodel (10), ladder (12), ctf-flag (13), sound (14), clip (15), plclip (16)] [0];
  2273. docremark [Just run "seteditshow mapmodel" and see just the mapmodel entities.];
  2274. docremark [The other entity types are ignored as closestentity too.];
  2275. docremark [Other call forms may use the numerical item type.];
  2276. docremark ["seteditshow" without any argument hides all entities.];
  2277. docref [setedithide];
  2278. docref [showedithide];
  2279. docident [settex] [Sets a texture for the current selection.];
  2280. docargument [T] [position of the texture to set in map cfg] [integer] [0];
  2281. docargument [t] [the type of the texture] [0 (floor), 1 (wall), 2 (ceil), 3 (upper wall)] [0];
  2282. docident [setvantagepoint] [Sets vantage point in current camera position.];
  2283. docremark [The vantage point is supposed to be a distinctive view on a map - like the angle from which the preview picture was taken.];
  2284. docremark [A map can only have one vantage point.];
  2285. docref [gotovantagepoint];
  2286. docref [clearvantagepoint];
  2287. docident [setwatercolour] [Allows setting the components of the water colour independently.];
  2288. docargument [W] [what] [red (0), green (1), blue (2), alpha (3)] [0];
  2289. docargument [V] [value] [(0)1..255] [0];
  2290. docremark ["what" is either a keyword "red|green|blue|alpha" or the index number 0..3 and determines, which component is set to value.];
  2291. docexample [setwatercolour red 200] [- sets the red component to 200];
  2292. docref [watercolour];
  2293. docref [getwatercolour];
  2294. docident [showclips] [Show clips/plclips/mapmodel clips in edit mode.];
  2295. docargument [N] [-] [min 0/max 1/default 1];
  2296. docident [showedithide] [Shows the settings for hidden entities (sparklies).];
  2297. docref [setedithide];
  2298. docref [seteditshow];
  2299. docident [showfocuscubedetails] [Shows detailed geometry data of the cube inside editing focus.];
  2300. docremark [It shows on the HUD cube type, floor and ceiling heights, vdelta and all textures.];
  2301. docref [showmip];
  2302. docident [showgrid] [Show editing cursor grid.];
  2303. docargument [N] [-] [min 0/max 1/default 1];
  2304. docident [showladderentities] [Show ladder entities (as blue wireframes) in edit mode.];
  2305. docargument [N] [-] [min 0/max 1/default 0];
  2306. docident [showmapdims] [Prints map dimensions.];
  2307. docident [showmapstats] [Prints some map statistics.];
  2308. docident [showmip] [Toggles between showing what parts of the scenery are rendered.];
  2309. docremark [Shows what parts of the scenery are rendered using what size cubes, and outputs some statistics about it. This can give map editors hints as to what architecture to align, textures to change, etc.];
  2310. docremark [If "showfocuscubedetails" is enabled, "showmip" stats on the HUD are hidden.];
  2311. docref [calcmipstats];
  2312. docref [showfocuscubedetails];
  2313. docident [showmodelclipping] [Show mapmodel clipping during edit mode.];
  2314. docargument [N] [-] [min 0/max 1/default 0];
  2315. docident [showplayerstarts] [Show all playerstarts in edit mode.];
  2316. docargument [N] [0: hide, 1: show] [min 0/max 1/default 0];
  2317. docremark [Set showplayerstarts to "1" to see a playermodel rendered at all playerstart entities.];
  2318. docident [showtagclips] [Show tagclips/tagplclips in edit mode.];
  2319. docargument [N] [-] [min 0/max 1/default 1];
  2320. docident [shrinkselection] [Decreases the size of the current selection by N cubes on all sides.];
  2321. docargument [N] [number of cubes] [integer] [0];
  2322. docremark [Instead of manually executing this command, you can bind "domodifier 11" to a key. While holding this key you can expand/shrink the current selection with the mouse wheel.];
  2323. docref [select];
  2324. docref [addselection];
  2325. docref [expandselection];
  2326. docident [slope] [Makes a slope out of the current selection.];
  2327. docargument [X] [x delta step] [integer] [0];
  2328. docargument [Y] [y delta step] [integer] [0];
  2329. docremark [The selection must be a heightfield before this command can be used. The steps specify the slope with the red vertex as left-top, i.e. "slope 1 2" will make a slope that increases just 1 step from left to right, and is slightly steeper from top to bottom. "slope -6 0" decreases steeply from left to right, and does not slope at all from top to bottom. Note that like the vdelta command, an increasing vdelta goes further away from the player, regardless of floor or ceiling.];
  2330. docref [enlargearchslopeselections];
  2331. docident [solid] [Makes the current selection all solid (i.e. wall) or all non-solid.];
  2332. docargument [B] [an integer denoting the solid-ness] [0 (non-solid), 1..* (solid)] [0];
  2333. docremark [This operation retains floor/ceiling heights/textures while swapping between the two. Default keys f and g respectively.];
  2334. docident [sortmapmodelslots] [Sorts all mapmoodel slots alphabetically and merges identical slots.];
  2335. docargument [nosort] [do not sort the list alphabetically] [] [0];
  2336. docargument [nomerge] [do not merge any slots] [] [0];
  2337. docargument [mergeused] [merge used and unused (identical) slots freely] [] [0];
  2338. docremark [By default, the list is sorted and only unused identical (with the same model and parameters) slots are merged. The keywords can be combined in any order. "nomerge" takes priority over "mergeused".];
  2339. docexample [sortmapmodelslots] [- sorts the mapmodel slot list alphabetically and merge unused identical slots. Merging an unused slot is pretty much the same as deleting it, so this command sorts the list and removes unneeded double entries];
  2340. docexample [sortmapmodelslots nosort] [- merges (deletes) unused double entries in the mapmodel slot list];
  2341. docexample [sortmapmodelslots nosort mergeused] [- merges double entries in the mapmodel slot list. If two identical entries are used in the map, all uses are mapped to the new combined slot. This leaves no visual changes on the map. Should be avoided, if mapmodel slots have been renamed manually - and the renaming isn't finished yet];
  2342. docexample [sortmapmodelslots mergeused] [- sorts the mapmodel slot list and merges all double entries];
  2343. docref [mapmodel];
  2344. docref [sorttextureslots];
  2345. docref [sortmapsoundslots];
  2346. docident [sortmapsoundslots] [Sorts all mapsound slots alphabetically and merges identical slots.];
  2347. docargument [nosort] [do not sort the list alphabetically] [] [0];
  2348. docargument [nomerge] [do not merge any slots] [] [0];
  2349. docargument [mergeused] [merge used and unused (identical) slots freely] [] [0];
  2350. docremark [By default, the list is sorted and only unused identical slots are merged. The keywords can be combined in any order. "nomerge" takes priority over "mergeused".];
  2351. docremark [See examples in the "sortmapmodelslots" reference.];
  2352. docref [mapsound];
  2353. docref [sortmapmodelslots];
  2354. docref [sorttextureslots];
  2355. docident [sorttextureslots] [Sorts all texture slots alphabetically and merges identical slots.];
  2356. docargument [nosort] [do not sort the list alphabetically] [] [0];
  2357. docargument [nomerge] [do not merge any slots] [] [0];
  2358. docargument [mergeused] [merge used and unused (identical) slots freely] [] [0];
  2359. docremark [By default, the list is sorted (besides the first five) and only unused identical (with the same texture and scale factor) slots are merged. The keywords can be combined in any order. "nomerge" takes priority over "mergeused".];
  2360. docremark [It allows to manually sort also the first few slots by adding the slot number to move to the slots #1, #2, #3, #4 (for example "sorttextureslots 11 12 13 14" will move slot #11 to slot #1, #12 to #2, #13 to #3 and #14 to #4, and sort the rest texture slots).];
  2361. docremark [See examples in the "sortmapmodelslots" reference.];
  2362. docref [texture];
  2363. docref [sortmapmodelslots];
  2364. docref [sortmapsoundslots];
  2365. docident [stairs] [Places stairs in all selections.];
  2366. docargument [xs] [step width in x-direction] [] [0];
  2367. docargument [ys] [step width in y-direction] [] [0];
  2368. docremark ["xs" and "ys" determine the step width in x- and y-direction.];
  2369. docident [textureslotbyname] [Returns the list of numbers of all texture slots which use that texture file.];
  2370. docargument [N] [texture filename] [] [0];
  2371. docref [texture];
  2372. docref [textureslotusage];
  2373. docref [textureslotusagelist];
  2374. docref [edittextureslot];
  2375. docref [deletetextureslot];
  2376. docref [edittexturestack];
  2377. docident [textureslotusage] [Returns a list of mapmodels who use that texture as skin.];
  2378. docargument [N] [texture slot number] [0..255] [0];
  2379. docremark [If no mapmodel uses the texture, but world geometry does, a string of whitespace is returned. If the mapmodel is unused, an empty string is returned.];
  2380. docref [texture];
  2381. docref [textureslotusagelist];
  2382. docref [textureslotbyname];
  2383. docref [edittextureslot];
  2384. docref [deletetextureslot];
  2385. docref [edittexturestack];
  2386. docident [textureslotusagelist] [Returns a list of 256 numbers representing the number of uses for every texture slot.];
  2387. docargument [W] [what] [onlygeometry, onlymodels, onlymostvisible] [0];
  2388. docremark [If "what" is "onlygeometry", the uses as map model skin do not count.];
  2389. docremark [If "what" is "onlymodels", the uses in map geometry do not count.];
  2390. docremark [It returns two values per slot: usage and visibility.];
  2391. docremark [If "what" is "onlymostvisible", instead of the regular list, a list of only the most used wall, floor, ceiling and upper wall textures (alternating with the keywords) is returned.];
  2392. docexample [echo (textureslotusagelist onlymostvisible)] [Output: wall 211 floor 45 ceiling 0 "upper wall" 79];
  2393. docref [texture];
  2394. docref [textureslotusage];
  2395. docref [textureslotbyname];
  2396. docref [edittextureslot];
  2397. docref [deletetextureslot];
  2398. docref [edittexturestack];
  2399. docident [toggleclosestentpin] [Toggles the pin on the "closest entity" selector.];
  2400. docremark [The HUD will indicate the lock by showing "pinned" instead of "closest" entity. All actions, that would otherwise affect the closest entity, will affect the pinned entity instead. Deleting the locked entity will unlock it.];
  2401. dockey [MOUSE3] [middle mouse button] [toggles the pin on the closest entity];
  2402. docref [getclosestent];
  2403. docident [toggleocull] [Turns occlusion culling on and off.];
  2404. docremark [The reason one may want to turn it off is to get an overview of the map from above, without having all occluded bits stripped out.];
  2405. docident [transformclipentities] [Transforms all full height clip entities to tag clips.];
  2406. docref [edittagclip];
  2407. docident [undelent] [Restores deleted entity.];
  2408. docargument [I] [index] [] [0];
  2409. docremark [If no index is specified, the last deleted entity is restored. If an index is given, the specified entity from the list of deleted entities is restored.];
  2410. docremark [BACKSPACE in combination with editmeta undeletes the last deleted entity.];
  2411. docremark [BACKSPACE in combination with editmeta2 brings up the menu "deleted entities".];
  2412. docref [getdeletedentities];
  2413. docref [unlistdeletedentity];
  2414. docref [deleteentity];
  2415. docref [editmeta];
  2416. docref [editmeta2];
  2417. docident [undo] [Multi-level undo of any of the changes caused by editing operations.];
  2418. docremark [With editmeta pressed it also restores player position and selects the affected area.];
  2419. dockey [U] [] [];
  2420. docref [redo];
  2421. docref [undolevel];
  2422. docref [undomegs];
  2423. docref [editmeta];
  2424. docident [undolevel] [Returns the number of undo steps that can be undone.];
  2425. docargument [L] [level] [integer] [0];
  2426. docremark [If argument "level" is given, as many steps are undone, until "level" steps remain.];
  2427. docremark [Unless memory limits delete states, undolevel commands can be undone with "redo".];
  2428. docexample [echo (undolevel)] [- prints number of previous editing steps, for example "55". Do some editing and:];
  2429. docexample [undolevel 55] [- undoes all changes to restore the previous state (if that state is still in memory)];
  2430. docref [undo];
  2431. docref [redo];
  2432. docref [undomegs];
  2433. docident [undomegs] [Sets the number of megabytes used for the undo buffer.];
  2434. docargument [N] [number of megabytes] [integer min 0/max 50/default 5];
  2435. docremark [Undo's work for any size areas, so the amount of undo steps per megabyte is more for small areas than for big ones (a megabyte fits 280 undo steps on a 16x16 area, but only 4 steps on a 128x128 area).];
  2436. docref [undo];
  2437. docref [undolevel];
  2438. docident [unlistdeletedentity] [Removes entities from the list of deleted entities.];
  2439. docargument [W] [which] [[a number], all or last] [0];
  2440. docremark [If <which> is a number, the specified entry from the list of deleted entities gets removed.];
  2441. docremark [If <which> is "all", the whole list of deleted entities gets deleted.];
  2442. docremark [If <which> is "last" the last deleted entity is removed from the list of deleted entities.];
  2443. docremark [Returns the number of entities on the list of deleted entities (even if the parameter <which> was unknown or not specified).];
  2444. docref [getdeletedentities];
  2445. docref [undelent];
  2446. docref [deleteentity];
  2447. docident [unsavededits] [Holds the number of unsaved edits.];
  2448. docident [vdelta] [Changes the vdelta value of the current selection.];
  2449. docargument [N] [vdelta value] [] [0];
  2450. docremark [Note that unlike all other editing functions, this function doesn't affect a cube, but its top-left vertex (market by the dot in the editing cursor). So to edit a N * M heightfield, you will likely have to edit the vdelta of (N+1) * (M+1) cubes, i.e. you have to select 1 row and 1 column more in the opposite direction of the red dot to affect all the vertices of a heightfield of a given size (try it, it makes sense :)];
  2451. docremark [A floor delta offsets vertices to beneath the level set by editheight (and a ceil delta to above). Delta offsets have a precision of a quarter of a unit, however you should use non-unitsize vertices only to touch other such vertices. Default keys are 8 and 9 to decrease/increase the vdelta.];
  2452. docident [waterlevel] [Sets the global water level for the map.];
  2453. docargument [H] [the water level] [float, -10000="no water" min -128/max 127/default -10000];
  2454. docremark [Every cube that has a lower floor than the water level will be rendered with a nice wavy water alpha texture. Water physics will be applied to any entity located below it.];
  2455. docremark [Performance notes: water is rendered for a whole square encapsulating all visible water areas in the map (try flying above the map in edit mode to see how). So the most efficient water is a single body of water, or multiple water areas that are mostly not visible from each other. Players can influence how accurate the water is rendered using the "watersubdiv" command (map config).];
  2456. docref [watersubdiv];
  2457. docident [xmap_delete] [Deletes the named snapshot.];
  2458. docargument [N] [nickname] [] [0];
  2459. docref [xmap_list];
  2460. docident [xmap_delete_backup] [Deletes the backup xmap.];
  2461. docref [xmap_list];
  2462. docident [xmap_keep_backup] [Moves the backup xmap to a regular named spot.];
  2463. docargument [N] [nickname] [] [0];
  2464. docref [xmap_list];
  2465. docident [xmap_list] [Lists all xmaps currently in memory.];
  2466. docref [xmap_store];
  2467. docref [xmap_restore];
  2468. docref [xmap_delete];
  2469. docref [xmap_delete_backup];
  2470. docref [xmap_keep_backup];
  2471. docref [xmap_rename];
  2472. docref [enumtodoentities];
  2473. docident [xmap_rename] [Changes the nickname of the xmap.];
  2474. docargument [O] [old nickname] [] [0];
  2475. docargument [N] [new nickname] [] [0];
  2476. docref [xmap_list];
  2477. docident [xmap_restore] [Restores the xmap snapshot.];
  2478. docargument [N] [nickname] [] [0];
  2479. docremark [1. If nickname is not given, it restores the last automatic backup snapshot. Automatic snapshots are taken:];
  2480. docremark [a) before a snapshot is restored,];
  2481. docremark [b) before a new map is loaded (if there were unsaved edits on the map) and];
  2482. docremark [c) when the game ends (if there were unsaved edits).];
  2483. docremark [2. If nickname is given, the command restores the named snapshot, it also creates a backup snapshot of the current editing data.];
  2484. docref [xmap_list];
  2485. docref [xmap_store];
  2486. docident [xmap_store] [Creates a snapshot and stores it under the given nickname.];
  2487. docargument [N] [nickname] [] [0];
  2488. docremark [Nicknames have to qualify as valid filenames.];
  2489. docref [xmap_list];
  2490. docref [xmap_restore];
  2491. docsection [Menus]
  2492. docident [browsefiledesc] [Toggles getting descriptive text from CGZ or DMO files in menudirlist.];
  2493. docargument [B] [] [min 0/max 1/default 1];
  2494. docref [menudirlist];
  2495. docident [chmenumdl] [Changes the menu model of a specified menu.];
  2496. docargument [N] [the name of the menu] [] [0];
  2497. docargument [M] [the (new) model] [] [0];
  2498. docargument [A] [the animation to play] [] [0];
  2499. docargument [R] [the rotation speed] [] [0];
  2500. docargument [S] [the scale] [] [0];
  2501. docref [menumdl];
  2502. docident [chmenutexture] [Displays a texture on the right side of a menu.];
  2503. docargument [N] [the name of the menu] [] [0];
  2504. docargument [P] [the path to the texture] [] [0];
  2505. docargument [T] [the title of the picture] [] [0];
  2506. docremark [By specifying a title string in the third argument to chmenutexture, a picture is rendered instead of a texture. The title string is displayed instead of the texture resolution. The variable "menupicturesize" holds a size modifier for pictures, similar to "menutexturesize".];
  2507. docref [menutexturesize];
  2508. docref [menupicturesize];
  2509. docident [closecurmenu] [Closes the currently open menu.];
  2510. docremark [If more than one menu is open, only closes the topmost menu on the stack.];
  2511. docref [curmenu];
  2512. docref [refreshcurmenu];
  2513. docref [refreshcurmenudelayed];
  2514. docident [closemenu] [Closes the specified menu if it is open.];
  2515. docargument [N] [the name of a previously defined menu] [] [0];
  2516. docremark [If it is open multiple times in the stack only the topmost instance will be closed!];
  2517. docref [newmenu];
  2518. docref [showmenu];
  2519. docref [delmenu];
  2520. docref [closecurmenu];
  2521. docident [curmenu] [Returns the name of the currently open menu.];
  2522. docremark [If more than one menu is open, only the name of the topmost menu on the stack is returned.];
  2523. docref [closecurmenu];
  2524. docref [refreshcurmenu];
  2525. docref [refreshcurmenudelayed];
  2526. docident [delmenu] [Deletes the entire contents (all menu items) of the given menu.];
  2527. docargument [N] [the name of a previously defined menu] [] [0];
  2528. docref [newmenu];
  2529. docref [showmenu];
  2530. docref [closemenu];
  2531. docident [hidebigmenuimages] [Hide big images in menus.];
  2532. docargument [N] [0: show, 1: hide] [min 0/max 1/default 0];
  2533. docident [maploaditemlength] [Changes at what position to truncate the map title string.];
  2534. docargument [N] [chars] [min 0/max 255/default 46];
  2535. docref [menuitemmapload];
  2536. docident [menucanblink] [Toggles the ability for menutext to have the blinking bit set.];
  2537. docargument [T] [0 = Off, any other integer = On] [Any integer is valid, positive or negative] [0];
  2538. docremark [The global setting of 'allowblinkingtext' overrides this.];
  2539. docref [allowblinkingtext];
  2540. docident [menudirlist] [Creates a menu listing of files from a path and perform an action on them when clicked.];
  2541. docargument [P] [the directory path from the assaultcube root] [] [0];
  2542. docargument [E] [file extension] [] [0];
  2543. docargument [A] [action] [] [0];
  2544. docargument [I] [show image from a file] [0 or 1] [0];
  2545. docargument [S] [string - search it in map/demo filenames and descriptions and show only matched files (case insensitive)] [] [0];
  2546. docremark [Use this inside menu definitions, almost always as the only command of that menu.];
  2547. docremark [Compare the usage inside config/menus.cfg];
  2548. docexample [menudirlist "packages/maps" "cgz" "map $arg1"] [will create a list of maps and load them when clicked];
  2549. docref [newmenu];
  2550. docref [browsefiledesc];
  2551. docident [menufont] [Switches the font in which the menu is displayed.];
  2552. docargument [F] [font] [default, mono, serif] [0];
  2553. docref [font];
  2554. docident [menuheader] [Adds header and/or footer to the menu.];
  2555. docargument [H] [header] [] [0];
  2556. docargument [F] [footer] [] [0];
  2557. docident [menuinit] [Specifies commands to be executed when a menu opens.];
  2558. docargument [C] [The code to execute on init] [] [0];
  2559. docremark [This command should be placed after newmenu.];
  2560. docref [newmenu];
  2561. docident [menuinitselection] [Defines the initial selection for a menu.];
  2562. docargument [A] [line number] [] [0];
  2563. docident [menuitem] [Creates a new menuitem.];
  2564. docargument [T] [the text content in menu line] [] [0];
  2565. docargument [A] [the command to execute on selection of the menuitem] [] [0];
  2566. docargument [H] [the command to execute upon rolling over the menuitem] [] [0];
  2567. docargument [D] [the description of menu item, which is displayed on the menu footer] [] [0];
  2568. docremark [Upon activating the menuitem, the associated command will be executed. (See config/menus.cfg for examples). If the command argument is omitted, then it will be set to the same value as the description. If -1 is specified instead of the command to execute, then no command is executed when activating the item. If the rollover option is used, the menuitem will execute that command when selecting (but not activating) the menuitem.];
  2569. docremark [(Note: To activate the menu item, select it, and either: Click, press SPACE or press ENTER/Return).];
  2570. docref [newmenu];
  2571. docident [menuitemaltfont] [Displays a menu line with a text which may contain chars from an alternate font.];
  2572. docargument [N] [the name of the alternate font] [default, mono, serif, huddigits, serverquality, bargraphs, radaricons] [0];
  2573. docargument [T] [text content in menu line] [] [0];
  2574. docargument [A] [action] [] [0];
  2575. docargument [H] [hoveraction] [] [0];
  2576. docargument [D] [description displayed on menu footer] [] [0];
  2577. docremark [Chars from the alternate font have to be marked with "\a". Alternate font chars have no width and are just rendered above the following text. Use spaces to counter that.];
  2578. docref [font];
  2579. docident [menuitemcheckbox] [Creates a checkbox menu item.];
  2580. docargument [T] [text] [] [0];
  2581. docargument [V] [value] [] [0];
  2582. docargument [A] [action] [] [0];
  2583. docident [menuitemeditkeyinput] [Menuitem which displays "text" and all keys, that bind "bindcmd"- in edit mode.];
  2584. docargument [T] [text] [] [0];
  2585. docargument [B] [bind command] [] [0];
  2586. docref [menuitemkeyinput];
  2587. docref [menuitemspectkeyinput];
  2588. docident [menuitemimage] [];
  2589. docargument [N] [image filename] [] [0];
  2590. docargument [T] [text] [] [0];
  2591. docargument [A] [action] [] [0];
  2592. docargument [H] [hoveraction] [] [0];
  2593. docident [menuitemkeyinput] [Menuitem which displays "text" and all keys, that bind "bindcmd"- in game mode.];
  2594. docargument [T] [text] [] [0];
  2595. docargument [B] [bind command] [] [0];
  2596. docref [menuitemeditkeyinput];
  2597. docref [menuitemspectkeyinput];
  2598. docident [menuitemmapload] [Menuitem that loads a map, displays the title and the preview or a default image.];
  2599. docargument [M] [map] [] [0];
  2600. docargument [T] [text] [] [0];
  2601. docref [maploaditemlength];
  2602. docident [menuitemslider] [];
  2603. docargument [T] [text] [] [0];
  2604. docargument [L] [min] [] [0];
  2605. docargument [U] [max] [] [0];
  2606. docargument [V] [value] [] [0];
  2607. docargument [S] [step] [] [0];
  2608. docargument [D] [display] [] [0];
  2609. docargument [A] [action] [] [0];
  2610. docident [menuitemspectkeyinput] [Menuitem which displays "text" and all keys, that bind "bindcmd"- in spectate mode.];
  2611. docargument [T] [text] [] [0];
  2612. docargument [B] [bind command] [] [0];
  2613. docref [menuitemkeyinput];
  2614. docref [menuitemeditkeyinput];
  2615. docident [menuitemtextinput] [Creates a new menuitem with text input field.];
  2616. docargument [T] [text] [] [0];
  2617. docargument [V] [value] [] [0];
  2618. docargument [A] [action] [] [0];
  2619. docargument [H] [hoveraction] [] [0];
  2620. docargument [M] [maxchars] [] [0];
  2621. docremark [If the last line of a menu is a text input item, pressing enter in that line will not only execute the assigned command, but also close the menu.];
  2622. docident [menuitemvar] [Creates a new menuitem with variable content.];
  2623. docargument [N] [the cubescript to generate the menuitem description] [] [0];
  2624. docargument [A] [the command to execute on selection of the menuitem] [] [0];
  2625. docargument [H] [the command to execute upon rolling over the menuitem] [] [0];
  2626. docremark [Like 'menuitem', but the menuitem description will be the result of an evaluation, everytime the menu gets displayed.];
  2627. docref [newmenu];
  2628. docref [menuitem];
  2629. docident [menumdl] [Specifies a model to render while displaying the last added menu.];
  2630. docargument [M] [the model] [] [0];
  2631. docargument [A] [the animation to play] [] [0];
  2632. docargument [R] [the rotation speed] [] [0];
  2633. docargument [S] [the scale] [] [0];
  2634. docident [menupicturesize] [Changes the size of pictures displayed in menus.];
  2635. docargument [N] [size factor] [min 0.1f/max 5.0f/default 1.6f];
  2636. docref [chmenutexture];
  2637. docref [menutexturesize];
  2638. docident [menurenderoffset] [Moves a menu away from the middle of the screen.];
  2639. docargument [X] [x-offset] [] [0];
  2640. docargument [Y] [y-offset] [] [0];
  2641. docremark [Values of "0" represent half the screen width and height.];
  2642. docident [menuselection] [Selects a line in a menu.];
  2643. docargument [A] [menu name] [] [0];
  2644. docargument [B] [line number] [] [0];
  2645. docident [menuselectionbgcolor] [Defines the background color for the menu selection bar.];
  2646. docargument [R] [red] [0..100] [0];
  2647. docargument [G] [green] [0..100] [0];
  2648. docargument [B] [blue] [0..100] [0];
  2649. docargument [A] [alpha] [0..100] [0];
  2650. docident [menuselectiondescbgcolor] [Defines the background color for the description of selected active menu items (checkbox, slider, text input).];
  2651. docargument [R] [red] [0..100] [0];
  2652. docargument [G] [green] [0..100] [0];
  2653. docargument [B] [blue] [0..100] [0];
  2654. docargument [A] [alpha] [0..100] [0];
  2655. docident [menuselectionpersistent] [Enables persistent selections for the currently displayed menu.];
  2656. docremark [When enabled, it restores a previously saved selection.];
  2657. docremark [Probably most efficient inside "menuinit". The position is restored during execution of this command, so the menu entry has to already exist and the alias with the last position has to be read from saved.cfg. In automatically created menus it may be necessary to execute the command with a short delay.];
  2658. docident [menutexturesize] [Changes the size of textures displayed in menus (mostly for testing purposes).];
  2659. docargument [N] [size factor] [min 0.1f/max 5.0f/default 1.0f];
  2660. docref [chmenutexture];
  2661. docref [menupicturesize];
  2662. docident [newmenu] [Creates a new menu.];
  2663. docargument [N] [The name of the menu] [] [0];
  2664. docremark [All menu commands placed after newmenu (i.e. menuitem, menuitemcheckbox, etc) are added into the menu until another "newmenu" command is specified.];
  2665. docref [menuitem];
  2666. docident [refreshcurmenu] [Refreshes (closes and opens again) the current menu.];
  2667. docref [curmenu];
  2668. docref [refreshcurmenudelayed];
  2669. docref [closecurmenu];
  2670. docident [refreshcurmenudelayed] [Refreshes (closes and opens again, after very short delay) the current menu.];
  2671. docref [curmenu];
  2672. docref [refreshcurmenu];
  2673. docref [closecurmenu];
  2674. docident [showmenu] [Displays the specified menu.];
  2675. docargument [N] [the name of a previously defined menu] [] [0];
  2676. docremark [The menu allows the user to pick an item with the cursor keys. Upon pressing return, the associated action will be executed. Pressing ESC will cancel the menu.];
  2677. docref [newmenu];
  2678. docref [closemenu];
  2679. docref [delmenu];
  2680. docident [wrapslider] [If wrapslider is set the menuitemslider will toggle to the min/max value if at end of the range.];
  2681. docargument [N] [0 off, 1 on] [min 0/max 1/default 0];
  2682. docsection [Heads-Up Display]
  2683. docident [accuracy] [Sets whether or not to display the accuracy information window.];
  2684. docargument [N] [1: on, 0: off] [min 0/max 1/default 0];
  2685. docremark [Accuracy is displayed for current weapon and only then, if scoreboard is turned on.];
  2686. docref [accuracyinfo];
  2687. docref [accuracyreset];
  2688. docident [accuracyinfo] [Shows in the console accuracy of all used weapons.];
  2689. docref [accuracy];
  2690. docident [accuracyreset] [Resets accuracy counters.];
  2691. docref [accuracy];
  2692. docident [altconsize] [Sets the percent of screen height for text lines on an alternate F11 history display.];
  2693. docargument [V] [] [min 0/max 100/default 0];
  2694. docref [consize];
  2695. docref [fullconsize];
  2696. docident [blankouthud] [Hides most of elements on the HUD for X frames.];
  2697. docargument [X] [blank out the HUD] [min 0/max 10000/default 0];
  2698. docremark [Used for "clean" screenshot. The parameter is "frames", so for example 1000 will take 20 seconds at 50 fps or second at 1000 fps.];
  2699. docref [cleanshot];
  2700. docident [clearminimap] [Recreates the minimap for the current map.];
  2701. docref [minimapres];
  2702. docident [cncolumncolor] [Colour of CN column in scoreboard.];
  2703. docargument [C] [color] [0 (green), 1 (blue), 2 (yellow), 3 (red), 4 (gray), 5 (white), 6 (dark brown), 7 (dark red), 8 (purple), 9 (orange) min 0/max 9/default 5];
  2704. docident [conalpha] [Sets the transparency of the console.];
  2705. docargument [N] [Alpha value] [min 0/max 255/default 255];
  2706. docident [confade] [Sets how many seconds before the console text rolls (disappears) up the screen.];
  2707. docargument [V] [time before the text rolls up] [min 0/max 60/default 20];
  2708. docident [consize] [Sets how many lines of text the console displays.];
  2709. docargument [V] [] [min 0/max 100/default 6];
  2710. docref [altconsize];
  2711. docref [fullconsize];
  2712. docident [crosshairfx] [Turns on or off crosshair effects.];
  2713. docargument [V] [turn off all effects] [0] [0];
  2714. docargument [] [turn on all effects (color and size change)] [1 (default)] [0];
  2715. docargument [] [turn on color change/turn off size change] [2] [0];
  2716. docargument [] [turn off color change/turn on size change] [3] [0];
  2717. docremark [When on, the crosshair will go orange when health is 50 or red when is 25. Size change of crosshair occurs when player holds assault rifle and has more than 3 shots in a row.];
  2718. docident [crosshairsize] [Sets the size of your crosshair.];
  2719. docargument [N] [the crosshair size] [min 0/max 50/default 15];
  2720. docremark [The crosshair is turned off entirely if the size is set to 0.];
  2721. docident [crosshairteamsign] [Turns on/off display of team warning crosshair.];
  2722. docargument [V] [enable/disable warning crosshair] [min 0/max 1/default 1];
  2723. docident [damageindicatoralpha] [Sets the level of transparency of the damage indicator, 100 = totally solid.];
  2724. docargument [V] [damage indicator alpha value] [min 1/max 100/default 50];
  2725. docident [damageindicatordist] [Sets the separation of the arrows in the damage indicator.];
  2726. docargument [V] [damage indicator separation size] [min 0/max 10000/default 500];
  2727. docident [damageindicatorsize] [Sets the size of the damage indicator.];
  2728. docargument [V] [damage indicator icon size] [min 0/max 10000/default 200];
  2729. docident [damageindicatortime] [Sets how long the damage indicator stays on screen.];
  2730. docargument [V] [damage indicator display time] [min 1/max 10000/default 1000];
  2731. docident [damagescreen] [Show the blood-spat overlay when receiving damage?];
  2732. docargument [N] [damagescreen] [0 (false), 1 (true) min 0/max 1/default 1];
  2733. docident [damagescreenalpha] [If overlay of blood-spat, at what blending (transparency) level?];
  2734. docargument [N] [damagescreen transparency] [min 1/max 100/default 45];
  2735. docident [damagescreenfactor] [If overlay of blood-spat, use which factor?];
  2736. docargument [N] [damagescreen factor] [min 1/max 100/default 7];
  2737. docident [damagescreenfade] [If overlay of blood-spat, at what speed does it fade?];
  2738. docargument [N] [damagescreen fade] [min 0/max 1000/default 125];
  2739. docident [dbgpos] [Displays local player's current x,y,z position in map, showstats 1 must be enabled.];
  2740. docargument [V] [display current position] [min 0/max 1/default 0];
  2741. docref [showstats];
  2742. docident [fullconsize] [Sets the percent of screen height for text lines on the F11 history display.];
  2743. docargument [V] [] [min 0/max 100/default 40];
  2744. docref [consize];
  2745. docref [altconsize];
  2746. docident [gametimedisplay] [Show the game-time clock on the HUD.];
  2747. docargument [D] [off (0), count backward (1), count forward (2)] [min 0/max 2/default 1];
  2748. docremark [The clock can count backward (from time limit to 0s) or forward (from 0s to time limit).];
  2749. docref [wallclockformat];
  2750. docident [hidecompass] [Turns on/off the radar compass.];
  2751. docargument [V] [enable/disable radar compass] [min 0/max 1/default 0];
  2752. docident [hideconsole] [Turns on or off the display of console text.];
  2753. docargument [V] [enable/disable console text] [min 0/max 1/default 0];
  2754. docident [hidedamageindicator] [Turns on/off the damage indicator.];
  2755. docargument [V] [enable/disable damage indicator] [min 0/max 1/default 0];
  2756. docident [hidehudequipment] [Turns on or off the display of equipment icons.];
  2757. docargument [V] [enable/disable equipment icons] [min 0/max 1/default 0];
  2758. docident [hidehudmsgs] [Turns on or off the display of messages at the bottom of the screen.];
  2759. docargument [V] [enable/disable messages] [min 0/max 1/default 0];
  2760. docident [hidektfindicator] [Turns on or off the display of ktf flag direction indicator.];
  2761. docargument [V] [enable/disable ktf indicator] [min 0/max 1/default 0];
  2762. docref [ktfindicatoralpha];
  2763. docident [hideradar] [Turns on or off the display of the on-screen radar.];
  2764. docargument [V] [enable/disable radar] [min 0/max 1/default 0];
  2765. docident [hidespecthud] [Turns on or off the display of spectator status.];
  2766. docargument [V] [enable/disable spectator status] [min 0/max 1/default 0];
  2767. docident [hideteam] [Turns on or off the display of local player team icons.];
  2768. docargument [V] [enable/disable team icons] [min 0/max 1/default 0];
  2769. docident [hideteamscorehud] [Turns on or off the display of team score icons.];
  2770. docargument [V] [enable/disable flag icons] [min 0/max 1/default 0];
  2771. docident [hidevote] [Turns on or off the display of vote icons.];
  2772. docargument [V] [0=on; 1=on, but hide after own vote; 2=off] [min 0/max 2/default 0];
  2773. docident [hudextras] [Show extra gameplay messages on certain events if connected to a server.];
  2774. docargument [] [] [0 (off)] [0];
  2775. docargument [] [] [1 (show extra messages in the console)] [0];
  2776. docargument [] [] [2 (show extra messages in the console and on the HUD)] [0];
  2777. docargument [] [] [3 (SPAM extra messages in the console and on the HUD)] [0];
  2778. docargument [N] [enable/disable extra gameplay messages] [min 0/max 3/default 0];
  2779. docref [consize];
  2780. docref [hideconsole];
  2781. docref [hidehudmsgs];
  2782. docident [hudgun] [Turns on or off the display of the current selected gun.];
  2783. docargument [V] [show/hide guns 3D models] [min 0/max 1/default 1];
  2784. docident [ktfindicatoralpha] [Sets the level of transparency of ktf flag direction indicator, 100 = totally solid.];
  2785. docargument [V] [ktf indicator alpha value] [min 1/max 100/default 70];
  2786. docref [hidektfindicator];
  2787. docident [minimapres] [Sets the resolution for the minimap.];
  2788. docargument [N] [the resolution] [min 7/max 10/default 9];
  2789. docref [clearminimap];
  2790. docident [oldfashionedgunstats] [Shows ammo statistics like in version 1.0.];
  2791. docargument [N] [0: new, 1: old] [min 0/max 1/default 0];
  2792. docident [radarentsize] [Sets the icon size of the players shown in the radar and the minimap.];
  2793. docargument [V] [size of icons inside radar] [min 4/max 64/default 12];
  2794. docident [radarheight] [Changes at what height you are floating in the radar-view.];
  2795. docargument [H] [height] [min 5/max 500/default 150];
  2796. docident [sc_clientnum] [Sets the order priority for the column cn on the scoreboard.];
  2797. docargument [V] [low priority: left, high priority: right] [min 0/max 100/default 6];
  2798. docident [sc_deaths] [Sets the order priority for the column deaths or disables it on the scoreboard.];
  2799. docargument [V] [-1: disable, low priority: left, high priority: right] [min -1/max 100/default 2];
  2800. docident [sc_flags] [Sets the order priority for the column flags on the scoreboard.];
  2801. docargument [V] [low priority: left, high priority: right] [min 0/max 100/default 0];
  2802. docident [sc_frags] [Sets the order priority for the column frags on the scoreboard.];
  2803. docargument [V] [low priority: left, high priority: right] [min 0/max 100/default 1];
  2804. docident [sc_lag] [Sets the order priority for the column pj/ping or disables it on the scoreboard.];
  2805. docargument [V] [-1: disable, low priority: left, high priority: right] [min -1/max 100/default 5];
  2806. docident [sc_name] [Sets the order priority for the column name on the scoreboard.];
  2807. docargument [V] [low priority: left, high priority: right] [min 0/max 100/default 7];
  2808. docident [sc_ratio] [Sets the order priority for the column ratio or disables it on the scoreboard.];
  2809. docargument [V] [-1: disable, low priority: left, high priority: right] [min -1/max 100/default -1];
  2810. docident [sc_score] [Sets the order priority for the column score or disables it on the scoreboard.];
  2811. docargument [V] [-1: disable, low priority: left, high priority: right] [min -1/max 100/default 4];
  2812. docident [showmap] [Determines if the mini-map should be shown on screen.];
  2813. docargument [B] [show mini-map] [min 0/max 1/default 0];
  2814. docident [showmapbackdrop] [Determines whether to have a see-through map overview (0), or render it on a black backdrop (1) or a combination of both (2).];
  2815. docargument [B] [backdrop-style] [min 0/max 2/default 0];
  2816. docident [showmapbackdroptransparency] [Transparency of the black map backdrop (in percent) rendered if showmapbackdrop is set to 2.];
  2817. docargument [T] [transparency] [min 0/max 100/default 75];
  2818. docref [showmapbackdrop];
  2819. docident [showscores] [Shows or hides the scores.];
  2820. dockey [TAB] [] [];
  2821. docident [showscoresondeath] [Determines if scores should be shown on death.];
  2822. docargument [V] [] [min 0/max 1/default 1];
  2823. docident [showspeed] [Enables or disables showing the player's horizontal speed (vector).];
  2824. docargument [N] [0 off, 1 on] [min 0/max 1/default 0];
  2825. docident [showstats] [Turns on/off display of FPS/rendering statistics on the HUD.];
  2826. docargument [N] [0: Show no stats, 1: Only show FPS stats, 2: Show all stats] [min 0/max 2/default 1];
  2827. docident [showtargetname] [Enables or disables showing the player name on the HUD when in your crosshair.];
  2828. docargument [N] [0 off, 1 on] [min 0/max 1/default 1];
  2829. docident [specthudgun] [Turns on/off the display of the hudgun while spectating a player in first-person view.];
  2830. docargument [V] [show/hide hudgun when spectating] [min 0/max 1/default 1];
  2831. docremark [Works in demo mode as well.];
  2832. docident [toggleconsole] [Toggles the console.];
  2833. docident [votealpha] [Sets the transparency of the vote display.];
  2834. docargument [N] [Alpha value] [min 0/max 255/default 255];
  2835. docident [wallclockformat] [Show the wall clock with time (usually local, not game-time) on the HUD.];
  2836. docremark ["wallclockformat" alias should contain string in strftime format to show the clock with proper time. If the alias is empty, the wall clock is hidden.];
  2837. docref [gametimedisplay];
  2838. docsection [Visuals]
  2839. docident [aadynshadow] [Sets the size/resolution of the dynamic shadow data.];
  2840. docargument [] [the size] [min 0/max 3/default 2];
  2841. docident [aboveheadiconfadetime] [Time in milliseconds before the abovehead icon dissapears.];
  2842. docargument [V] [abovehead icon display time] [min 1/max 10000/default 2000];
  2843. docident [aboveheadiconsize] [Sets the size for the icon shown above a player using comunications voices.];
  2844. docargument [V] [Icon size] [min 0/max 1000/default 50];
  2845. docident [allowblinkingtext] [For toggling on the ability for any text to have the blinking bit set.];
  2846. docargument [T] [0 = Off, 1 = On] [min 0/max 1/default 0];
  2847. docref [menucanblink];
  2848. docident [animationinterpolationtime] [Sets the time available for interpolation between model animations.];
  2849. docargument [N] [the amount of milliseconds for the interpolation] [min 0/max 1000/default 100];
  2850. docident [aniso] [Sets the level of anisotropic filtering.];
  2851. docargument [V] [anisotropic filtering] [min 0/max 16/default 0];
  2852. docref [hwmaxaniso];
  2853. docident [ati_mda_bug] [];
  2854. docargument [V] [] [min 0/max 1/default 0];
  2855. docident [bilinear] [];
  2856. docargument [V] [] [min 0/max 1/default 1];
  2857. docident [blood] [Turns on and off the display of blood.];
  2858. docargument [V] [Enable/Disable blood] [min 0/max 1/default 1];
  2859. docident [bloodttl] [Sets the amount of time in milliseconds that blood is displayed on the ground.];
  2860. docargument [V] [Blood display time] [min 0/max 30000/default 10000];
  2861. docident [bullethole] [Turns on/off the display of bullet holes.];
  2862. docargument [V] [Enable/Disable bullet holes] [min 0/max 1/default 1];
  2863. docident [bulletholettl] [Specifies how long (in milliseconds) to display bullet holes.];
  2864. docargument [V] [Bullethole display time] [min 0/max 30000/default 10000];
  2865. docident [colorbits] [Sets the bits per pixel value.];
  2866. docargument [] [bits per pixel] [min 0/max 32/default 0];
  2867. docident [curfont] [Returns a name of the current font.];
  2868. docargument [N] [name of font] [default, mono, serif min /max /default default];
  2869. docref [font];
  2870. docref [setfont];
  2871. docident [depthbits] [Sets the bits for the depth buffer.];
  2872. docargument [] [depth pixels] [min 0/max 32/default 0];
  2873. docident [depthoffset] [];
  2874. docargument [V] [] [min /max /default 0.005f];
  2875. docident [desktoph] [Returns a height of the desktop resolution (or zero, if not available).];
  2876. docref [desktopw];
  2877. docref [screenres];
  2878. docident [desktopw] [Returns a width of the desktop resolution (or zero, if not available).];
  2879. docref [desktoph];
  2880. docref [screenres];
  2881. docident [dynlight] [Determines whether dynamic shadows and lights are rendered, provided just incase they slow your fps down too much.];
  2882. docargument [R] [0 off, 1 on] [min 0/max 1/default 1];
  2883. docident [dynshadow] [Sets the alpha value (transparency) for dynamic shadows.];
  2884. docargument [] [the alpha value] [min 0/max 100/default 40];
  2885. docident [dynshadowdecay] [];
  2886. docargument [V] [] [min 0/max 3000/default 1000];
  2887. docident [dynshadowquad] [];
  2888. docargument [V] [] [min 0/max 1/default 0];
  2889. docident [dynshadowsize] [Sets the display size of the dynamic shadows.];
  2890. docargument [] [the size] [min 4/max 8/default 5];
  2891. docident [font] [Loads a font texture to use as text within AssaultCube.];
  2892. docargument [NAME] [the font name] [] [0];
  2893. docargument [PATH] [the path to the font texture] [] [0];
  2894. docargument [A] [the default width] [] [0];
  2895. docargument [B] [the default height] [] [0];
  2896. docargument [C] [offset (co-ordinate X)] [] [0];
  2897. docargument [D] [offset (co-ordinate Y)] [] [0];
  2898. docargument [E] [offset (width)] [] [0];
  2899. docargument [F] [offset (height)] [] [0];
  2900. docref [fontchar];
  2901. docref [fontskip];
  2902. docref [setfont];
  2903. docref [menufont];
  2904. docref [scorefont];
  2905. docref [menuitemaltfont];
  2906. docident [fontchar] [Specifies a region of an image to be used as a font character.];
  2907. docargument [A] [X co-ordinates (from top-left corner)] [] [0];
  2908. docargument [B] [Y co-ordinates (from top-left corner)] [] [0];
  2909. docargument [C] [width] [] [0];
  2910. docargument [D] [height] [] [0];
  2911. docref [font];
  2912. docref [fontskip];
  2913. docident [fontskip] [Specifies, at what char the font definition proceeds.];
  2914. docargument [A] [the ascii code of the first char] [] [0];
  2915. docremark [For example "fontskip 48" means the ascii code of the first char in defined font will be "48", which is '0'; "fontskip 65" would start at 'A'.];
  2916. docref [font];
  2917. docref [fontchar];
  2918. docident [fov] [Sets the field of view (fov).];
  2919. docargument [N] [the FOV value] [min 75/max 120/default 90];
  2920. docident [fpsrange] [Sets the range of FPS (AC will adjust LOD to achieve it).];
  2921. docargument [A] [min] [] [0];
  2922. docargument [B] [max] [] [0];
  2923. docref [maxfps];
  2924. docident [fsaa] [Sets the level of full-scene antialiasing (FSAA).];
  2925. docargument [V] [full-scene antialiasing] [min -1/max 16/default 0];
  2926. docremark [-1 uses the default settings obtained from the system. 0 disables, 1..16 enables FSAA.];
  2927. docident [fullscreen] [Enables or disables fullscreen.];
  2928. docargument [] [fullscreen] [min 0/max 1/default 1];
  2929. docref [fullscreentoggle];
  2930. docident [fullscreentoggle] [Toggles fullscreen on or off.];
  2931. docref [fullscreen];
  2932. docident [gamma] [Sets the temporary (to next map start) hardware gamma value.];
  2933. docargument [N] [the gamma value] [min 30/max 300/default 100];
  2934. docremark [May not work if your card/driver doesn't support it.];
  2935. docident [getdisplayresolutions] [Returns a list of available screen resolutions.];
  2936. docref [screenres];
  2937. docident [gib] [Enables or disables the gib animation entirely.];
  2938. docargument [B] [off OR on] [0 (false), 1 (true) min 0/max 1/default 1];
  2939. docref [gibnum];
  2940. docref [gibspeed];
  2941. docref [gibsgore];
  2942. docref [gibttl];
  2943. docref [popdeadplayers];
  2944. docident [gibnum] [Sets the number of gibs to display when performing a "messy" kill (grenade, knife, sniper headshot).];
  2945. docargument [N] [number of gibs] [min 0/max 1000/default 6];
  2946. docremark [Larger values are more spectacular, but can slow down less powerful machines. Reducing gibttl may help in this case.];
  2947. docref [gibttl];
  2948. docref [gibspeed];
  2949. docident [gibsgore] [Adjusts gib/gibnum/gibspeed/gibttl variables collectively.];
  2950. docargument [] [] [0 - Off] [0];
  2951. docargument [] [] [1 - Default/Normal values] [0];
  2952. docargument [] [] [2 - Good] [0];
  2953. docargument [] [] [3 - Messy] [0];
  2954. docargument [] [] [4 - Unrealistic] [0];
  2955. docargument [N] [] [min 0/max 4/default 1];
  2956. docident [gibspeed] [Sets the velocity at which gibs will fly from a victim.];
  2957. docargument [N] [velocity] [min 1/max 100/default 30];
  2958. docref [gibnum];
  2959. docref [gibttl];
  2960. docident [gibttl] [Sets the time for gibs to live (in milliseconds), after which they will disappear.];
  2961. docargument [N] [time to live] [min 0/max 60000/default 7000];
  2962. docref [gibnum];
  2963. docref [gibspeed];
  2964. docident [glext] [Checks for the searchstring in all loaded extensions.];
  2965. docargument [E] [extension] [] [0];
  2966. docexample [if (glext shadow_funcs) [echo you have shadow functionality] [echo no shadows for you]] [];
  2967. docident [hidecustomskins] [];
  2968. docargument [B] [] [min 0/max 1/default 0];
  2969. docident [hirestextures] [Controls whether textures with a scale higher than 1.0 will be scaled down while loading (0) or not (1).];
  2970. docargument [S] [scale down?] [min 0/max 1/default 1];
  2971. docref [texture];
  2972. docident [hwmaxaniso] [Shows the maximum level of anisotropic filtering supported by the graphics hardware.];
  2973. docref [aniso];
  2974. docident [hwtexsize] [Shows the maximum texture size (in pixels) supported by the graphics hardware.];
  2975. docref [maxtexsize];
  2976. docident [lighterror] [Allows to finetune the amount of "error" the mipmapper/stripifier allow themselves for changing lightlevels.];
  2977. docargument [E] [the error value, 1 being the best quality] [ read-only];
  2978. docremark [If this variable is changed this during play, a "recalc" is needed to see the effect.];
  2979. docref [recalc];
  2980. docident [maxfps] [Limits the FPS (frames per second) of AssaultCube's video output.];
  2981. docargument [V] [maximum FPS] [0 disables maxfps min 25 or 0/max 1000/default 200];
  2982. docremark [Remark: limit to '200' is optimal.];
  2983. docref [fpsrange];
  2984. docident [maxroll] [Sets the maximum value the display will roll on strafing.];
  2985. docargument [N] [the roll value] [min 0/max 20/default 0];
  2986. docref [maxrollremote];
  2987. docident [maxrollremote] [Limits the maximum value the display will roll on strafing when spectating other players.];
  2988. docargument [N] [The roll value] [min 0/max 20/default 0];
  2989. docremark [This only comes into effect if the remote client being spectated has a maxroll greater than 0.];
  2990. docref [maxroll];
  2991. docident [maxtexsize] [The maximum texture size that will be used by the engine, larger textures will be scaled down.];
  2992. docargument [V] [maximum texture size] [min 0/max 4096/default 0];
  2993. docremark [If this value is zero, hwtexsize will be used.];
  2994. docref [hwtexsize];
  2995. docident [maxtmus] [Gets the maximum number of supported textures when performing multitexturing.];
  2996. docident [maxtrail] [Maximum number of smoke particles along shotline of sniper rifle.];
  2997. docargument [N] [maximum number of smoke particles] [min 1/max 10000/default 500];
  2998. docident [mdldlist] [];
  2999. docargument [N] [] [min 0/max 1/default 1];
  3000. docident [mdldyncache] [];
  3001. docargument [V] [] [min 1/max 32/default 2];
  3002. docident [mdlstatcache] [];
  3003. docargument [V] [] [min 1/max 32/default 1];
  3004. docident [mergestrips] [];
  3005. docargument [V] [] [min 0/max 1/default 1];
  3006. docident [minlod] [Minimal level of detail.];
  3007. docargument [V] [] [min 25/max 250/default 60];
  3008. docident [mtexplosion] [];
  3009. docargument [V] [] [min 0/max 1/default 1];
  3010. docident [mtwater] [];
  3011. docargument [V] [] [min 0/max 1/default 1];
  3012. docident [nosway] [];
  3013. docargument [V] [] [min 0/max 1/default 0];
  3014. docident [particlesize] [Scales all particles.];
  3015. docargument [P] [the scale percentage] [min 20/max 500/default 100];
  3016. docident [polygonoffsetfactor] [];
  3017. docargument [V] [] [min /max /default -3.0f];
  3018. docident [polygonoffsetunits] [];
  3019. docargument [V] [] [min /max /default -3.0f];
  3020. docident [popdeadplayers] [Makes dead players instantly pop out of existence, instead of falling over and sinking into the ground.];
  3021. docargument [B] [BOOL] [min 0/max 1/default 0];
  3022. docref [gib];
  3023. docident [reflectclip] [];
  3024. docargument [V] [] [min 0/max 100/default 1];
  3025. docident [reflectscissor] [];
  3026. docargument [V] [] [min 0/max 1/default 1];
  3027. docident [reflectsize] [];
  3028. docargument [V] [] [min 6/max 10/default 8];
  3029. docident [resetgl] [Resets the OpenGL rendering settings.];
  3030. docident [righthanded] [Chooses whether the players hand carrying the weapon appears as right or left handed.];
  3031. docargument [N] [0: lefty, 1: righty] [min 0/max 1/default 1];
  3032. docident [saveshadows] [Sets if dynamic shadows should be saved to disk.];
  3033. docargument [] [auto save] [min 0/max 1/default 1];
  3034. docident [scorch] [];
  3035. docargument [V] [] [min 0/max 1/default 1];
  3036. docident [scorchttl] [];
  3037. docargument [V] [] [min 0/max 30000/default 10000];
  3038. docident [scorefont] [Whether a special monospace font should be used to render the text on the scoreboard.];
  3039. docargument [M] [normal (0) or monospace (1)] [min 0/max 1/default 0];
  3040. docref [font];
  3041. docident [scr_h] [Sets the screen height.];
  3042. docargument [H] [the screen height] [min 200/max 10000/default 768];
  3043. docident [scr_w] [Sets the screen width.];
  3044. docargument [W] [the screen width] [min 320/max 10000/default 1024];
  3045. docident [screenres] [Changes the screen resolution.];
  3046. docargument [W] [width] [] [0];
  3047. docargument [H] [height] [] [0];
  3048. docref [desktopw];
  3049. docref [desktoph];
  3050. docref [getdisplayresolutions];
  3051. docident [setfont] [Changes the current font.];
  3052. docargument [N] [font name] [default, mono, serif] [0];
  3053. docref [font];
  3054. docref [curfont];
  3055. docident [setgamma] [Sets a persistent gamma value for a map.];
  3056. docargument [G] [the gamma value] [30..300, default 100] [0];
  3057. docref [gamma];
  3058. docident [shadowcasters] [];
  3059. docident [shadowclip] [];
  3060. docargument [V] [] [min 0/max 1/default 1];
  3061. docident [shadowtile] [];
  3062. docargument [V] [] [min 0/max 1/default 1];
  3063. docident [shotline] [];
  3064. docargument [V] [] [min 0/max 1/default 1];
  3065. docident [shotlinettl] [];
  3066. docargument [V] [] [min 0/max 10000/default 75];
  3067. docident [skin] [Determines the skin of the current player.];
  3068. docargument [N] [skin id] [value] [0];
  3069. docremark [See the player model folder for the according skin-id.];
  3070. docident [skin_cla] [Chooses skin when playing for team CLA.];
  3071. docargument [N] [skin id] [] [0];
  3072. docident [skin_rvsf] [Chooses skin when playing for team RVSF.];
  3073. docargument [N] [skin id] [] [0];
  3074. docident [skyclip] [];
  3075. docargument [V] [] [min 0/max 1/default 1];
  3076. docident [smoothdist] [Determines the valid distance when extrapolating a players position.];
  3077. docargument [V] [distance] [min 0/max 16/default 8];
  3078. docident [smoothmove] [Determines the speed when extrapolating a players position.];
  3079. docargument [V] [movement speed] [min 0/max 100/default 75];
  3080. docident [spectfov] [Specifies the Field Of View when in spectating/ghost mode.];
  3081. docargument [V] [Spectate FOV size] [min 5/max 120/default 110];
  3082. docident [stencilbits] [];
  3083. docargument [V] [] [min 0/max 32/default 0];
  3084. docident [stencilshadow] [Sets the transparency/opacity level of stencil shadows.];
  3085. docargument [V] [Alpha level] [min 0/max 100/default 40];
  3086. docident [swaymovediv] [];
  3087. docargument [V] [] [min 1/max 1000/default 200];
  3088. docident [swayspeeddiv] [];
  3089. docargument [V] [] [min 1/max 1000/default 105];
  3090. docident [swayupmovediv] [];
  3091. docargument [V] [] [min 1/max 1000/default 200];
  3092. docident [swayupspeeddiv] [];
  3093. docargument [V] [] [min 1/max 1000/default 105];
  3094. docident [teamdisplaymode] [Sets the team display mode.];
  3095. docargument [N] [the team display mode] [0 (none), 1 (color vests), 2 (color skins) min 0/max 2/default 1];
  3096. docremark [In mode 0 team display is disabled In mode 1 players will be rendered with a colored vest to make the teams distinguishable. In mode 2 almost the whole suit of the players will be colored. These display modes are only applied in team gameodes.];
  3097. docident [texreduce] [Reduces the size of all texture by the selected factor:];
  3098. docargument [S] [scale selection] [min -1/max 3/default 0];
  3099. docident [trilinear] [];
  3100. docargument [V] [] [min 0/max 1/default 1];
  3101. docident [vsync] [Enables or disables vsync.];
  3102. docargument [V] [vsync] [min -1/max 1/default -1];
  3103. docremark [-1 uses the default settings obtained from the system. 0 disables, 1 enables vsync.];
  3104. docident [waterreflect] [Turns on/off the reflections in the water surface.];
  3105. docargument [V] [enable/disable water reflections] [min 0/max 1/default 1];
  3106. docident [waterrefract] [Turns on/off water refractions.];
  3107. docargument [V] [enable/disable water refractions] [min 0/max 1/default 0];
  3108. docident [watersubdiv] [Determines the subdivision of the water surface in maps.];
  3109. docargument [N] [the subdivisioin value] [min 1/max 64/default 4];
  3110. docremark [Must be a power of 2: 4 is the default, 8 is recommended for people on slow machines, 2 is nice for fast machines, and 1 is quite OTT. See "waterlevel" (edit reference) on how to add water to your own levels.];
  3111. docref [waterlevel];
  3112. docident [waveheight] [Sets the wave height of water, between 0 (completely still, no waves at all) and 1 (very choppy).];
  3113. docargument [F] [wave height (floating-point value)] [min 0/max 1/default 0.3];
  3114. docsection [Sound]
  3115. docident [al_referencedistance] [The distance from the source emitting the sound to the listener.];
  3116. docargument [V] [] [min 0/max 1000000/default 400];
  3117. docident [al_rollofffactor] [This value indicates the relative "strength" of a sound (how far away the sound can be heard).];
  3118. docargument [V] [] [min 0/max 1000000/default 100];
  3119. docident [audio] [Enables or disables the audio subsystem in AC.];
  3120. docargument [B] [enable] [min 0/max 1/default 1];
  3121. docident [audiodebug] [Enables verbose output for debugging purposes.];
  3122. docargument [B] [enable audio debug] [min 0/max 1/default 0];
  3123. docident [bulletairsound] [];
  3124. docargument [V] [] [min 0/max 1/default 1];
  3125. docident [bulletairsounddestrad] [];
  3126. docargument [V] [] [min 0/max 1000/default 8];
  3127. docident [bulletairsoundrad] [];
  3128. docargument [V] [] [min 0/max 1000/default 15];
  3129. docident [bulletairsoundsourcerad] [];
  3130. docargument [V] [] [min 0/max 1000/default 8];
  3131. docident [bulletbouncesound] [];
  3132. docargument [V] [] [min 0/max 1/default 1];
  3133. docident [bulletbouncesoundrad] [];
  3134. docargument [V] [] [min 0/max 1000/default 15];
  3135. docident [footsteps] [Indicates if the footsteps sound should be played.];
  3136. docargument [B] [enable footsteps] [1 (true), 0 (false) min 0/max 1/default 1];
  3137. docref [localfootsteps];
  3138. docident [gainscale] [Each subsequent played sound's gain-value is scaled by this percentage.];
  3139. docargument [N] [percentage] [min 0/max 100/default 100];
  3140. docremark [This lowers the gain of the sounds before they are mixed, this might be useful in cases when the mixer has problems with too high gain values.];
  3141. docident [heartbeat] [Defines the health level at or below which a heartbeat sound will be played.];
  3142. docargument [H] [health value] [min 0/max 99/default 0];
  3143. docident [hitsound] [Plays a sound upon every successful hit if enabled.];
  3144. docargument [B] [off OR on] [0 (disabled), 1 (server), 2 (local) min 0/max 2/default 0];
  3145. docremark [If hitsound is set to 2, the sound will be played instantly rather than after server acknowledgment.];
  3146. docident [localfootsteps] [Indicates if the footsteps sound for the local player should be played.];
  3147. docargument [B] [enable footsteps] [1 (true), 0 (false) min 0/max 1/default 1];
  3148. docref [footsteps];
  3149. docident [mapsoundrefresh] [Specifies the interval for checking mapsounds.];
  3150. docargument [N] [interval in milliseconds] [min 0/max 1000/default 10];
  3151. docremark [If set to value 0, the map sounds will be checked in every frame without any interval limitation.];
  3152. docref [mapsound];
  3153. docref [newent sound];
  3154. docident [maxsoundsatonce] [];
  3155. docargument [V] [] [min 0/max 100/default 32];
  3156. docident [music] [Plays music in the background.];
  3157. docargument [A] [music file name] [] [0];
  3158. docargument [B] [playtime] [] [0];
  3159. docargument [C] [command to be executed, when music is done] [] [0];
  3160. docident [musicpreload] [Preloads the sound track.];
  3161. docargument [N] [soundtrack number] [0 (flag grab), 1 (last minute #1), 2 (last minute #2)] [0];
  3162. docremark [Can be helpful if you experience a delay, e.g. when picking up a flag.];
  3163. docident [musicvol] [Sets the music volume.];
  3164. docargument [N] [the volume] [min 0/max 255/default 128];
  3165. docref [soundvol];
  3166. docident [mutesound] [Mutes a specific game sound.];
  3167. docargument [N] [ID of the sound to mute] [see config/sounds.cfg, starting at ID 0] [0];
  3168. docargument [A] [audible?] [(mute) 0 || 1 (unmute)] [0];
  3169. docref [soundmuted];
  3170. docref [unmuteallsounds];
  3171. docident [registermusic] [Registers a track as music.];
  3172. docargument [M] [music file] [] [0];
  3173. docremark [The first three tracks have special meaning: Track #1 is for "flag grab" the second and third are used as "last minute" tracks.];
  3174. docident [registersound] [Registers a sound.];
  3175. docargument [N] [sound name] [string, see config/sounds.cfg] [0];
  3176. docargument [V] [volume] [0..255] [0];
  3177. docargument [L] [loop] [0 (off), 1 (on)] [0];
  3178. docargument [R] [audible radius] [] [0];
  3179. docremark [This command returns the sound number, which is assigned from 0 onwards, and which can be used with "sound" command. If the sound was already registered, its existing index is returned. registersound does not actually load the sound, this is done on first play.];
  3180. docremark [See for example config/sounds.cfg.];
  3181. docref [sound];
  3182. docident [sound] [Plays the specified sound.];
  3183. docargument [S] [the sound to play] [string, see config/sounds.cfg] [0];
  3184. docremark [See config/sounds.cfg for default sounds, and use registersound to register your own. For example, 'sound 0' and 'sound (registersound "player/jump")' both play the standard jump sound.];
  3185. docident [soundchannels] [Sets the desired amount of allocated sound channels.];
  3186. docargument [] [number of channels] [min 4/max 1024/default 128];
  3187. docremark [AC will try to allocate that number of channels but it is not guaranteed to succeed.];
  3188. docident [soundmuted] [Returns 1 if sound A is muted, else 0.];
  3189. docargument [A] [sound ID] [See /config/sounds.cfg for valid sound ID's.] [0];
  3190. docexample [mutesound 5; if (soundmuted 5) [echo Sound 5 is muted!] [echo Sound 5 is not muted!]] [Output: Sound 5 is muted!];
  3191. docref [mutesound];
  3192. docref [unmuteallsounds];
  3193. docident [soundscheddistancescore] [];
  3194. docargument [V] [] [min 0/max 1000/default 5];
  3195. docident [soundschedoldbonus] [];
  3196. docargument [V] [] [min 0/max 1000/default 100];
  3197. docident [soundschedpriorityscore] [];
  3198. docargument [V] [] [min 0/max 1000/default 100];
  3199. docident [soundschedreserve] [];
  3200. docargument [V] [] [min 0/max 100/default 2];
  3201. docident [soundtest] [Plays all hardcoded sounds in order.];
  3202. docident [soundvol] [Sets the sound volume for all sounds.];
  3203. docargument [N] [the volume] [min 0/max 255/default 128];
  3204. docident [unmuteallsounds] [Unmutes all previously muted sounds.];
  3205. docref [mutesound];
  3206. docsection [Ingame reference]
  3207. docident [docargument] [Adds a new argument documentation to the last added identifier.];
  3208. docargument [T] [the token] [] [0];
  3209. docargument [D] [the description] [] [0];
  3210. docargument [V] [the value notes] [] [0];
  3211. docargument [I] [flags this argument as variable-length] [1 (true), 0 (false)] [0];
  3212. docremark [An argument represents either a command argument or a variable value.];
  3213. docremark [The last argument of an identifier can be flagged as variable-length to indicate that it represents an unknown number of arguments.];
  3214. docref [docident];
  3215. docident [docexample] [Adds an example to the last added identifier.];
  3216. docargument [C] [the example code] [] [0];
  3217. docargument [E] [the explanation] [] [0];
  3218. docident [docfind] [Searches the ingame docs for identifier documentations matching the specified search string.];
  3219. docargument [S] [the search string] [] [0];
  3220. docremark [The name, description and remarks are included in the search.];
  3221. docref [docident];
  3222. docref [docundone];
  3223. docref [docinvalid];
  3224. docident [docident] [Adds a new identifier documentation to the last added section.];
  3225. docargument [N] [name of the identifier] [] [0];
  3226. docargument [D] [the description] [] [0];
  3227. docremark [An identifier represents a command or variable. The new identifier];
  3228. docremark [The name may contain spaces to create a "multipart" identifier documentation that can be used to describe a complex argument as a single pseudo identifier, look at the examples.];
  3229. docexample [docident fov "Sets the field of view."] [];
  3230. docexample [docident "newent light" "Adds a new light entity."] [];
  3231. docref [docsection];
  3232. docref [docargument];
  3233. docref [docremark];
  3234. docref [docref];
  3235. docref [docundone];
  3236. docref [docinvalid];
  3237. docref [docfind];
  3238. docref [docwritebaseref];
  3239. docident [docinvalid] [Outputs a list of identifier documentations that do not match any existing identifier.];
  3240. docremark [Multipart identifiers are not included in this list, see 'docident'.];
  3241. docref [docident];
  3242. docref [docundone];
  3243. docref [docfind];
  3244. docident [dockey] [];
  3245. docargument [A] [] [value] [0];
  3246. docident [docref] [Adds a new documentation reference to an identifier.];
  3247. docargument [N] [the display name] [] [0];
  3248. docargument [I] [the identifier to refer to] [] [0];
  3249. docargument [U] [the URL to refer to] [] [0];
  3250. docremark [The new reference is added to the last added identifier documentation.];
  3251. docref [docident];
  3252. docident [docremark] [Adds a new documentation remark to the last added identifier.];
  3253. docargument [S] [the remark] [] [0];
  3254. docref [docident];
  3255. docident [docsection] [Adds a new section to the ingame documentation.];
  3256. docargument [S] [the section name] [] [0];
  3257. docref [docident];
  3258. docident [docskip] [];
  3259. docargument [V] [] [min 0/max 1000/default 0];
  3260. docident [docundone] [Outputs a list of yet undocumented identifiers (commands, variables, etc.).];
  3261. docargument [A] [output all identifiers] [1 (true), 0 (false)] [0];
  3262. docremark [If the one argument is omitted, only the builtin identifiers will be listed. Therefore specify the argument other identifiers like aliases should be included too.];
  3263. docremark [Note that the list also includes identifiers that contain the substrings "TODO" or "UNDONE" in their documentation.];
  3264. docref [docident];
  3265. docref [docinvalid];
  3266. docref [docfind];
  3267. docident [docvisible] [];
  3268. docargument [V] [] [min 0/max 1/default 1];
  3269. docident [docwritebaseref] [Writes out a base XML documentation reference containing templates for the builtin identifiers.];
  3270. docargument [R] [the reference name] [] [0];
  3271. docargument [S] [the XML schema location string] [] [0];
  3272. docargument [T] [XML stylesheet to use] [] [0];
  3273. docremark [The generated reference is written to "docs/autogenerated_base_reference.xml" by default. The three arguments can be changed later on in the generated XML document.];
  3274. docref [docident];
  3275. docref [docundone];
  3276. docref [docinvalid];
  3277. docref [docfind];
  3278. docident [docwritetodoref] [Writes out an XML documentation reference file containing undocumented identifiers or identifiers marked with "TODO".];
  3279. docargument [i] [Also include aliases? Optional] [1: Include aliases, 0: Don't include. Default: 0] [0];
  3280. docsection [Server commands]
  3281. docident [addfavcategory] [Adds a new category in the serverbrowser favourites.];
  3282. docargument [A] [reference designator (keep short and unique)] [] [0];
  3283. docremark [Add new categories to your autoexec.cfg, check favourites.cfg for examples.];
  3284. docident [autoteam] [Sets automated team assignment.];
  3285. docargument [B] [Enables or disables auto team] [1 (On), 0 (Off)] [0];
  3286. docref [setadmin];
  3287. docident [ban] [Temporary ban of the specified player from the server.];
  3288. docargument [C] [The player to ban] [client number] [0];
  3289. docargument [R] [The reason] [at least 4 characters] [0];
  3290. docremark [Temporary ban duration is fixed at 20 minutes.];
  3291. docref [removebans];
  3292. docref [setadmin];
  3293. docident [callvote] [Calls a vote on the server.];
  3294. docargument [T] [Vote type] [value] [0];
  3295. docargument [A] [First argument] [] [0];
  3296. docargument [B] [Second argument] [] [0];
  3297. docremark [This command is wrapped by aliases for better usability and is used to action votes such as ban, kick, etc. See config/admin.cfg for actual uses.];
  3298. docident [cleardemo] [Clears specific demo currently in memory on the server.];
  3299. docargument [X] [number in list] [0 (all), 1..] [0];
  3300. docref [listdemos];
  3301. docident [cleardemos] [Clears all demos currently in memory on the server.];
  3302. docident [deleteservermap] [Deletes a map from the current server.];
  3303. docargument [A] [map name] [] [0];
  3304. docident [forceme] [Calls a vote to forceteam yourself to the specified team.];
  3305. docargument [T] [the team to force yourself to] [0-4] [0];
  3306. docremark [By default, if you are on team CLA or RVSF, this command will force you to the enemy team, no arguments necessary.];
  3307. docref [forceteam];
  3308. docident [forceteam] [Calls a vote to force the specified player to switch to the specified team.];
  3309. docargument [C] [client number of player] [integer] [0];
  3310. docargument [T] [the team to force to] [0-4] [0];
  3311. docref [forceme];
  3312. docref [setadmin];
  3313. docident [giveadmin] [Gives admin state to the specified player.];
  3314. docargument [C] [The player to become admin] [client number] [0];
  3315. docremark [Requires admin state. The admin will lose his admin state after successfully issuing this command.];
  3316. docref [setadmin];
  3317. docident [hidefavicons] [Hides favourites icons in serverbrowser.];
  3318. docargument [N] [0: show, 1: hide] [min 0/max 1/default 0];
  3319. docident [kick] [Kicks the specified player from the server.];
  3320. docargument [C] [The player to kick] [client number] [0];
  3321. docargument [R] [The reason] [at least 4 characters] [0];
  3322. docref [setadmin];
  3323. docident [listfavcats] [Lists all registered serverbrowser favourites categories.];
  3324. docident [mastermode] [Sets the mastermode for the server.];
  3325. docargument [N] [The master mode] [0 (Open), 1 (Private), 2 (Match)] [0];
  3326. docremark [If the mastermode is set to 'private', no more clients can join the server. Default is 'open' which allows anyone to join the server.];
  3327. docref [setadmin];
  3328. docident [masterupdatefrequency] [];
  3329. docargument [V] [] [min 1/max 24*60*60/default 60*60];
  3330. docident [maxservpings] [Sets the number of servers to be pinged at once.];
  3331. docargument [V] [] [min 0/max 1000/default 10];
  3332. docident [removebans] [Removes all temporary bans from the server.];
  3333. docremark [Temporary bans are normally automatically removed after 20 minutes.];
  3334. docref [ban];
  3335. docref [setadmin];
  3336. docident [searchlan] [];
  3337. docargument [V] [] [min 0/max 2/default 1];
  3338. docident [searchnickname] [Search a nickname (or -part) on all servers.];
  3339. docargument [N] [nickname to search] [] [0];
  3340. docident [sendmap] [Sends a map to the server.];
  3341. docargument [M] [map to send] [] [0];
  3342. docremark [During coop edit, the current map gets saved to file and sent to the server. Other players can use 'getmap' to download it.];
  3343. docremark [When not in edit mode, the map will not be saved. The new map will be used, when the next game on that map starts on the server.];
  3344. docref [getmap];
  3345. docref [dlmap];
  3346. docident [serverbrowserhidefavtag] [Hides favourites tag column in serverbrowser.];
  3347. docargument [N] [-] [min 0/max 2/default 1];
  3348. docident [serverbrowserhideip] [Hides server IP and port in serverbrowser.];
  3349. docargument [N] [-] [min 0/max 2/default 2];
  3350. docident [serverdesc] [Sets user-define server description.];
  3351. docargument [D] [description] [] [0];
  3352. docremark [If the server was run with -n1 and -n2 arguments (prefix and suffix of descriptive title) a serveradmin can set a user-defined server description with this command, if it wasn't this command results in "invalid vote". This title will only stay until the next map is loaded.];
  3353. docremark [If, for example, the server was run with -n"Fred's Server" -n1"Fred's " -n2" Server", then you could call "/serverdesc [pWn4g3 TOSOK]" and it would show up as "Fred's pWn4g3 TOSOK Server" in the serverbrowser.];
  3354. docident [serverextension] [Sends the extension name and argument string to the server, which can use it for custom action.];
  3355. docargument [E] [extension name] [] [0];
  3356. docargument [A] [argument] [] [0];
  3357. docremark [See source/src/server.cpp ["case SV_EXTENSION:"].];
  3358. docident [serversort] [];
  3359. docargument [V] [] [min 0/max NUMSERVSORT-1/default 0];
  3360. docident [serversortdir] [Selects ascending of descending sort order in serverbrowser.];
  3361. docident [serversortpreferofficial] [Sort official maps over custom maps in serverbrowser.];
  3362. docargument [N] [-] [min 0/max 1/default 1];
  3363. docident [servpingrate] [];
  3364. docargument [V] [] [min 1000/max 60000/default 5000];
  3365. docident [setadmin] [Claims or drops admin status.];
  3366. docargument [B] [Status] [1 (Claim), 0 (Drop)] [0];
  3367. docargument [PASS] [Password] [case sensitive] [0];
  3368. docremark [Failed logins result in an auto kick. The admin is granted the right to kick, ban, remove bans, set autoteam, set shuffleteam, change server description (if enabled), change map, change mastermode, force team, change mode, record demos, stop demos and clear demo(s) - All without needing votes from other users. If the admin votes on any (other players) call, his vote is final. In the scoreboard, the admin will be shown as a red colour.];
  3369. docref [kick];
  3370. docref [autoteam];
  3371. docref [mastermode];
  3372. docref [ban];
  3373. docref [removebans];
  3374. docident [showallplayersnumber] [Shows on serverbrowser number of all players on the all servers.];
  3375. docargument [N] [] [min 0/max 1/default 0];
  3376. docident [showallservers] [Whether servers that have not yet responded to a ping should be shown in the server list.];
  3377. docargument [V] [] [min 0/max 1/default 1];
  3378. docident [showminremain] [Show 'minutes remaining' in serverbrowser.];
  3379. docargument [N] [] [min 0/max 1/default 1];
  3380. docident [shownamesinbrowser] [Show player names in serverbrowser.];
  3381. docargument [N] [-] [min 0/max 1/default 0];
  3382. docident [showonlyfavourites] [Show only servers of one favourites category in serverbrowser.];
  3383. docargument [N] [category index] [min 0/max 100/default 0];
  3384. docident [showonlygoodservers] [Show only servers with the correct protocol in serverbrowser.];
  3385. docargument [N] [-] [min 0/max 1/default 0];
  3386. docident [showweights] [Show 'weights' in serverbrowser.];
  3387. docargument [N] [] [min 0/max 1/default 1];
  3388. docremark ['weights' are the sort criteria with the highest priority. Favourites categories can change the weights. Use 'showweights' to debug problems with serverbrowser sorting.];
  3389. docident [shuffleteams] [Shuffles the teams.];
  3390. docremark [The server will attempt to restore balance, but the result may be less that optimal, and there are certainly better ways to keep teams balanced.];
  3391. docref [forceteam];
  3392. docref [forceme];
  3393. docsection [Authentication]
  3394. docident [authkey] [Manages a list of keys other than the game key (which is managed by authsetup).];
  3395. docargument [P] [parameter] [clear, list, delete keyname, new keyname, add keyname privkey, selfcert keyname [comment]] [0];
  3396. docremark [For example, this can be server owner keys or clan boss keys. Options:];
  3397. docremark ["authkey clear" - empties the list and comments out all lines in config/authkeys.cfg.];
  3398. docremark ["authkey list" - lists all authkeys that are currently in memory.];
  3399. docremark ["authkey delete keyname" - deletes the key "keyname" from memory.];
  3400. docremark ["authkey new keyname" - generates a new key with the name "keyname". If a key of that name already exists, it is deleted. The key is added to the list in memory and also written to the file config/authkeys.cfg.];
  3401. docremark ["authkey add keyname privkey" - adds a key with the name "keyname" to the list in memory. The privkey is a 32-byte hexadecimal string, preferrably generated by authkey new. The matching public key is generated automatically from the private key.];
  3402. docremark ["authkey selfcert keyname [comment]" - generates a self-signed certificate for the key "keyname". Being able to create such a cert is proof, that you own the private key of a certain public key.];
  3403. docref [authsetup];
  3404. docident [authmaxtime] [Sets an amount of time (in ms), new password hashes are created with this fixed amount of time.];
  3405. docargument [N] [amount of time [ms]] [min 1<<9/max 1<<16/default 1<<12];
  3406. docref [authsetup];
  3407. docref [authmemusage];
  3408. docref [authrounds];
  3409. docident [authmemusage] [Sets a number of megabytes of RAM that are used for the password hash calculation (when new passwords are created).];
  3410. docargument [N] [number of RAM [MB]] [min 2/max (1<<10)-1/default 24];
  3411. docref [authsetup];
  3412. docref [authrounds];
  3413. docref [authmaxtime];
  3414. docident [authrounds] [Sets a number of rounds, if greater than 0, then new password hashes are created with this fixed number of rounds.];
  3415. docargument [N] [number of rounds] [min 0/max 2^31-1/default 0];
  3416. docref [authsetup];
  3417. docref [authmemusage];
  3418. docref [authmaxtime];
  3419. docident [authsetup] [Manages player authentication.];
  3420. docargument [P] [parameter] [[empty], pre preprivhex [psalthex pwdcfg], priv privhex [salthex pwdcfg], pub pubhex, ppass preprivpass, pass privpass, passd privpass [commandwhendone], needpass, genpre [prelen], genpriv, genpub, newppass preprivpass [preprivfilename], newpass privpass [privatefilename], unarmed] [0];
  3421. docremark ["authsetup" contains all the funtionality needed to generate, load and save private and public keys, and to lock and unlock the private key with a password.];
  3422. docremark [Private and public keys are used to authenticate the player to servers, and are loaded from config/authprivate.cfg. Private keys can be stored in an "encrypted with password" version - in which case the player has to enter the password after game start. To prevent brute-force cracking of the password, the key-derivation function uses a constant time to encode (usually several seconds). Because of that, the decoding at game start can be done in the background.];
  3423. docremark [The private key is actually itself a public key generated from the prepriv key. The prepriv key should be kept away from the computer, either as hardcopy or on a thumbdrive. The prepriv key is not required to play the game. It can be used to prove ownership of the private key, in case the private key gets stolen. It can also be used to regenerate private and public keys, in case they are lost. The prepriv key can also be encrypted by its own password.];
  3424. docremark [----------];
  3425. docremark [Options:];
  3426. docremark ["authsetup" - checks private and public key and returns "1", if they match.];
  3427. docremark ["authsetup pre preprivhex [psalthex pwdcfg]" - loads prepriv key into memory. Optionally supports encrypted keys.];
  3428. docremark ["authsetup priv privhex [salthex pwdcfg]" - loads private key into memory. Optionally supports encrypted keys.];
  3429. docremark ["authsetup pub pubhex" - loads public key into memory.];
  3430. docremark ["authsetup ppass preprivpass" - decrypts prepriv key with password.];
  3431. docremark ["authsetup pass privpass" - decrypts private key with password.];
  3432. docremark ["authsetup passd privpass [commandwhendone]" - decrypts private key with password in background. Optionally executes cubescript command when done.];
  3433. docremark ["authsetup needpass" - returns "1", if the private key needs decryption.];
  3434. docremark ["authsetup genpre [prelen]" - generates new prepriv key.];
  3435. docremark ["authsetup genpriv" - generates private key from prepriv key.];
  3436. docremark ["authsetup genpub" - generates public key from private key.];
  3437. docremark ["authsetup newppass preprivpass [preprivfilename]" - encrypts prepriv key with new password and saves the result to file. The default filename is config/authpreprivate.cfg and an existing file gets overwritten - but the former file content is kept and also written, each line commented out.];
  3438. docremark ["authsetup newpass privpass [privatefilename]" - encrypts private key with new password and saves the encrypted private key and the public key to file. The default filename is config/authprivate.cfg and an existing file gets overwritten - but the former file content is kept and also written, each line commented out.];
  3439. docremark ["authsetup unarmed" - sets private and public keys to a fixed value. For testing only. Can be used to "log out".];
  3440. docremark [----------];
  3441. docremark ["authmemusage", "authrounds", "authmaxtime" are only used, when new passwords are created (authsetup new[p]pass). "authmemusage" is the number of megabytes of RAM that are used for the password hash calculation. If "authrounds" is zero (as is default), then the hash algorithm calculates as many rounds as possible in the number of milliseconds specified in "authmaxtime". If "authrounds" is a positive number, then that is the number of rounds to be done, regardless the required time. Note that, since the password hash algorithm is not endianness-aware, it is not possible to move an encrypted password to a machine with different endianness. Moving between 32- and 64-bit machines should be no problem.];
  3442. docref [authmemusage];
  3443. docref [authrounds];
  3444. docref [authmaxtime];
  3445. docref [authkey];
  3446. docref [mypubkey];
  3447. docref [cryptodebug];
  3448. docident [cryptodebug] [Enables some debug messages in crypto.cpp file.];
  3449. docargument [N] [enable debugging] [min 0/max 1/default 1];
  3450. docref [authsetup];
  3451. docident [mypubkey] [Returns a public key of game account.];
  3452. docremark [It returns empty string, if no account exists or it is unusable (due to missing password, for example).];
  3453. docref [authsetup];
  3454. docsection [Game modes]
  3455. docident [bdm] [Starts a map with the mode "Bot Deathmatch".];
  3456. docargument [M] [The name of the map you wish to play] [] [0];
  3457. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3458. docexample [bdm ac_complex] [];
  3459. docident [blss] [Starts a map with the mode "Bot Last Swiss Standing".];
  3460. docargument [M] [The name of the map you wish to play] [] [0];
  3461. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3462. docexample [blss ac_complex] [];
  3463. docident [bosok] [Starts a map with the mode "Bot One Shot, One Kill".];
  3464. docargument [M] [The name of the map you wish to play] [] [0];
  3465. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3466. docexample [bosok ac_complex] [];
  3467. docident [bpf] [Starts a map with the mode "Bot Pistol Frenzy".];
  3468. docargument [M] [The name of the map you wish to play] [] [0];
  3469. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3470. docexample [bpf ac_complex] [];
  3471. docident [btdm] [Starts a map with the mode "Bot Team Deathmatch".];
  3472. docargument [M] [The name of the map you wish to play] [] [0];
  3473. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3474. docexample [btdm ac_complex] [];
  3475. docident [btosok] [Starts a map with the mode "Bot Team One Shot, One Kill".];
  3476. docargument [M] [The name of the map you wish to play] [] [0];
  3477. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3478. docexample [btosok ac_complex] [];
  3479. docident [btsurv] [Starts a map with the mode "Bot Team Survivor".];
  3480. docargument [M] [The name of the map you wish to play] [] [0];
  3481. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3482. docexample [btsurv ac_complex] [];
  3483. docident [coop] [Starts a map with the mode "Co-operative Editing".];
  3484. docargument [M] [The name of the map you wish to edit] [] [0];
  3485. docremark [See the "Co-operative map editing" section on the "Tips, tricks and advice" chapter of the map editing guide for more information.];
  3486. docexample [coop ac_newmap] [];
  3487. docident [ctf] [Starts a map with the mode "Capture the Flag".];
  3488. docargument [M] [The name of the map you wish to play] [] [0];
  3489. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3490. docexample [ctf ac_mines] [];
  3491. docident [curmodeattr] [Checks the current game mode for certain attributes.];
  3492. docargument [A] [attribute name] [] [0];
  3493. docremark [Possible attributes are: team, arena, flag and bot.];
  3494. docref [mode];
  3495. docref [gamemode];
  3496. docref [getmode];
  3497. docident [dm] [Starts a map with the mode "Deathmatch".];
  3498. docargument [M] [The name of the map you wish to play] [] [0];
  3499. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3500. docexample [dm ac_complex] [];
  3501. docident [gamemode] [Returns the number of current game mode.];
  3502. docexample [echo $gamemode] [Output: 5];
  3503. docref [mode];
  3504. docref [getmode];
  3505. docref [curmodeattr];
  3506. docident [gamemodedesc] [];
  3507. docargument [M] [mode] [integer] [0];
  3508. docargument [D] [description] [string] [0];
  3509. docref [mode];
  3510. docref [showmodedescriptions];
  3511. docident [getmode] [Returns the name of current game mode.];
  3512. docargument [N] [0 = full mode name, 1 = mode acronym] [min 0/max 1/default 0] [0];
  3513. docexample [echo (getmode)] [Example output: capture the flag];
  3514. docexample [echo (getmode 1)] [Example output: CTF];
  3515. docref [mode];
  3516. docref [modeacronyms];
  3517. docref [gamemode];
  3518. docref [curmodeattr];
  3519. docident [htf] [Starts a map with the mode "Hunt the Flag".];
  3520. docargument [M] [The name of the map you wish to play] [] [0];
  3521. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3522. docexample [htf ac_mines] [];
  3523. docident [ktf] [Starts a map with the mode "Keep the Flag".];
  3524. docargument [M] [The name of the map you wish to play] [] [0];
  3525. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3526. docexample [ktf ac_mines] [];
  3527. docident [lms] [Starts a map with the mode "Survivor". Some players prefer the name "Last Man Standing" for this mode.];
  3528. docargument [M] [The name of the map you wish to play] [] [0];
  3529. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3530. docexample [lms ac_complex] [];
  3531. docident [lss] [Starts a map with the mode "Last Swiss Standing".];
  3532. docargument [M] [The name of the map you wish to play] [] [0];
  3533. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3534. docexample [lss ac_complex] [];
  3535. docident [mode] [Sets the gameplay mode to N for the next map loaded.];
  3536. docargument [N] [Team Deathmatch] [0] [0];
  3537. docargument [] [Co-op edit] [1] [0];
  3538. docargument [] [Deathmatch] [2] [0];
  3539. docargument [] [Survivor] [3] [0];
  3540. docargument [] [Team Survivor] [4] [0];
  3541. docargument [] [Capture the Flag] [5] [0];
  3542. docargument [] [Pistol Frenzy] [6] [0];
  3543. docargument [] [Bot Team Deathmatch] [7] [0];
  3544. docargument [] [Bot Deathmatch] [8] [0];
  3545. docargument [] [Last Swiss Standing] [9] [0];
  3546. docargument [] [One Shot, One Kill] [10] [0];
  3547. docargument [] [Team One Shot, One Kill] [11] [0];
  3548. docargument [] [Bot One Shot, One Kill] [12] [0];
  3549. docargument [] [Hunt the Flag] [13] [0];
  3550. docargument [] [Team Keep the Flag] [14] [0];
  3551. docargument [] [Keep the Flag] [15] [0];
  3552. docargument [] [Team Pistol Frenzy] [16] [0];
  3553. docargument [] [Team Last Swiss Standing] [17] [0];
  3554. docargument [] [Bot Pistol Frenzy] [18] [0];
  3555. docargument [] [Bot Last Swiss Standing] [19] [0];
  3556. docargument [] [Bot Team Survivor] [20] [0];
  3557. docargument [] [Bot Team One Shot, One Kill] [21] [0];
  3558. docremark [You will need to define mode before loading the map or it will stay as the last mode played.];
  3559. docremark [There are many aliases for you to use instead of remembering the numeric mapping.];
  3560. docexample [mode 7; map ac_complex; echo "Bot Team Deathmatch on ac_complex"] [];
  3561. docexample [mode 8; map ac_mines 4; echo "Bot Deathmatch on ac_mines for 4 minutes"] [];
  3562. docexample [mode 5; map ac_shine; echo "CTF @ ac_shine"] [];
  3563. docref [map];
  3564. docref [gamemode];
  3565. docref [getmode];
  3566. docref [curmodeattr];
  3567. docref [modeacronyms];
  3568. docref [modenum];
  3569. docref [tdm];
  3570. docref [coop];
  3571. docref [dm];
  3572. docref [surv];
  3573. docref [tsurv];
  3574. docref [ctf];
  3575. docref [tpf];
  3576. docref [pf];
  3577. docref [tlss];
  3578. docref [lss];
  3579. docref [osok];
  3580. docref [tosok];
  3581. docref [htf];
  3582. docref [tktf];
  3583. docref [ktf];
  3584. docref [btdm];
  3585. docref [bdm];
  3586. docref [bpf];
  3587. docref [blss];
  3588. docref [btsurv];
  3589. docref [bosok];
  3590. docref [btosok];
  3591. docident [modeacronyms] [Toggles use of acronyms instead of full modenames in the serverbrowser, scoreboard, voting info.];
  3592. docargument [B] [] [min 0/max 1/default 0];
  3593. docref [mode];
  3594. docref [getmode];
  3595. docref [modenum];
  3596. docident [modenum] [Returns the mode number for a specified mode acronym.];
  3597. docargument [M] [the mode acronym] [] [0];
  3598. docremark [Returns -1 if not found.];
  3599. docexample [echo (modenum ctf)] [Output: 5];
  3600. docexample [echo (modenum btosok)] [Output: 21];
  3601. docref [mode];
  3602. docref [modeacronyms];
  3603. docident [osok] [Starts a map with the mode "One Shot, One Kill".];
  3604. docargument [M] [The name of the map you wish to play] [] [0];
  3605. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3606. docexample [osok ac_complex] [];
  3607. docident [pf] [Starts a map with the mode "Pistol Frenzy".];
  3608. docargument [M] [The name of the map you wish to play] [] [0];
  3609. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3610. docexample [pf ac_complex] [];
  3611. docident [showmodedescriptions] [Enables or disables the showing of game mode descriptions on the console after map starts.];
  3612. docargument [B] [0 off, 1 on] [min 0/max 1/default 1];
  3613. docref [mode];
  3614. docref [gamemodedesc];
  3615. docident [surv] [Starts a map with the mode "Survivor".];
  3616. docargument [M] [The name of the map you wish to play] [] [0];
  3617. docargument [T] [The time limit, in minutes (default 10 minutes if T is 0 or not specified)] [1..60] [0];
  3618. docexample [surv ac_complex] [];
  3619. docident [tdm] [Starts a map with the mode "Team Deathmatch".];
  3620. docargument [M] [The name of the map you wish to play] [] [0];
  3621. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3622. docexample [tdm ac_complex] [];
  3623. docident [tktf] [Starts a map with the mode "Team Keep the Flag".];
  3624. docargument [M] [The name of the map you wish to play] [] [0];
  3625. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3626. docexample [tktf ac_mines] [];
  3627. docident [tlss] [Starts a map with the mode "Team Last Swiss Standing".];
  3628. docargument [M] [The name of the map you wish to play] [] [0];
  3629. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3630. docexample [tlss ac_complex] [];
  3631. docident [tosok] [Starts a map with the mode "Team One Shot, One Kill".];
  3632. docargument [M] [The name of the map you wish to play] [] [0];
  3633. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3634. docexample [tosok ac_complex] [];
  3635. docident [tpf] [Starts a map with the mode "Team Pistol Frenzy".];
  3636. docargument [M] [The name of the map you wish to play] [] [0];
  3637. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3638. docexample [tpf ac_complex] [];
  3639. docident [tsurv] [Starts a map with the mode "Team Survivor".];
  3640. docargument [M] [The name of the map you wish to play] [] [0];
  3641. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3642. docexample [tsurv ac_complex] [];
  3643. docident [vip] [Starts a map with the mode "Hunt the Flag". Some players prefer the name "VIP" for this mode.];
  3644. docargument [M] [The name of the map you wish to play] [] [0];
  3645. docargument [T] [The time limit, in minutes (default 15 minutes if T is 0 or not specified)] [1..60] [0];
  3646. docexample [vip ac_mines] [];
  3647. docsection [Editing configs]
  3648. docident [fog] [Sets the fog distance.];
  3649. docargument [N] [The fog distance] [64...1024, default is 180] [0];
  3650. docremark [You can do this for tweaking the visual effect of the fog, or if you are on a slow machine, setting the fog to a low value can also be a very effective way to increase fps (if you are geometry limited). Try out different values on big maps / maps which give you low fps. It is also good for aesthetic features of maps especially when combined with "fogcolour".];
  3651. docref [fogcolour];
  3652. docident [fogcolour] [Sets the fog and clearing colour.];
  3653. docargument [C] [The colour] [Hexadecimal colour, default is 0x8099B3] [0];
  3654. docref [fog];
  3655. docident [getnotexture] [Returns the current "notexture" path (set by loadnotexture).];
  3656. docexample [echo (getnotexture)] [];
  3657. docref [loadnotexture];
  3658. docident [loadnotexture] [Binds a texture to be used if a slot couldn't be loaded with a given textures path.];
  3659. docargument [F] [file name of the texture to bind] [string] [0];
  3660. docremark [Binds the texture indicated in the filename to the texture slot of any textures that aren't found. The path is given exactly as with the texture-command, if it is omitted (or can't be loaded) the default is used. The default is located in packages/misc/notexture.jpg (not in packages/textures - where custom ones must reside!)];
  3661. docexample [loadnotexture // Reset to default] [];
  3662. docexample [loadnotexture "makke/black.jpg" // Any missing texture will show up black] [];
  3663. docref [texture];
  3664. docref [texturereset];
  3665. docref [getnotexture];
  3666. docident [loadsky] [Loads a skymap for a map.];
  3667. docargument [P] [path to skymap textures] [string] [0];
  3668. docremark [The available skymaps reside in packages/textures/skymaps/..];
  3669. docremark [The skymap name in the argument is required to start with "textures/skymaps/", but that part of the path can be omitted, and it should be used only up to the underscore "_" in the filename.];
  3670. docremark [You can get the current skymap name with the $loadsky variable.];
  3671. docexample [loadsky makke/mountain] [];
  3672. docexample [loadsky textures/skymaps/makke/mountain] [];
  3673. docident [mapmodel] [Registers a mapmodel that can be placed in maps.];
  3674. docargument [R] [The square radius of the bounding box.] [Integer] [0];
  3675. docargument [H] [The height of the bounding box.] [Integer] [0];
  3676. docargument [Z] [The initial height offset from the ground.] [Integer] [0];
  3677. docargument [0] [This integer is redundant. Leave it at zero so you don't break the command.] [0] [0];
  3678. docargument [N] [The name of the map model] [string] [0];
  3679. docargument [F] [If '1', the model is preloaded, even if no entities use it] [1 (optional)] [0];
  3680. docremark [A mapmodel registered with this command can be placed in a map using the 'newent mapmodel' command. The bounding box is an invisible force surrounding the model, allowing players to collide against it, instead of walking through the mapmodel. For more information about this command, read mapediting5.xml.];
  3681. docremark [Example: mapmodel 4 2 4 0 "modelname"];
  3682. docremark [This mapmodel has a bounding box of 8x8x2 in size (X/Y/Z) and by default hovers 4 units above ground.];
  3683. docremark [It also returns the number of the created slot, example: echo (mapmodel ...)];
  3684. docref [newent mapmodel];
  3685. docref [mapmodelreset];
  3686. docref [loadallmapmodels];
  3687. docref [mapmodelslotname];
  3688. docref [mapmodelslotbyname];
  3689. docref [mapmodelslotusage];
  3690. docref [editmapmodelslot];
  3691. docref [deletemapmodelslot];
  3692. docref [sortmapmodelslots];
  3693. docref [mapmodelchanged];
  3694. docref [listallmapmodelattributes];
  3695. docref [getmapmodelattributes];
  3696. docident [mapmodelreset] [Resets the mapmodel slots/indices to 0 for the subsequent "mapmodel" commands.];
  3697. docremark [Each subsequent mapmodel command increases it again. See config/default_map_settings.cfg for an example.];
  3698. docref [mapmodel];
  3699. docref [newent mapmodel];
  3700. docident [mapsound] [Defines a mapsound.];
  3701. docargument [P] [Path to the sound file] [] [0];
  3702. docargument [M] [Maximum simultaneous sounds/maxuses] [default -1 (unlimited)] [0];
  3703. docremark [Registers the sound as a map-specific sound. These map-specific sounds may currently only be used with "sound" entities within a map. The first map sound registered in a map has slot/index number 0 and increases afterwards.];
  3704. docremark [It also returns the number of the created slot, example: echo (mapsound ...)];
  3705. docref [newent sound];
  3706. docref [mapsoundreset];
  3707. docref [getmapsoundlist];
  3708. docref [getmapsoundorigin];
  3709. docref [mapsoundslotbyname];
  3710. docref [mapsoundslotusage];
  3711. docref [editmapsoundslot];
  3712. docref [deletemapsoundslot];
  3713. docref [sortmapsoundslots];
  3714. docref [mapsoundchanged];
  3715. docident [mapsoundreset] [Resets the mapsound slots/indices to 0 for the subsequent "mapsound" commands.];
  3716. docremark [Each subsequent mapsound command increases it again. See config/default_map_settings.cfg for an example.];
  3717. docref [newent sound];
  3718. docref [mapsound];
  3719. docident [md2anim] [];
  3720. docargument [A] [anim] [] [0];
  3721. docargument [F] [frame] [] [0];
  3722. docargument [R] [range] [] [0];
  3723. docargument [S] [speed] [] [0];
  3724. docident [md2emit] [];
  3725. docargument [T] [tag] [] [0];
  3726. docargument [Y] [type] [] [0];
  3727. docargument [A] [arg1] [] [0];
  3728. docargument [B] [arg2] [] [0];
  3729. docident [md2tag] [];
  3730. docargument [N] [name] [] [0];
  3731. docargument [A] [vert1] [] [0];
  3732. docargument [B] [vert2] [] [0];
  3733. docargument [C] [vert3] [] [0];
  3734. docargument [D] [vert4] [] [0];
  3735. docident [md3anim] [];
  3736. docargument [A] [anim] [] [0];
  3737. docargument [S] [startframe] [] [0];
  3738. docargument [R] [range] [] [0];
  3739. docargument [V] [speed] [] [0];
  3740. docident [md3emit] [];
  3741. docargument [T] [tag] [] [0];
  3742. docargument [Y] [type] [] [0];
  3743. docargument [A] [arg1] [] [0];
  3744. docargument [B] [arg2] [] [0];
  3745. docident [md3link] [];
  3746. docargument [P] [parentno] [] [0];
  3747. docargument [C] [childno] [] [0];
  3748. docargument [T] [tagname] [] [0];
  3749. docident [md3load] [];
  3750. docargument [M] [model] [] [0];
  3751. docident [md3skin] [];
  3752. docargument [N] [object name] [] [0];
  3753. docargument [S] [skin texture] [] [0];
  3754. docident [mdlalphablend] [];
  3755. docargument [A] [alphablend] [] [0];
  3756. docident [mdlalphatest] [];
  3757. docargument [A] [alphatest] [] [0];
  3758. docident [mdlattribute] [Adds a value for a specified attribute to the model.];
  3759. docargument [A] [attribute] [keywords, desc, defaults, usage, author, license, distribution, version, requires] [0];
  3760. docargument [V] [value] [] [0];
  3761. docremark [If used, specifies that the current model depends on parts of another custom model (which therefore also has to be downloaded) can only be used once per model config.];
  3762. docremark [Example: 'mdlattribute' requires 'makke/signs/exit' could be used in 'signs/loading-dock/md2.cfg' to reuse 'makke/signs/exit/tris.md2' .];
  3763. docref [getmapmodelattributes];
  3764. docref [listallmapmodelattributes];
  3765. docref [mapmodelregister];
  3766. docident [mdlcachelimit] [];
  3767. docargument [L] [cachelimit] [] [0];
  3768. docident [mdlcullface] [];
  3769. docargument [C] [cullface] [0||1] [0];
  3770. docident [mdlscale] [];
  3771. docargument [P] [percent] [0..100..N*100] [0];
  3772. docident [mdlshadowdist] [];
  3773. docargument [D] [shadow distance] [] [0];
  3774. docident [mdltrans] [Translates (= moves) the model.];
  3775. docargument [X] [] [] [0];
  3776. docargument [Y] [] [] [0];
  3777. docargument [Z] [] [] [0];
  3778. docident [mdltranslucent] [];
  3779. docargument [T] [translucency] [0..100..N*100] [0];
  3780. docident [mdlvertexlight] [];
  3781. docargument [V] [vertexligh] [0||1] [0];
  3782. docident [shadowyaw] [Shadow yaw specifies the angle at which shadow stencils are drawn on a map.];
  3783. docargument [D] [The angle in degrees to rotate the stencil shadows] [0...360, default is 45] [0];
  3784. docremark [When specifying shadowyaw, remember that the default angle is 45 degrees. The example below would make the shadows appear at 90 degrees (45 degrees more to the left).];
  3785. docexample [shadowyaw 90] [];
  3786. docident [texture] [Binds a texture to the current texture slot.];
  3787. docargument [S] [Scale of the texture to load (should be a power of two).] [Float] [0];
  3788. docargument [F] [File name of the texture to bind] [String] [0];
  3789. docremark [Binds the texture indicated in the filename to the current texture slot and increments the slot number.];
  3790. docremark [The texture is rendered at the given scale. At scale 1.0 (or if scale is 0), 32x32 texels cover one cube. At scale 2.0, which is the current maximum, it's 64x64.];
  3791. docremark [It also returns the number of the created slot, example: echo (texture ...)];
  3792. docref [loadnotexture];
  3793. docref [texturereset];
  3794. docref [hirestextures];
  3795. docref [gettexturelist];
  3796. docref [gettextureorigin];
  3797. docref [textureslotusage];
  3798. docref [textureslotusagelist];
  3799. docref [textureslotbyname];
  3800. docref [deletetextureslot];
  3801. docref [edittextureslot];
  3802. docref [edittexturestack];
  3803. docref [sorttextureslots];
  3804. docident [texturereset] [Sets the texture slots/indicies to 0 for the subsequent "texture" commands.];
  3805. docremark [Each subsequent texture command increases it again. See config/default_map_settings.cfg for an example.];
  3806. docref [texture];
  3807. docident [watercolour] [Determines the water colour in a map.];
  3808. docargument [R] [red colour intensity] [1..255] [0];
  3809. docargument [G] [green colour intensity] [1..255] [0];
  3810. docargument [B] [blue colour intensity] [1..255] [0];
  3811. docargument [A] [alpha value (transparency)] [0..255 (default 178)] [0];
  3812. docremark [You must define at least 3 first values, otherwise this command may not work correctly (use "1" as a placeholder if needed).];
  3813. docref [getwatercolour];
  3814. docref [setwatercolour];
  3815. docref [waterlevel];
  3816. docsection [Bot mode]
  3817. docident [addbot] [Adds a bot for a given team with a given skill calling him a given name.];
  3818. docargument [T] [team] [RVSF or CLA] [0];
  3819. docargument [S] [skill] [best, good, medium, worse OR bad] [0];
  3820. docargument [N] [name] [name for the bot] [0];
  3821. docremark [This command only works for single player modes.];
  3822. docexample [addbot RVSF medium Robbie] [Will add a bot named Robbie with a medium skill level to the RVSF team.];
  3823. docident [addnbot] [Adds a given count of bots for the given team with the given skill and select random names for them.];
  3824. docargument [C] [count] [how many bots to add] [0];
  3825. docargument [T] [team] [RVSF or CLA] [0];
  3826. docargument [S] [skill] [best, good, medium, worse OR bad] [0];
  3827. docremark [This command only works for single player modes.];
  3828. docremark [The name of the bots will be selected randomly.];
  3829. docexample [addnbot 2 CLA bad] [Will add 2 bots with a bad skill level to the CLA team.];
  3830. docident [addpath1way1] [];
  3831. docident [addpath1way2] [];
  3832. docident [addpath2way1] [];
  3833. docident [addpath2way2] [];
  3834. docident [addwp] [Adds a bot waypoint at the current position.];
  3835. docargument [A] [connect automatically] [0 or 1] [0];
  3836. docident [autowp] [Automatically places waypoints.];
  3837. docident [botskill] [Changes the skill level for the given bot.];
  3838. docargument [N] [botname] [the name of the bot] [0];
  3839. docargument [S] [botskill] [best, good, medium, worse OR bad] [0];
  3840. docexample [botskill Robbie best] [Changes the previous bot skill level of the bot named Robbie to a 'best' skill level.];
  3841. docident [botskillall] [Changes the skill level for all bots.];
  3842. docargument [S] [botskill] [best, good, medium, worse OR bad] [0];
  3843. docexample [botskillall worse] [Changes the previous bot skill level for all bots to a 'worse' skill level.];
  3844. docident [botsshoot] [Enables or disables the ability of the bots to fire their weapons.];
  3845. docargument [T] [shooting bots?] [0||1] [0];
  3846. docexample [botsshoot 0] [Bots won't shoot.];
  3847. docident [delpath1way1] [];
  3848. docident [delpath1way2] [];
  3849. docident [delpath2way1] [];
  3850. docident [delpath2way2] [];
  3851. docident [delwp] [Deletes the selected waypoint.];
  3852. docident [idlebots] [Enables or disables the processing of the bots artificial intelligence.];
  3853. docargument [T] [off OR on] [0||1] [0];
  3854. docexample [idlebots 1] [Will make the bots stand still.];
  3855. docexample [idlebots 0] [Will enable the bots to move and shoot.];
  3856. docident [kickallbots] [Kicks all bots out of the current game.];
  3857. docident [kickbot] [Kicks the bot with the given name out of the current game.];
  3858. docargument [N] [botname] [name of the bot to kick.] [0];
  3859. docexample [kickbot Robbie] [Will make the bot named "Robbie" dissapear from the current game.];
  3860. docident [setjumpwp] [];
  3861. docref [unsetjumpwp];
  3862. docident [setwptriggernr] [Assigns a number to the nearest waypoint.];
  3863. docargument [N] [number] [] [0];
  3864. docremark [This is only used for trigger waypoints, so that the bots go to triggers in the right order. If you don't do this bots will search for every trigger, even when they are not reachable yet.];
  3865. docident [setwpyaw] [Takes the current player yaw for the current waypoint.];
  3866. docident [togglebotview] [When used you will see what the bot sees.];
  3867. docargument [N] [botname] [the name of the bot] [0];
  3868. docremark [Type it again (with or without name) to return to the game (you will respawn).];
  3869. docident [unsetjumpwp] [];
  3870. docref [setjumpwp];
  3871. docident [wpclear] [];
  3872. docident [wpflood] [];
  3873. docident [wpinfo] [Makes waypoints visible and either turns on or off the waypoint information display.];
  3874. docargument [Y] [show info?] [0||1] [0];
  3875. docident [wpload] [];
  3876. docident [wpsave] [];
  3877. docident [wpvisible] [];
  3878. docargument [V] [visible] [0||1] [0];
  3879. docident [xhairwpsel] [Determines if bot waypoints should be selected/placed using the crosshair or by the nearest location to your player.];
  3880. docargument [V] [Note: This is turned on by default.] [min 0/max 1/default 1];
  3881. docsection [Optional]
  3882. docident [alive] [Returns 1 if the local player is alive.];
  3883. docexample [echo (alive)] [Output: 1];
  3884. docref [load_compatibility];
  3885. docident [breakparse] [Breaks out of a parsestring loop.];
  3886. docremark [Important: this command should only be used within the 3rd argument (the cubescript to execute) of parsestring.];
  3887. docref [load_parsestring];
  3888. docref [parsestring];
  3889. docident [changegamma] [Smoothly changes your gamma to the specified value.];
  3890. docargument [G] [the gamma to change to] [] [0];
  3891. docargument [M] [milliseconds between gamma changes] [] [0];
  3892. docremark [Remark: that's optional command, disabled by default, to enable it execute "run opt/survival" or start bot surival mode from menu.];
  3893. docexample [changegamma 300 30] [Every 30 milliseconds your gamma is changed by 1 until it reaches its goal of gamma 300.];
  3894. docref [load_survival];
  3895. docref [gamma];
  3896. docref [changespeed];
  3897. docident [changespeed] [Smoothly changes your gamespeed to the specified value.];
  3898. docargument [S] [the gamespeed to change to] [] [0];
  3899. docargument [M] [milliseconds between gamespeed changes] [] [0];
  3900. docremark [Remark: that's optional command, disabled by default, to enable it execute "run opt/survival" or start bot surival mode from menu.];
  3901. docexample [changespeed 1000 30] [Every 30 milliseconds your gamespeed is changed by 1 until it reaches its goal of gamespeed 1000.];
  3902. docref [load_survival];
  3903. docref [gamespeed];
  3904. docref [changegamma];
  3905. docident [curmode] [Returns the mode number for the current game.];
  3906. docref [load_compatibility];
  3907. docref [gamemode];
  3908. docref [curmap];
  3909. docref [map];
  3910. docref [mode];
  3911. docident [currole] [Returns 1 if the local player has admin privileges, 0 otherwise.];
  3912. docref [load_compatibility];
  3913. docref [setadmin];
  3914. docref [connectadmin];
  3915. docident [curteam] [Returns an integer indicating what team a client is currently on.];
  3916. docargument [C] [client number] [returns the specified client's team instead] [0];
  3917. docremark [Returns 0 for CLA, 1 for RVSF.];
  3918. docremark [Returns 2 for CLA-spectator, 3 for RVSF-spectator.];
  3919. docremark [Returns 4 for spectator.];
  3920. docremark [By default this command returns what team *you* (player1) are currently on.];
  3921. docref [load_compatibility];
  3922. docref [team];
  3923. docref [forceteam];
  3924. docref [skin];
  3925. docident [findpn] [Finds player name with this client number.];
  3926. docargument [CN] [client number] [] [0];
  3927. docref [load_compatibility];
  3928. docident [getclientmode] [Returns the current game mode number.];
  3929. docref [load_compatibility];
  3930. docident [load_autosave] [Loads optional obsolete autosave settings.];
  3931. docremark [To see the obsolete autosave settings, look in config/opt/autosave.cfg];
  3932. docident [load_compatibility] [Loads optional compatibility settings for old scripts.];
  3933. docremark [To see the compatibility settings, look in config/opt/compatibility.cfg];
  3934. docident [load_faq] [Loads optional FAQ settings.];
  3935. docremark [To see the FAQ settings, look in config/opt/faq.cfg];
  3936. docremark [The settings are loaded, when FAQ is open in menu.];
  3937. docident [load_parsestring] [Loads optional settings for string parsing.];
  3938. docremark [To see the string parsing settings, look in config/opt/parsestring.cfg];
  3939. docident [load_survival] [Loads optional settings for bot survival mode.];
  3940. docremark [To see the settings for survival, look in config/opt/survival.cfg];
  3941. docremark [The settings are loaded, when bot survival mode is started via menu.];
  3942. docident [orderscorecolumns] [Show the client number column on the scoreboard first?];
  3943. docargument [N] [CN column order] [0 (false), 1 (true) min 0/max 1/default 0];
  3944. docref [load_compatibility];
  3945. docident [parsestring] [Loops through every character in the given string and executes the given block of cubescript on each iteration.];
  3946. docargument [S] [string] [string to parse] [0];
  3947. docargument [A] [string] [name of alias to use as iterator] [0];
  3948. docargument [C] [string] [cubescript to execute on each iteration] [0];
  3949. docargument [B] [integer] [non-zero to force backwards parse] [0];
  3950. docremark [Important: A secondary iterator alias (prefixed with a double underscore "__") is automatically created before each iteration that contains the character position data.];
  3951. docexample [parsestring "Hello world" iter [echo $iter]] [Uses echo on every character in the string: "Hello world"];
  3952. docexample [parsestring "Hello world" iter [echo (concatword "Char #" $__iter ": " $iter)]] [Uses echo on every character in the string: "Hello world" --- Also outputs the position of each character in the string.];
  3953. docexample [backwardsstring = []; parsestring "This will look interesting backwards." iter [backwardsstring = (concatword $backwardsstring $iter); if (= $__iter 0) [echo $backwardsstring]] 1] [Outputs: ".sdrawkcab gnitseretni kool lliw sihT"];
  3954. docexample [parsestring "abcdefghijklmnopqrstuvwxyz" iter [if (> $__iter 4) breakparse [echo $iter]]] [Example usage of the breakparse command. Uses echo on characters a through e, then breaks out of the parse.];
  3955. docref [load_parsestring];
  3956. docref [breakparse];
  3957. docref [substr];
  3958. docref [trimAllWhitespace];
  3959. docref [trimAllUnnecessaryWhitespace];
  3960. docident [pstat_score] [Returns the score statistics for the player with the given client number.];
  3961. docargument [CN] [client number] [0..N] [0];
  3962. docexample [echo (pstat_score 0)] [Output: 0 5 3 43 1 1 unarmed];
  3963. docref [load_compatibility];
  3964. docref [start_intermission];
  3965. docref [pstat_weap];
  3966. docident [survival] [Prepares a round of bot survival mode on the specified map.];
  3967. docargument [M] [the map to use] [] [0];
  3968. docargument [D] [the difficulty] [0 = easy, 1 = intermediate, 2 = hard, 3 = impossible] [0];
  3969. docremark [All official maps are compatible with survival, if you want to play survival on a custom map, prior edits/additions to the script are necessary, such as adding a zone for that specific map.];
  3970. docref [load_survival];
  3971. docident [trimAllUnnecessaryWhitespace] [Removes all unnecessary leading and trailing whitespace characters from the given string.];
  3972. docargument [S] [string] [string to modify] [0];
  3973. docexample [echo (trimAllUnnecessaryWhitespace " H e ll o w o r l d ")] [Outputs: "H e ll o w o r l d"];
  3974. docref [load_parsestring];
  3975. docref [trimAllWhitespace];
  3976. docref [parsestring];
  3977. docident [trimAllWhitespace] [Removes all whitespace characters from the given string.];
  3978. docargument [S] [string] [string to modify] [0];
  3979. docexample [echo (trimAllWhitespace " H e ll o w o r l d ")] [Outputs: Helloworld];
  3980. docref [load_parsestring];
  3981. docref [trimAllUnnecessaryWhitespace];
  3982. docref [parsestring];
  3983. docsection [TODO]