Skip to content

CS2 Minigame Respawn Killer using CounterStrikeSharp

Notifications You must be signed in to change notification settings

exd02/CSS_RespawnKiller

Repository files navigation

CSS_RespawnKiller

Description

This is a plugin for Minigame (mg) Course made with CounterStrikeSharp. This plugin can auto-detect when the RespawnKill is active in CS2 course maps. This plugin is a kind of port of Franc1sco Auto-Respawn for CS:GO. This plugin needs test with multiple players, I've only tested in my LocalServer. If you test or use this leave me a feedback!

Dependencies

Commands

If you change this commands you will write to a file CurrentMapName.json in the directory game\csgo\cfg\RespawnKiller\MapSettings\MapName.json

Command Argument Description
css_autodetectrespawnkill <0/1> Enable or disable auto detection for respawn kill. Enable this if the map don't have a respawn killer time.
css_setmaprespawntime <seconds> Set the respawn time in seconds for the map. 0 to ignore. If you're using this, it's recomended setting css_autodetectrespawnkill to 0.

Config

The config file path is game\csgo\addons\counterstrikesharp\configs\plugins\RespawnKiller\RespawnKiller.json. This file will be created after the plugin is runned once.

ConVar DefaultValue Description
ChatPrefix [RespawnKill] String containing the prefix used to print chat and console commands.
TimeDeadScreen 0.5f Time that takes to the player to be respawned after he's dead.
TimeBtwPlayerDeathsToDetectRespawnKill 2.5f Works only when css_autodetectrespawnkill is turned on. It will check the time betweeen the player death, if the time is smaller than this variable, it will turn off respawn.
LetPluginDecideForRoundEndConditions True Let the plugin decide when the round is going to end. It checks if all the players are dead every player death/disconnect/changeteam, and if they are, start a new round.
DebugMessages False Display debug messages in console

Usage

All the maps that doesn't have a config start by default with css_autodetectrespawnkill 1 and css_setmaprespawntime 0. If you change the values you will write to a .json in /csgo/cfg/RespawnKiller/MapSettings/{MapName}.json with your config value. These values will be executed every time this map is loaded.

To-Do

  • RespawnKill Auto-Detection
  • Timer to disable Respawn
  • Create a .json list with mapnames and their info
  • Create a function that checks for the round end conditions when a player die (end the round if the respawn time has ended and everyone is dead *except the replaybot*)
  • Translation suport
  • Test with more ppl (I've tested alone in my localserver)
  • Do more maps .json with their respawn information

Contact

Join the CounterStrikeSharp Discord and talk with me in my Plugin Post

About

CS2 Minigame Respawn Killer using CounterStrikeSharp

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages