Difference between revisions of "Cheats"

From Zero-K
Jump to navigation Jump to search
(/give: coordinates, wreck names, luarules.)
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
== Cheat mode ==
 
== 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.
+
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)
 
* If <code>!cheats</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix)
  
Line 13: Line 13:
  
 
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 ===
Line 25: Line 30:
 
Coordinates are given in the format <code>@xxx, yyy, zzz</code>.
 
Coordinates are given in the format <code>@xxx, yyy, zzz</code>.
  
== luarules give ==
+
=== luarules give ===
  
 
Syntax: <code>/luarules give</code>
 
Syntax: <code>/luarules give</code>
Line 46: Line 51:
 
Enables/disables building everything for free and near-instantly.
 
Enables/disables building everything for free and near-instantly.
  
=== destroy ===
+
=== team ===
Syntax: <code>/destroy</code>
+
Syntax: <code>/team <number></code>
  
Instantly destroys currently selected units.
+
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}}

Revision as of 19:03, 27 April 2018

See also: UI commands

There are several cheat commands that can be used in the game.

Cheat mode

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 the a: or s: prefix)

Entering the command again disables cheat mode.

Commands

atm

Syntax: /atm

Gives 1,000 metal and energy to the entering player's team.

destroy

Syntax: /destroy

Instantly destroys currently selected units.

give

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

Syntax: /luarules give

Spawns one of each multiplayer unit and building (sorted by factory) in the top-left corner.

globallos

Syntax: /globallos [optional team number]

Enables/disables full map view for that team (no team specified means it applies to everyone).

godmode

Syntax: /godmode

When enabled, any player (including spectators) can give commands to units on any team.

nocost

Syntax: /nocost

Enables/disables building everything for free and near-instantly.

team

Syntax: /team <number>

Switches control to the selected playerteam (multiple playerteams make up an allyteam, of which there are usually two in a game).