From Sven Co-op
Jump to navigation Jump to search

The cheat commands built-in to Sven Co-op can only be used under certain conditions:

  • If the server is for Internet players, it cannot have a maximum capacity of more than 3 players. LAN servers do not have this restriction.
  • If CVAR "sv_cheats" is 1 anybody can use cheat commands.
  • If CVAR "sv_cheats" is 2 only server administrators can use cheats, and will not be subject to the server capacity restriction.
  • If CVAR "sv_cheats" is 3 only server owners/operators can use cheats, and will not be subject to the server capacity restriction.
  • If CVAR "sv_cheats" is 255 anybody can use engine diagnostic settings (such as gl_wireframe) even in a multi-player game.

If a cheat command is attempted and these conditions are not met the player is told why, and the server will log this event (or print it in the console if logging is disabled).

Cheat commands are useful for private testing sessions, particularly for map authors as they provide some useful controls and limited debugging capabilities. If this is for you we advise you check the provided file "map_test.cfg" as this contains a range of command aliases and bindings to help you do this.

Command Parameters Description
Basic modes
godmode 0 = disable
1 = enable
Enable or disable god mode.
You will be immune to all damage against your health, but not HEV battery. A map entity can still forcibly kill you, and the kill command will still function as normal.
cl_noclip 0 = disable
1 = enable
Enable or disable no-clipping mode.
You will be flying instead of walking, and can move through solid matter like a ghost. You will not be non-solid yourself though, meaning NPC's can still touch/damage you, and you will still interact with brush based triggers.
cl_notarget 0 = disable
1 = enable
Enable or disable non-targetable mode.
You will be completely invisible to all NPC's, though they can still hear you (they will try to find you), and can damage you by accident.
cl_nonsolid 0 = disable
1 = enable
Enable or disable non-solid mode.
You will become non-solid like a ghost, thus players, NPC's, and brushes can pass through you without touching/damaging you. If something moves inside you and stays there however, you will be unable to move away as that other object is still solid. You will also not take damage from solid type objects (bullets/blades/etc), but particle type damage (explosions/fire/freeze) will still hurt you.
cl_invisible 0 = disable
1 = enable
Combines cl_notarget with the added effect of invisible rendering, so no other player or observer can physically see you.
Equipment & status
give Weapon/ammo/item name Give yourself some equipment (weapons, ammo, and items).
Names should reflect the entity name of the equipment, for example weapon_shotgun, ammo_rpg, or item_longjump. You cannot use this to obtain item_inventory based items, use the trigger command instead.
You can technically give yourself any entity (such as a monster), but be warned the effects can be anything from humorous to catastrophic.
impulse 101
N/A Give yourself every weapon in the game with some ammo for it. The minigun and shock rifle are omitted due to their exclusive usage constraint.
givepoints Number Give yourself score/points. You can use a negative value to deduct points.
reviveme N/A Revive yourself if you've been killed. You will be revived with half health.
healme N/A Fully restores your health.
chargeme N/A Fully charges your HEV suit battery.
mygravity Multiplier, or none to reset. Adjust your gravity.
myfriction Multiplier, or none to reset. Adjust your friction.
Map testing/debugging
teleport Co-ordinates as X Y Z Teleport yourself to specific co-ordinates.
myinfo N/A Show detailed information about yourself.
thatinfo N/A Show detailed information about the entity being looked at.
ent_trigger_ahead N/A Trigger the entity being looked at.
ent_name_ahead N/A Show the name of the entity being looked at.
create Entity class name
Is player ally (0/1)
Scale multiplier
Create an entity by a class name.
Be careful when creating entities using precacheable resources, such as NPCs. If they don't already exist in the map (to be precached) creating such an entity will crash the server.
remove Map entity name Remove an entity by its target name.
trigger Map entity name
Use mode (on, off, set, toggle, or kill.)
Trigger an entity in the map by its target name.
This is best avoided for all but map authors, or those with good knowledge of the map in question. You as an entity will be passed to that entity as its activating and calling entity.