New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Configure Friendly Fire on Your SCP: Secret Laboratory Server
SCP: Secret LaboratorySCP: Secret LaboratoryConfigure Friendly Fire

How to Configure Friendly Fire on Your SCP: Secret Laboratory Server

Configure friendly fire on a SCP: Secret Laboratory server

4 min read
Aug 24, 2026

Using the config_gameplay.txt file you can enable damage between teammates (friendly fire) and configure the automatic teamkill detector.

Configure friendly fire

  1. Find out the Game Port
    Open the dashboard of your server and note the Game Port shown under Overview.

  2. Stop the server
    Stop your server via the dashboard.

  3. Connect via SFTP
    Connect to your server via SFTP.

  4. Open the configuration file
    Open the following file – replace <Port> with your Game Port:

    /.config/SCP Secret Laboratory/config/<Port>/config_gameplay.txt
    
  5. Adjust the values
    Pick one of the recipes below and apply its values. Edit existing entries directly in the file; if a key is missing, add it as a new line in the format key: value.

  6. Start the server
    Save the file and start your server via the dashboard.

Basic settings

Key Default Description
friendly_fire false Enables or disables damage between teammates
friendly_fire_multiplier 0.4 Multiplier for damage dealt to teammates (0.4 = 40% of normal damage)

The teamkill detector

The detector tracks teamkills and team damage and punishes players automatically as soon as either threshold is reached – it counts kills or damage. There are five variants, each with its own time frame:

Variant Key prefix Enabled by default Time frame
Round ff_detector_round_ No the entire round
Life ff_detector_life_ No one life (until the next respawn)
Window ff_detector_window_ No rolling window of 180 seconds (ff_detector_window_seconds)
Spawn ff_detector_spawn_ Yes 120 seconds after spawning (ff_detector_spawn_window_seconds)
Explosion after disconnecting ff_detector_explosion_after_disconnecting_ Yes triggers when a player's explosion (e.g. a thrown grenade) hits teammates after the player has left the server

Each variant is configured with the same suffixes (the explosion variant has no _kills and _damage thresholds):

Suffix Meaning
_enabled Turns the variant on or off
_kills Number of teamkills that triggers the action (0 disables this threshold)
_damage Amount of team damage that triggers the action (0 disables this threshold)
_action Action to perform: kill, kick, ban or noop
_ban_time Ban duration when the action is ban (e.g. 24h)

Default values

Variant _enabled _kills _damage _action _ban_time
round false 6 500 ban 24h
life false 4 300 ban 24h
window false 3 250 ban 16h
spawn true 2 180 ban 48h
explosion_after_disconnecting true – – ban 48h

Actions

Value Effect
kill The player is killed
kick The player is kicked from the server
ban The player is banned for the duration set in _ban_time
noop No action – useful if you only want incidents to be logged

Recipes

Friendly fire with default detector

Enables friendly fire at 40% damage and keeps the detector at its default values:

friendly_fire: true
friendly_fire_multiplier: 0.4

With this, the spawn detector (48-hour ban at 2 teamkills or 180 team damage shortly after spawning) and the explosion detector (48-hour ban) are armed immediately. For a public server this is reasonable protection – just be aware that the server will ban players without your involvement.

Friendly fire without detector

Enables friendly fire and cleanly disables all five detector variants – for example for private servers or events where team damage is intended:

friendly_fire: true
ff_detector_round_enabled: false
ff_detector_life_enabled: false
ff_detector_window_enabled: false
ff_detector_spawn_enabled: false
ff_detector_explosion_after_disconnecting_enabled: false

The variants round, life and window already default to false – set all five explicitly anyway, so the state is clearly documented in your configuration.

Detector on kick instead of ban

Keeps the protection against teamkillers but replaces all automatic bans with a kick:

friendly_fire: true
ff_detector_round_action: kick
ff_detector_life_action: kick
ff_detector_window_action: kick
ff_detector_spawn_action: kick
ff_detector_explosion_after_disconnecting_action: kick
Written byEmeraldHost Team
Last updated on Aug 24, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
SCP: Secret Laboratory

Ready to get started?

Rent your SCP: Secret Laboratory Server now

Join our Discord community 1257 members online right now