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 Name | Value | Description |
|---|---|---|
| [None] | 0 | Normal operation |
| All Scenes | 1 | Picks every scene, with the chance being 100% |
| All Variants | 2 | Loads every variant of loaded scenes |
| Refresh | 4 | Loads fresh data from disk |
| Force Active | 8 | Bypasses 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 fileload/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
- Stored in
menu- Opens the UI menusel/selector- Starts selector to add entities to variant in scenespawner- Starts the prop spawnercursor ["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 includedfire- Adds a fire to current variantdecal- Adds a decal at your cursor position to variantlight- Adds a default light at current position to variantwall- Creates a basic (size 15x30x100) invisible wall at position to variantgascan- Adds a gascan spawner at current position to variantscenesblank - lists all scenes, and which one is selectednew <name:string> <chance:0.0-1.0>Creates new scene with name and given % chance in decimalselect <name:string>Selects the scene and its first variantvariants- blank / no args - lists all variants and which one is selected
new- Creates a new variantselect <index:integer>- Selects variant, -1 for global