Prints the value in 'accumNumber' to the console. If the 'scriptdebuglevel' is specified, then the text will only get printed if the g_scriptdebuglevel cvar is above of equal. This value is then used instead of the map name, the next time the map is restarted. Note: That the spelling error in the command name, is also present in the source code.Ĭhanges the cvar value of 'g_scriptname' to 'scriptname'. Sets the value of the cvar 'cvarName' to 'value'. Sets the value of the cvar 'cvarName' to a random value between 0 and 'value'. Sets the number 'bit_index' bit in the value of the cvar 'cvarName'.Īdds 'value' to the value of the cvar 'cvarName'. NOTE: This is only available for the accum command.Ĭlears the number 'bit_index' bit in the value of the cvar 'cvarName'. Sets the value in 'buffer_index' to the number of dynamite sticks thats has been planted at 'targetname'. Sets the value in 'buffer_index' to 'value'. Sets the value in 'buffer_index' to a random value between 0 and 'value'. Sets the number 'bit_index' bit in the buffer.Īdds 'value' to the value of 'buffer_index'.
These are accessed via the globalaccum command.Ĭlears the number 'bit_index' bit in the buffer. These are accessed via the accum command.Īll scriptblocks shares a single set of 10 registers, numbered 0-9. The accum registers are buffers for 32 bit integer values.Įach scriptblock has its own private set of 10 registers, numbered 0-9. NOTE: The timelimit_hit event in the gamemanager scriptblock is only triggered if wm_setwinner is set to a team. Set the team thats declared the winner in the intermission screen. If 5 minutes has elapsed, and the round timelimit is set to 10, there will be 5 minutes remaining. Spawns a bot into the game, with the given parameters. Sets s.aiState in the source code to 1, which I don't know what indicates. Stops the currently playing music, taking 'fade_time' to fade down. NOTE: Have a look af mu_start instead which seems to do the same as mu_play but does use the 'fade_time'.
NOTE: 'fadeup_time' seems to be broken since the source code never attempts to read it. Plays 'musicfile', spending 'fade_time' milliseconds working its way up to the music level. 'target_volume' is a floating point value between 0.0 and 1.0 The 'target_spawn' string is the 'description' key on the team_WOLF_objective.įades the current music to 'target_volume' in 'fade_time' milliseconds. Set the autospawn of a team to 'target_spawn'. Spawn rubble, use in combination with func_debris. Scripting Reference Table of contents Commandsĭescription of accum and cvar variables should be switched.Ĭommands Level interaction setglobalfog 0 Ĭhanges the global fog in a map to a specific color and density.