Skip to content

Counter Strike 1.6 - Vanilla

Counter Strike 1.6 - Vanilla Counter-Strike: 1.6 is a multiplayer first-person shooter video game developed by Valve Corporation.

egg-counter-strike-1-6-vanilla.json

updated

Ports

Add an allocation on the node for each port.

  • Game 27015
  • Source TV 27020
  • Client 27005
  • Steam 26900

Install

Installer image
ghcr.io/ptero-eggs/installers:debian
Steam app
90
Steam login
optional
Install script
65 lines

Image

  • source image ghcr.io/ptero-eggs/games:source

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

10 variables

Startup command

./hlds_run -console 27015 -game cstrike -secure +port 27015 +sv_lan 0 +maxplayers 32 +map de_dust2 +sys_ticrate 1200 -pingboost 2 -norestart

Dotted values come from the server settings. These values are examples.

  • This sets the hostname of the server. Example: "My Custom CS 1.6 Server"

    HOSTNAMEUsers can edit

    required|string|max:128

  • SRV_SLOTSUsers can edit

    required|string|max:20

  • SRV_STARTMAPUsers can edit

    required|string|max:20

  • SRV_PINGBOOSTUsers can edit

    required|string|max:20

  • The ID corresponding to the game to download and run using HLDS. The HLDS server ID is 90. This should not be changed.

    SRCDS_APPIDUsers cannot see

    required|numeric|in:90

  • Leave empty for the public branch, for the legacy version select steam_legacy.

    SRCDS_BETAIDUsers can edit

    nullable|string

  • Username associated wanted to be used. Not needed.

    STEAM_USERUsers cannot see

    nullable|string

  • Steam Password for account. Not needed.

    STEAM_PASSUsers cannot see

    nullable|string

  • Steam authenticator code for the account. Not Needed.

    STEAM_AUTHUsers cannot see

    nullable|string

  • SRV_SECUREUsers can edit

    required|string|max:20

Wings

Stop command
quit
Running when the console shows
Connection to Steam servers successful

Readme

Counter-Strike: 1.6

Description

Counter-Strike 1.6

Play the world's number 1 online action game. Engage in an incredibly realistic brand of terrorist warfare in this wildly popular team-based game. Ally with teammates to complete strategic missions. Take out enemy sites. Rescue hostages. Your role affects your team's success. Your team's success affects your role.

System Requirements

Component Minimum Recommended
Processor - -
RAM 1 GB 2 GB
Storage 2 GB 5 GB

Server Ports

Ports required to run the server in a table format.

Port default
Game 27015
Source TV 27020
Client 27005
Steam 26900

Notes

27015 is the default port, but any port can be used. The only required port is the Game port, server can run perfectly fine without other allocations.

Changes

  1. Counter strike 1.6 updates (#74)

    · Red Banana · e450925

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 65 lines bash in ghcr.io/ptero-eggs/installers:debian Show
#!/bin/bash
# steamcmd Base Installation Script
#
# Server Files: /mnt/server
## download and install steamcmd
# Ensure Steam credentials are set
if [[ -z "${STEAM_USER}" ]] || [[ -z "${STEAM_PASS}" ]]; then
    echo -e "Steam user is not set."
    echo -e "Using anonymous login."
    STEAM_USER=anonymous
    STEAM_PASS=""
    STEAM_AUTH=""
else
    echo -e "User set to ${STEAM_USER}"
fi

cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
cd /mnt/server/steamcmd

# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server

## install game using steamcmd
./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6
# Needed for cs 1.6
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /mnt/server +app_update "90 -beta Beta" validate +quit ## looking at cs 1.6

# Ensure listip.cfg exists
if [[ ! -f "/mnt/server/cstrike/listip.cfg" ]]; then
    echo "// This file stores banned IPs" > /mnt/server/cstrike/listip.cfg
    echo "Created listip.cfg..."
else
    echo "listip.cfg already exists."
fi

# Ensure banned.cfg exists
if [[ ! -f "/mnt/server/cstrike/banned.cfg" ]]; then
    echo "// This file stores banned Steam IDs and IPs" > /mnt/server/cstrike/banned.cfg
    echo "Created banned.cfg..."
else
    echo "banned.cfg already exists."
fi

# Ensure server.cfg hostname is up-to-date
SERVER_CFG_PATH="/mnt/server/cstrike/server.cfg"
if [[ -f "$SERVER_CFG_PATH" ]]; then
    sed -i "s/^hostname .*/hostname \"${HOSTNAME}\"/" "$SERVER_CFG_PATH"
fi

## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so

## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so

echo "-----------------------------------------"
echo "Installation Complete!"
echo "-----------------------------------------"