-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFistfulofFrags_default.ps1
More file actions
56 lines (55 loc) · 2.46 KB
/
FistfulofFrags_default.ps1
File metadata and controls
56 lines (55 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Function New-LaunchScriptFOFserverPS {
# * * Add to Read-AppID in fn_Actions.ps1 * *
# Fistful of Frags Dedicated Server
# APP ID # 295230
# WIKI
################## Change Default Variables #################
# Server IP
$global:ip = "${ip}"
# Server Port
$global:port = "27015"
# Client Port
$global:clientport = "27005"
# Source TV Port
$global:sourcetvport = "27020"
# Map
$global:defaultmap = "fof_depot"
# Maxplayers
$global:maxplayers = "20"
# Server Name
$global:hostname = "SERVERNAME"
# Rcon Password
$global:rconpassword = "$RANDOMPASSWORD"
###########################/\#################################
###################### Do not change below #####################
# System Directory
$global:systemdir = "$serverdir\fof"
# Server Config Directory
$global:servercfgdir = "$serverdir\fof\cfg"
# Server Executable
$global:executable = "FOF"
# Server Executable Directory
$global:executabledir = "$serverdir"
# Gamedig Query
$global:querytype = "protocol-valve"
# Game Process
$global:process = "FOF"
# Log Directory
$global:logdirectory = "$serverdir\fof"
# Server Log
$global:consolelog = "console.log"
# Game-Server-Config Directory
$global:gamedirname = "FistfulofFrags"
# Game-Server-Config
$global:servercfg = "server.cfg"
# Server Launch Command
$global:launchParams = '@("${executable} -game fof -console -strictportbind -ip ${ip} -port ${port} +hostname `"${hostname}`" +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -condebug")'
# Advanced must be set to "0"
Get-UserInput
# Download Game-Server-Config
Get-Servercfg
# Edit Server Game-Server-Config
Select-EditSourceCFG
# Rename Source $executable.exe
Select-RenameSource
}