Skip to content

Counter-Strike 1.6 Dedicated Server with bots

Notifications You must be signed in to change notification settings

Colonizator1/cstrike-with-bots

 
 

Repository files navigation

Counter Strike 1.6 🎮

Docker image size

Pass the environment variables

Environment variable Default value
SERVER_NAME Counter-Strike 1.6 Server
START_MAP de_dust2
MAXPLAYERS 32
START_MONEY 800
BUY_TIME 0.25
FRIENDLY_FIRE 1
MAP_AUTOKICK 0
ROUNDTIME 3
TIMELIMIT 15
WINLIMIT 5
MAP_VOTE_RATIO 0.6
MAP_FREEZETIME 3
ADMIN_STEAM
MAP_AUTOTEAMBALANCE 0
MAP_MAXROUNDS 0
USE_VOTEMAP
RCON_PASSWORD
SERVER_PASSWORD

Terraform

cd terraform/*provider*
terraform init
terraform plan
terraform apply #type 'yes'
terraform destroy #kill type 'yes'

Docker

docker build . -t counter-strike
docker run -d --name counter-strike counter-strike

or

docker run -d -p 26900:26900/udp -p 27020:27020/udp -p 27015:27015/udp -p 27015:27015 -e ADMIN_STEAM=0:1:1234566 --name counter-strike malditoidealismo/counter-strike:latest

Docker compose

docker-compose build
docker-compose up -d
docker-compose down #kill

Modify to your liking

(Re) Build the image and run it (or upload to cloud registry)

Attributions

This project is based on counter-strike-docker, developed by Artem Panchenko.

Changes from original project

  • Steamcmd download and update error solution: local files.
  • Extract names from maps and configure automatically.
  • Terraformed.
  • Docker compose.
  • Added new maps.
  • Added new parameters in run script.

TIPS

How to add new bots?

Run in the console: rcon_password "123456789" then... rcon "pb_passwordkey" "_pbadminpw" then... rcon "pb_password" "asdf" then... setinfo "_pbadminpw" "asdf"

then use commands: pb add [skill [personality [team [model [name]]]]]

More details about pb commands here

About

Counter-Strike 1.6 Dedicated Server with bots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pawn 36.5%
  • ReScript 30.9%
  • SourcePawn 20.0%
  • HTML 5.7%
  • C++ 3.6%
  • SuperCollider 2.3%
  • Other 1.0%