Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create cs2.json #271

Open
wants to merge 5 commits into
base: v2.6
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 138 additions & 0 deletions CounterStrike2/CounterStrike2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"name": "CS 2",
"display": "Counter Strike 2",
"type": "srcds",
"install": [
{
"appId": "730",
"type": "steamgamedl"
},
{
"type": "command",
"commands": [
"chmod +x bin/linuxsteamrt64/cs2"
]
}
],
"run": {
"stop": "quit",
"command": "./game/bin/linuxsteamrt64/cs2 -dedicated ${vac}-ip ${ip} -port ${port} -maxplayers ${player} +sv_setsteamaccount ${steamid} +map ${map} +hostname ${hostname} +game_alias ${gamemode} ${workshopenable} ${workshopid}",
"workingDirectory": "",
"pre": [],
"post": [],
"environmentVars": {}
},
"data": {
"gamemode": {
"type": "option",
"display": "Game mode",
"value": "deathmatch",
"userEdit": true,
"options": [
{
"value": "deathmatch",
"display": "DeathMath"
},
{
"value": "competitive",
"display": "Competitive"
},
{
"value": "wingman",
"display": "Wingman"
},
{
"value": "casual",
"display": "Casual"
},
{
"value": "custom",
"display": "Custom"
}
]
},
"hostname": {
"type": "string",
"display": "Host name server",
"value": "Counter Strike 2 server",
"userEdit": false
},
"ip": {
"type": "string",
"display": "Ip",
"value": "0.0.0.0",
"userEdit": false
},
"map": {
"type": "string",
"display": "Map",
"value": "de_dust2",
"userEdit": true
},
"player": {
"type": "integer",
"display": "Max players",
"value": "20",
"userEdit": true
},
"port": {
"type": "integer",
"display": "Port",
"value": "27015",
"userEdit": false
},
"steamid": {
"type": "string",
"display": "Tokken",
"required": true,
"userEdit": false
},
"vac": {
"type": "option",
"display": "Vac system",
"required": true,
"value": "false",
"userEdit": true,
"options": [
{
"value": "-insecure ",
"display": "Vac Disable"
},
{
"value": "",
"display": "Vac Enable"
}
]
},
"workshopenable": {
"type": "option",
"display": "Workshop map",
"required": true,
"userEdit": true,
"options": [
{
"value": "+host_workshop_map",
"display": "Enable"
},
{
"value": "",
"display": "Disable"
}
]
},
"workshopid": {
"type": "integer",
"display": "Workshop Map ID (Need to clear if workshop map disable.)",
"userEdit": true
}
},
"environment": {
"type": "tty"
},
"supportedEnvironments": [
{
"type": "tty"
}
],
"requirements": {}
}