Skip to content

onlyzaps/CS2-Extra-Spawns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CS2-Extra-Spawns (CounterStrikeSharp Plugin)

Automatically generates additional spawn points for both Terrorists and Counter-Terrorists, ensuring large servers (up to 64 players) never run out of spawn locations.

NOTE: This is for servers using mp_solid_teammates 2 by default. I will be releasing a version that reads the intended value from a config (For people using 0 or 1) at a later date.

✨ Features

✅ Ensures up to 32 spawns per team (info_player_terrorist and info_player_counterterrorist entities).

✅ Places new spawns offset around existing ones, keeping natural flow and orientation.

✅ Runs automatically — Once every round start.

✅ Optional command (css_spawns) to manually force spawn generation.

✅ Works on any map, no editing required.

⚙️ How It Works

Checks for completion every five seconds after round start.

Detect existing spawns: Finds all info_player_terrorist and info_player_counterterrorist entities.

Check requirements: Each side should have 32 spawns. If there are enough already, nothing happens.

Clone with offsets: New spawn points are created by cloning the originals and shifting them slightly:

+/-1 to +/-2 units X and Y

Stop when filled: The process repeats until the team has 32 spawns total.

Visually, each original spawn gets up to four new neighbors in a tight cross pattern:

image

The new player spawns will appear right on top of the existing ones when beginning a round.

The mp_solid_teammates cvar is set to 0 for three seconds, and then back to 2 at the beginning of every round.

📦 Installation

Install MetaMod and CounterStrikeSharp

Place the compiled plugin .dll in your server’s addons/counterstrikesharp/plugins/ExtraSpawns folder.

Restart the server or run the command:

css_plugins load ExtraSpawns.

🔧 Commands Command Description css_spawns Manually generate extra spawns for both teams.

📝 Example Console Output [ExtraSpawns] Added 12 spawns for info_player_terrorist. [ExtraSpawns] Added 8 spawns for info_player_counterterrorist. [ExtraSpawns] Spawns created, stopping checks.

📌 Notes, TL;DR

The plugin does not overwrite existing spawns — it only adds more.

If the map already has 32 spawns per team, no new spawns are added.

Once spawns are successfully generated, generation timers stop forever (until next map).

👤 Author

Vindict6 (BONE) - Version: 2.0.0

DESIGNED FOR ONLYZAPS.GG

JOIN US FOR A SHOCKINGLY GOOD TIME

About

A CounterStrikeSharp plugin that dynamically generates 64 spawns per map.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages