Skip to content
/SLASHPLAY

How to make NPCs fight without players nearby in Sven Co-op

Type sv_ai_enemy_detection_mode 1 in the Console tab of your server page. NPCs then scan for enemies all the time.

sv_ai_enemy_detection_mode

Lets NPCs look for enemies and fight even with no player nearby. Default 0, as in Half-Life.

sv_ai_enemy_detection_mode <0|1>

Examples

sv_ai_enemy_detection_mode 1

NPCs always scan for enemies.

Arguments

0|1Required
1 turns it on, 0 turns it off.

What it does

With 1 allies and enemies fight on their own across the map, which costs more CPU.

Good to know

  • Sven Co-op's default_map_settings.cfg sets it to 0 when each map loads, and a map's own .cfg can set its own value. On SLASHPLAY, type it in the Console tab to change it for the current map.

Run it on your server

Type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to svencoop/server.cfg in the Files tab: Sven Co-op runs it at every map change. New to this? Start a Sven Co-op server first.

Your own
Sven Co-op server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.