Sv cheats: Difference between revisions
Jump to navigation
Jump to search
Warning:Some games (

) try to set certain cheat protected cvars on start up. One of them is
Workaround: Set r_farz to -1 in autoexec or launch parameter if 30000 is undesired
Bug:In
Left 4 Dead 2, connecting to servers with cheats off will prevent you from being able to turn it back on for the rest of the session.
Workaround: Creating a lobby allows you to re-enable cheats. [todo tested in ?]
Important:In older version of
GoldSrc, prior to an update (since SteamPipe or 2019 update), a map restart, changelevel, or simply save and reload game is required in order to fully enable cheats.
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
{{Syntax|sv_cheats <boolean>}} | {{Syntax|sv_cheats <boolean>}} | ||
{{warning|Some games ({{portal}}{{tf2}}{{l4d2}}) try to set certain cheat protected cvars on start up. One of them is {{cmd|r_farz|30000}} which means if game is started with sv_cheats on either by using -dev or +sv_cheats 1 launch parameters r_farz will be 30000 overriding {{ent|env_fog_controller}} settings. (r_farz default is -1 which makes the game use env_fog_controller settings) <br>{{workaround}} | {{warning|Some games ({{portal}}{{tf2}}{{l4d2}}) try to set certain cheat protected cvars on start up. One of them is {{cmd|r_farz|30000}} which means if game is started with sv_cheats on either by using -dev or +sv_cheats 1 launch parameters r_farz will be 30000 overriding {{ent|env_fog_controller}} settings. (r_farz default is -1 which makes the game use env_fog_controller settings) <br>{{workaround}} Set r_farz to -1 in autoexec or launch parameter if 30000 is undesired}} | ||
{{Bug|tested={{hl2}}|Enabling cheats, optionally use any command marked as cheats, then disabling cheats, [[save]] (after disabling cheats) & [[load]] the game will allow you to earn achievements again.}} | {{Bug|tested={{hl2}}|Enabling cheats, optionally use any command marked as cheats, then disabling cheats, [[save]] (after disabling cheats) & [[load]] the game will allow you to earn achievements again.}} | ||
{{Important|In older version of {{gldsrc|4}}, prior to an update (since SteamPipe or 2019 update), a map restart, [[changelevel]], or simply [[save]] and [[load|reload]] game is required in order to fully enable | {{Bug|In {{l4d2|4}}, connecting to servers with cheats off will prevent you from being able to turn it back on for the rest of the session.<br>{{workaround}} Creating a lobby allows you to re-enable cheats.}} | ||
{{Important|In older version of {{gldsrc|4}}, prior to an update (since SteamPipe or 2019 update), a map restart, [[changelevel]], or simply [[save]] and [[load|reload]] game is required in order to fully enable cheats.}} | |||
{{expand|title=Third-Party notices {{tsp}}| | {{expand|title=Third-Party notices {{tsp}}| | ||
Latest revision as of 01:15, 26 October 2025
sv_cheats is a console variable available in all
GoldSrc,
Source, and
Source 2 games.
This boolean cvar enables/disables cheats on the server. In most games, enabling cheats will disable achievements.
It also gives you access to commands that would normally be abused or misused by players. When building maps, you may want this as a startup command.
Syntax: sv_cheats <boolean>
r_farz 30000 which means if game is started with sv_cheats on either by using -dev or +sv_cheats 1 launch parameters r_farz will be 30000 overriding env_fog_controller settings. (r_farz default is -1 which makes the game use env_fog_controller settings) |
|
See also
Below are some typical cheats which gamers may find useful. Developers may also find these useful for bug testings and specific testing on in-game worlds.
god- "God Mode": Player becomes invincible. Type again to turn off.impulse 101- Equip the player with a full loadout of equipment, or gives player max money amount ($16000) in all Counter-Strike games.impulse 203- Remove an entity.give <entity name>- Give the player the item, weapon, entity or asset stated.noclip- Toggle the player collision with the environment and other objects. Allows the player to fly through walls, etc. Type again to turn off.notarget- Toggle NPC detection of the player. The player will still activate trigger entities, etc. Type again to turn off.