Command Guide

Rcycle#

This command is the main command to view the state of randomizer, and to activate randomizer.

Info#

With no arguments provided, /rcycle will list all the active scenes and the variants:

Active Scenes (4/11):
    cocomello-slide: variant #0
    alt-defend: variant #0
    alt-lighttower: variant #0
    item-block: variant #0

The 4/11 shows there was 4 scenes selected, out of a possible 11

Running randomizations#

If you want to manually run a randomization, or trigger a new one you can specify do that by providing an flag. /rcycle <flag(s)> where flag is the Value from the table: Multiple can be run at the same time by adding them together

Flag NameValueDescription
[None]0Normal operation
All Scenes1Picks every scene, with the chance being 100%
All Variants2Loads every variant of loaded scenes
Refresh4Loads fresh data from disk
Force Active8Bypasses random chance, making it 100% active

Lastly, the difference between All Scenes and Force Active when running from the command is identical, its just listed here for documentation sake. Internally there is a small difference.

Examples#

  • Show every scene and every variant /rcycle 3
  • Show every scene with a random variant /rcycle 1
  • Run normally /rcycle 0

Rbuild#

This command allows you to create scenes easily

Subcommands: 

  • new - Creates a new empty file and loads it, overwriting any existing file
  • load / save - Loads a file if there is one, and saves
    • Stored in SOURCEMOD_ROOT/data/randomizer/%map%.json
      • %map% being the current map's id
  • menu - Opens the UI menu
  • sel / selector - Starts selector to add entities to variant in scene
  • spawner - Starts the prop spawner
  • cursor ["hammerid"/"targetname"] - Adds looked at entity to current scene variant
    • If hammerid or targetname argument specified, it will instead move the entity instead of adding a new one
  • entityid <entityid> ["hammerid"/"targetname"] - Adds entity by its id Same as above, if the 2nd args included
  • fire - Adds a fire to current variant
  • decal - Adds a decal at your cursor position to variant
  • light - Adds a default light at current position to variant
  • wall - Creates a basic (size 15x30x100) invisible wall at position to variant
  • gascan - Adds a gascan spawner at current position to variant
  • scenes blank - lists all scenes, and which one is selected
    • new <name:string> <chance:0.0-1.0> Creates new scene with name and given % chance in decimal select <name:string> Selects the scene and its first variant
    • variants
      • blank / no args - lists all variants and which one is selected
      • new - Creates a new variant
      • select <index:integer> - Selects variant, -1 for global