Scripts
// Check for edit mode scanner script for AC 1.3+ by Bukz
// modify the following aliases below to change what happens when you enter/exit edit mode automatically:
//
// bukz_onEditModeEvent
// bukz_onEditModeOutEvent
//
// Currently, the script will automatically enable /fullbright 1, and automatically apply special edit mode guide textures when you first enter edit mode.

const bukz_checkForEditMode [
  if $editing [
    if (! $editModeDetected) [
      tempalias editModeDetected 1
      bukz_onEditModeEvent
    ]
  ] [
    if $editModeDetected [
      tempalias editModeDetected 0
      bukz_onEditModeOutEvent
    ]
  ]
  sleep 0 bukz_checkForEditMode
]

alias bukz_onEditModeEvent [
  echo "NOTICE: You entered edit mode."
  if (!= $fullbright 1) [ fullbright 1 ]
  guidetoggle
  sleep 0 [
    if (! (&& (strstr $conline "Guide:") (strstr $conline "on"))) [
      guidetoggle
    ]
  ]
]

alias bukz_onEditModeOutEvent [
  echo "NOTICE: You left edit mode."
]

if (! (checkalias mapstartalways)) [
  alias mapstartalways []
]

if (! (strstr $mapstartalways bukz_checkForEditMode)) [
  add2alias mapstartalways [ if (|| (! $connected) (= $gamemode (modenum coop))) bukz_checkForEditMode ]
]
Reply
Thanks given by: 1Cap
Per Bukz's instructions:

could you post a cubescript for me on the AC forum? I don't feel like trying to recover my account again.
I never finished working on it but I figure it shouldn't go to waste

// tools_16_06_2023.cfg - A collection of useful cubescript functions/aliases/menus/etc. by Bukz
//
// Please consult the accompanying config/tools_13_06_2023_docsection.cfg for information about how to use the various features of this collection.
// Viewing the documentation directly in AssaultCube is the easiest way to get a quick understanding of how each identifier in this collection
// functions. View the interactive in-game documentation menu for tools.cfg by executing the /view_tools_docs command in-game.
//
// Suggest new features, submit bug reports and/or modifications to existing tools.cfg identifiers by contacting Bukz on the official AssaultCube Discord channel,
// or send a private message to Bukz on the official AssaultCube Forums. Subject r.e. Tools.cfg - Bug Report or r.e. Tools.cfg - Feature Suggestion or
// r.e. Tools.cfg - Identifier Modification
//
// AssaultCube Homepage:      https://assault.cubers.net/
// AssaultCube Discord:       https://discord.me/assaultcube
// AssaultCube Forums:        https://forum.cubers.net/
// Download AssaultCube:      https://assault.cubers.net/download.html
// Official AC Documentation: https://assault.cubers.net/docs/                (You will likely only be interested in the cubescript section)
//
//
//
// My amazing webhost's Homepage: https://xrd.me/
// My Homepage:                   https://bukz.xrd.me/
//
//
//
//
//
//
// BEGIN TOOLS.CFG 2023 BELOW

https://bukz.xrd.me/user_uploads/___tool...e_2023.cfg
Reply
Thanks given by: