From 38a01b229711405ee157819388ff4866bf6e96ef Mon Sep 17 00:00:00 2001 From: Kurounin Date: Tue, 23 Jul 2019 09:49:26 +0300 Subject: [PATCH] Add MAX_PLAYERS variable --- .../hlds_server/egg-custom-h-l-d-s-engine-game.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source_servers/hlds_server/egg-custom-h-l-d-s-engine-game.json b/source_servers/hlds_server/egg-custom-h-l-d-s-engine-game.json index 173dc848..692c7aa6 100644 --- a/source_servers/hlds_server/egg-custom-h-l-d-s-engine-game.json +++ b/source_servers/hlds_server/egg-custom-h-l-d-s-engine-game.json @@ -8,7 +8,7 @@ "author": "parker@parkervcp.com", "description": "This option allows modifying the startup arguments and other details to run a custom HLDS based game on the panel.", "image": "quay.io\/parkervcp\/pterodactyl-images:ubuntu_source", - "startup": ".\/hlds_run -console -game {{HLDS_GAME}} -port {{SERVER_PORT}} -sport {{VAC_PORT}} +map {{SRCDS_MAP}} +ip 0.0.0.0 -strictportbind -norestart", + "startup": ".\/hlds_run -console -game {{HLDS_GAME}} -port {{SERVER_PORT}} -sport {{VAC_PORT}} +map {{SRCDS_MAP}} +maxplayers {{MAX_PLAYERS}} +ip 0.0.0.0 -strictportbind -norestart", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Connection to Steam servers successful\",\r\n \"userInteraction\": []\r\n}", @@ -58,6 +58,15 @@ "user_viewable": 1, "user_editable": 0, "rules": "required|numeric|digits_between:1,5" + }, + { + "name": "Max Players", + "description": "Maximum amount of players that can connect to the server.", + "env_variable": "MAX_PLAYERS", + "default_value": "18", + "user_viewable": 1, + "user_editable": 0, + "rules": "required|numeric|digits_between:1,2" } ] }