Difference between revisions of "Cheats"
(Created page with ":''See also: [https://springrts.com/wiki/UI_commands UI commands]'' There are several '''cheat''' commands that can be used in the game. == atm == Syntax: <code>/atm</code>...") |
(Undo junk edit) Tag: Undo |
||
(11 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
There are several '''cheat''' commands that can be used in the game. | There are several '''cheat''' commands that can be used in the game. | ||
− | == atm == | + | == Cheat mode == |
+ | Before any other cheat command can be used, cheating mode must be enabled. This is done by typing <code>/cheat</code> in console in singleplayer, or <code>!cheats</code> in multiplayer (the latter requires admin or room boss status). | ||
+ | * If <code>!cheats</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix) | ||
+ | |||
+ | Entering the command adds a new button on the global commands bar at the top of the screen that brings up a handy cheat menu: | ||
+ | |||
+ | [[File:Cheat_sheet_location.png]] | ||
+ | |||
+ | This menu allows to perform most common cheat actions. In addition, you can type commands manually for greater control, see the list below. Entering the command again, or unchecking the appropriate option in the menu, disables cheat mode, but any cheats already enabled (for example fast build) stay. | ||
+ | |||
+ | == Commands == | ||
+ | === atm === | ||
Syntax: <code>/atm</code> | Syntax: <code>/atm</code> | ||
Gives 1,000 metal and energy to the entering player's team. | Gives 1,000 metal and energy to the entering player's team. | ||
− | == | + | === destroy === |
− | + | Syntax: <code>/destroy</code> | |
− | |||
− | + | Instantly destroys currently selected units. | |
− | == give == | + | === give === |
− | Syntax: <code>/give [optional number] <unitname> [optional team number]</code> | + | Syntax: <code>/give [optional number] <unitname> [optional team number] [optional coordinates]</code> |
− | Spawns a given number of units at the location of the mouse cursor. Can also be used to spawn features, e.g. wreckage. | + | Spawns a given number of units at the location of the mouse cursor (or given coordinates). Can also be used to spawn features, e.g. wreckage. |
− | Unit names are the machine-facing identifiers rather than the human names, e.g. <code>cloakraid</code> for the [[Glaive]]. Unit names can be found on [https://github.com/ZeroK-RTS/Zero-K/tree/master/units GitHub] or in the source of the unit's page on the wiki. | + | Unit names are the machine-facing identifiers rather than the human names, e.g. <code>cloakraid</code> for the [[Glaive]]. Unit names can be found on [https://github.com/ZeroK-RTS/Zero-K/tree/master/units GitHub] or in the source of the unit's page on the wiki. Wrecks and debris of a unit typically have the same name, but with the <code>_dead</code> or <code>_heap</code> suffix, respectively. |
If no team is specified, will give to the player's current team, or the team currently being spectated. | If no team is specified, will give to the player's current team, or the team currently being spectated. | ||
− | == globallos == | + | Coordinates are given in the format <code>@xxx, yyy, zzz</code>. |
+ | |||
+ | === luarules give === | ||
+ | |||
+ | Syntax: <code>/luarules give</code> | ||
+ | |||
+ | Spawns one of each multiplayer unit and building (sorted by factory) in the top-left corner. | ||
+ | |||
+ | === globallos === | ||
Syntax: <code>/globallos [optional team number]</code> | Syntax: <code>/globallos [optional team number]</code> | ||
Enables/disables full map view for that team (no team specified means it applies to everyone). | Enables/disables full map view for that team (no team specified means it applies to everyone). | ||
− | == godmode == | + | === godmode === |
Syntax: <code>/godmode</code> | Syntax: <code>/godmode</code> | ||
When enabled, any player (including spectators) can give commands to units on any team. | When enabled, any player (including spectators) can give commands to units on any team. | ||
− | == nocost == | + | === nocost === |
Syntax: <code>/nocost</code> | Syntax: <code>/nocost</code> | ||
Enables/disables building everything for free and near-instantly. | Enables/disables building everything for free and near-instantly. | ||
+ | |||
+ | === team === | ||
+ | Syntax: <code>/team <number></code> | ||
+ | |||
+ | Switches control to the selected playerteam (multiple playerteams make up an allyteam, of which there are usually two in a game). | ||
+ | |||
{{Navbox manual}} | {{Navbox manual}} |
Latest revision as of 20:49, 17 September 2021
- See also: UI commands
There are several cheat commands that can be used in the game.
Contents
Cheat mode[edit]
Before any other cheat command can be used, cheating mode must be enabled. This is done by typing /cheat
in console in singleplayer, or !cheats
in multiplayer (the latter requires admin or room boss status).
- If
!cheats
fails to work, makesure ally/spectator chat mode is off (remove thea:
ors:
prefix)
Entering the command adds a new button on the global commands bar at the top of the screen that brings up a handy cheat menu:
This menu allows to perform most common cheat actions. In addition, you can type commands manually for greater control, see the list below. Entering the command again, or unchecking the appropriate option in the menu, disables cheat mode, but any cheats already enabled (for example fast build) stay.
Commands[edit]
atm[edit]
Syntax: /atm
Gives 1,000 metal and energy to the entering player's team.
destroy[edit]
Syntax: /destroy
Instantly destroys currently selected units.
give[edit]
Syntax: /give [optional number] <unitname> [optional team number] [optional coordinates]
Spawns a given number of units at the location of the mouse cursor (or given coordinates). Can also be used to spawn features, e.g. wreckage.
Unit names are the machine-facing identifiers rather than the human names, e.g. cloakraid
for the Glaive. Unit names can be found on GitHub or in the source of the unit's page on the wiki. Wrecks and debris of a unit typically have the same name, but with the _dead
or _heap
suffix, respectively.
If no team is specified, will give to the player's current team, or the team currently being spectated.
Coordinates are given in the format @xxx, yyy, zzz
.
luarules give[edit]
Syntax: /luarules give
Spawns one of each multiplayer unit and building (sorted by factory) in the top-left corner.
globallos[edit]
Syntax: /globallos [optional team number]
Enables/disables full map view for that team (no team specified means it applies to everyone).
godmode[edit]
Syntax: /godmode
When enabled, any player (including spectators) can give commands to units on any team.
nocost[edit]
Syntax: /nocost
Enables/disables building everything for free and near-instantly.
team[edit]
Syntax: /team <number>
Switches control to the selected playerteam (multiple playerteams make up an allyteam, of which there are usually two in a game).
The images and links on this page may be broken at the moment. The cache on this page points to the test wiki.
Please purge the cache to try to restore images and fix those links. This will work only if the page is not on the test server (where this box should appear for now even when cache purging is not needed), which may lack the actual images. This page thinks that it resides on test.zero-k.info right now. |