Skip to content
/SLASHPLAY

How to stop players killing friendly NPCs in Sven Co-op

Type mp_npckill 2 in the Console tab of your server page. Friendly NPCs can still be hurt by enemies.

mp_npckill

Sets what can hurt friendly NPCs: 0 nothing, 1 anything, 2 anything but players.

mp_npckill <0|1|2>

Examples

mp_npckill 2

Players can't kill friendly NPCs.

Values

ValueWhat it does
0 Nothing can damage friendly NPCs
1Default Anything can damage them
2 Anything but players can damage them

Arguments

0|1|2Required
Who can damage friendly NPCs.

What it does

Set 2 to stop players from killing allies such as scientists and guards, by accident or not.

Good to know

  • Sven Co-op's default_map_settings.cfg sets it to 1 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.