RepositoryC#GBVương quốc Anh
B3none

B3none/cs2-retakes

CS2 implementation of retakes. Based on the version for CS:GO by Splewis.

323sao
70fork
3issue
3lượt xem

GitHub Downloads GitHub Actions Workflow Status

CS2 Retakes

CS2 implementation of retakes written in C# for CounterStrikeSharp. Based on the version for CS:GO by Splewis.

Share the love

If you appreciate the project then please take the time to star the repository 🙏

Star us

Features / Roadmap

  • Bombsite selection
  • Per map configurations
  • Ability to add spawns
  • Spawn system
  • Temporary weapon allocation (hard coded)
  • Temporary grenade allocation (hard coded)
  • Equipment allocation
  • Queue manager (Queue system)
  • Team manager (with team switch calculations)
  • Retakes config file
  • Add translations
  • Improve bombsite announcement
  • Queue priority for VIPs
  • Add autoplant
  • Add a command to view the spawns for the current bombsite
  • Add a command to delete the nearest spawn
  • Implement better spawn management system
  • Add a release zip file without spawns too

Installation

  1. Install CounterStrike Sharp and Metamod:Source
  2. Download the plugin from the releases section:
    • RetakesPlugin-[version].zip - Includes pre-configured map spawns (recommended for new installations)
    • RetakesPlugin-[version]-no-map-configs.zip - Without map configurations (for custom setups)
  3. Unzip the archive and upload it to the game server into your addons/counterstrikesharp/ directory.
  4. Start the server and wait for the config.json file to be generated in addons/counterstrikesharp/configs/plugins/RetakesPlugin.
  5. Complete the configuration file with the parameters of your choice.

Recommendations

I also recommend installing these plugins for an improved player experience

Allocators

Although this plugin comes with it's own weapon allocation system, I would recommend using one of the following plugins for a better experience:

If you'd like to add your own allocator here, make a PR to add it :+1:

Configuration

When the plugin is first loaded it will create a retakes_config.json file in the plugin directory. This file contains all of the configuration options for the plugin:

GameSettings

ConfigDescriptionDefaultMinMax
MaxPlayersThe maximum number of players allowed in the game at any time. (If you want to increase the max capability you need to add more spawns)9210
MinimumPlayersThe minimum number of human players needed before a retake will start. Below this the server waits in warmup. 0 (default) disables this behaviour; set it to e.g. 2 to enable it. Values above MaxPlayers are clamped.00MaxPlayers
ShouldBreakBreakablesWhether to break all breakable props on round start (People are noticing rare crashes when this is enabled).falsefalsetrue
ShouldOpenDoorsWhether to open doors on round start (People are noticing rare crashes when this is enabled).falsefalsetrue
EnableFallbackAllocationWhether to enable the fallback weapon allocation. You should set this value to false if you're using a standalone weapon allocator.truefalsetrue

QueueSettings

ConfigDescriptionDefaultMinMax
QueuePriorityFlagA list of priority flag configurations. Each entry contains DisplayName, Flag, and Priority. Players with higher priority can replace players with lower priority in the queue.[{"DisplayName": "VIP", "Flag": "@css/vip", "Priority": 0}]0100
QueueImmunityFlagA list of immunity flag configurations. Each entry contains DisplayName, Flag, and Priority. Players with immunity priority cannot be replaced by players with equal or lower priority.[{"DisplayName": "VIP", "Flag": "@css/vip", "Priority": 0}]0100
ShouldRemoveSpectatorsWhen a player is moved to spectators, remove them from all retake queues. Ensures that AFK plugins work as expected.truefalsetrue
ShouldAutoJoinSpectatorsWhether to move newly connected players to spectators and open the team menu for them.truefalsetrue
ShouldAutoJoinGameWhether to automatically put newly connected players into the game without showing the team menu: straight in during warmup, otherwise into the queue to be pulled in at the next round. Takes priority over ShouldAutoJoinSpectators.falsefalsetrue

QueuePriorityFlag and QueueImmunityFlag Configuration: Each flag configuration object has the following properties:

  • DisplayName: The display name shown in messages (e.g., "VIP", "VIP Plus")
  • Flag: The CSS permission flag (e.g., "@css/vip", "@css/vipplus")
  • Priority: The priority value (higher numbers = higher priority). Valid range: 0-100

Example Configuration:

{
  "QueuePriorityFlag": [
    {"DisplayName": "VIP", "Flag": "@css/vip", "Priority": 0},
    {"DisplayName": "VIP Plus", "Flag": "@css/vipplus", "Priority": 100}
  ],
  "QueueImmunityFlag": [
    {"DisplayName": "VIP", "Flag": "@css/vip", "Priority": 0},
    {"DisplayName": "VIP Plus", "Flag": "@css/vipplus", "Priority": 100}
  ]
}

In this example:

  • Players with @css/vip have priority 0
  • Players with @css/vipplus have priority 100
  • VIP Plus players can replace VIP players and regular players
  • VIP players can replace regular players but not VIP Plus players
  • Immunity works the same way: players with higher immunity priority cannot be replaced by players with equal or lower priority

Example: Disabling Slot Priority and Immunity: To disable slot priority and immunity features, set both arrays to empty:

{
  "QueuePriorityFlag": [],
  "QueueImmunityFlag": []
}

TeamSettings

ConfigDescriptionDefaultMinMax
TerroristRatioThe percentage of the total players that should be Terrorists.0.4501
RoundsToScrambleThe number of rounds won in a row before the teams are scrambled.5-199999
IsScrambleEnabledWhether to scramble the teams once the RoundsToScramble value is met.truefalsetrue
IsBalanceEnabledWhether to enable the default team balancing mechanic.truefalsetrue
ShouldForceEvenTeamsWhenPlayerCountIsMultipleOf10Whether to force even teams when the active players is a multiple of 10 or not. (this means you will get 5v5 @ 10 players / 10v10 @ 20 players)truefalsetrue
ShouldPreventTeamChangesMidRoundWhether or not to prevent players from switching teams at any point during the round.truefalsetrue

MapConfigSettings

ConfigDescriptionDefaultMinMax
EnableBombsiteAnnouncementVoicesWhether to play the bombsite announcement voices.falsefalsetrue
EnableBombsiteAnnouncementCenterWhether to display the bombsite in the center announcement box.truefalsetrue
EnableFallbackBombsiteAnnouncementWhether to enable the fallback bombsite announcement.truefalsetrue
EnablePlantLocationAnnouncementWhether to tell the Terrorists where the bomb was planted (e.g. "planted for Short"). Uses the optional PlantLocation name on the planter spawn in the map config, falling back to the bombsite letter.falsefalsetrue

BombSettings

ConfigDescriptionDefaultMinMax
IsAutoPlantEnabledWhether to enable auto bomb planting at the start of the round or not.truefalsetrue

DebugSettings

ConfigDescriptionDefaultMinMax
IsDebugModeWhether to enable debug output to the server console or not.falsefalsetrue

ConVars

ConVarDescriptionDefault
retakes_enabledEnable / disable the retakes gameplay on the fly without unloading the plugin. When set to 0 the plugin stops managing teams, spawns and rounds so you can e.g. practice grenades. Setting it back to 1 restores retakes and restarts the game.1

Server config files

When the plugin first loads it creates two config files in cfg/cs2-retakes/:

  • retakes.cfg is executed on every map start and contains the convars required for retakes to work, plus some you may want to tweak.
  • retakes_unload.cfg is executed when the plugin is unloaded, and restores the convars that retakes.cfg changes back to sensible defaults. Adjust it to suit your server.

Commands

General Commands

CommandArgumentsDescriptionPermissions
!forcebombsite<A / B>Force the retakes to occur from a single bombsite.@css/root
!forcebombsitestopClear the forced bombsite and return back to normal.@css/root
!scrambleScrambles the teams next round.@css/admin
!scrambleteamsScrambles the teams next round (alias).@css/admin
!voicesToggles whether or not to hear the bombsite voice announcements.
css_debugqueuesSERVER ONLY Shows the current queue state in the server console.

Spawn Editor Commands

CommandArgumentsDescriptionPermissions
!showspawns<A / B>Show the spawns for the specified bombsite.@css/root
!spawns<A / B>Show the spawns for the specified bombsite (alias).@css/root
!edit<A / B>Show the spawns for the specified bombsite (alias).@css/root
!addspawn<CT / T> <Y / N (can be planter)> [plant location name]Adds a retakes spawn point for the bombsite spawns currently shown. The optional plant location name (e.g. "Short") is stored on planter spawns and used by EnablePlantLocationAnnouncement.@css/root
!add<CT / T> <Y / N (can be planter)> [plant location name]Adds a retakes spawn point (alias).@css/root
!newspawn<CT / T> <Y / N (can be planter)> [plant location name]Adds a retakes spawn point (alias).@css/root
!new<CT / T> <Y / N (can be planter)> [plant location name]Adds a retakes spawn point (alias).@css/root
!removespawnRemoves the nearest spawn point for the bombsite currently shown.@css/root
!removeRemoves the nearest spawn point (alias).@css/root
!deletespawnRemoves the nearest spawn point (alias).@css/root
!deleteRemoves the nearest spawn point (alias).@css/root
!nearestspawnTeleports the player to the nearest spawn.@css/root
!nearestTeleports the player to the nearest spawn (alias).@css/root
!hidespawnsExits the spawn editing mode.@css/root
!doneExits the spawn editing mode (alias).@css/root
!exiteditExits the spawn editing mode (alias).@css/root

Map Config Commands

CommandArgumentsDescriptionPermissions
!mapconfigForces a specific map config file to load.@css/root
!setmapconfigForces a specific map config file to load (alias).@css/root
!loadmapconfigForces a specific map config file to load (alias).@css/root
!mapconfigsDisplays a list of available map configs.@css/root
!viewmapconfigsDisplays a list of available map configs (alias).@css/root
!listmapconfigsDisplays a list of available map configs (alias).@css/root

Stay up to date

Subscribe to release notifications and stay up to date with the latest features and patches:

image

Credits

This was inspired by the CS:GO Retakes project written by splewis.

Server Hosting (Discounted)

Looking for reliable server hosting? Dathost offers top-tier performance, easy server management, and excellent support, with servers available in multiple regions across the globe. Whether you're in North America, Europe, Asia, or anywhere else, Dathost has you covered. Use this link to get 30% off your first month. Click here to get started with the discount!

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
shobhit-pathak/MatchZy

MatchZy is a plugin for CS2 (Counter Strike 2) for running and managing practice/pugs/scrims/matches with easy configuration and Get5 (G5API/G5V) support as well!

510
Nov 13, 2026
RepositoryC#
NockyCZ/CS2-Deathmatch

Custom Deathmatch CS2 plugin (Includes custom spawnpoints, multicfg, gun selection, spawn protection, etc).

136
Oct 9, 2026
RepositoryC#
NockyCZ/CS2-Discord-Utilities

Plugin for communication between your CS2 server and your Discord server

93
Jul 18, 2026
RepositoryC#
ianlucas/cs2-css-inventory-simulator

A CounterStrikeSharp plugin for integrating with CS2 Inventory Simulator

149
Nov 18, 2026
RepositoryC#
B3none/cs2-instadefuse

Allows a CT to instantly defuse the bomb when nothing can prevent defusal. Written in C# for CounterStrikeSharp.

69
Oct 26, 2026
RepositoryC#
HerrMagiic/CSS-CreateCustomCommands

The Custom Commands Plugin allows you to create and customize commands for your server. These commands can display messages, perform server-side actions, and more.

63
Apr 14, 2026
RepositorySCSS
counterstrikesharp-panel/css-bans

CSS-BANS is an admin web panel for Counter-Strike 2, powered by CounterStrikeSharp. It allows for comprehensive management of bans, mutes, VIP statuses, skins, ranks, and more on your CS2 servers.

146
Oct 7, 2026
Repository
ianlucas/cs2-signatures

A tracking repository for Counter-Strike 2 server signatures

127
Dec 1, 2026
RepositoryC#
roflmuffin/CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2

1.4k
Dec 1, 2026