This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
start.sh
86 lines (78 loc) · 3.18 KB
/
start.sh
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
#Really useful for crontab
#Everytime the server start up or restart, it will start with a random map
strMapList=()
strMapList+=("Canyon?Scenario=Scenario_Crossing_Checkpoint_Insurgents")
strMapList+=("Canyon?Scenario=Scenario_Crossing_Checkpoint_Security")
strMapList+=("Farmhouse?Scenario=Scenario_Farmhouse_Checkpoint_Insurgents")
strMapList+=("Farmhouse?Scenario=Scenario_Farmhouse_Checkpoint_Security")
strMapList+=("Mountain?Scenario=Scenario_Summit_Checkpoint_Insurgents")
strMapList+=("Mountain?Scenario=Scenario_Summit_Checkpoint_Security")
strMapList+=("OilField?Scenario=Scenario_Refinery_Checkpoint_Insurgents")
strMapList+=("OilField?Scenario=Scenario_Refinery_Checkpoint_Security")
strMapList+=("Precinct?Scenario=Scenario_Precinct_Checkpoint_Insurgents")
strMapList+=("Precinct?Scenario=Scenario_Precinct_Checkpoint_Security")
strMapList+=("Town?Scenario=Scenario_Hideout_Checkpoint_Insurgents")
strMapList+=("Town?Scenario=Scenario_Hideout_Checkpoint_Security")
strMapList+=("Compound?Scenario=Scenario_Outskirts_Checkpoint_Insurgents")
strMapList+=("Compound?Scenario=Scenario_Outskirts_Checkpoint_Security")
strMapList+=("Ministry?Scenario=Scenario_Ministry_Checkpoint_Insurgents")
strMapList+=("Ministry?Scenario=Scenario_Ministry_Checkpoint_Security")
strMapList+=("Sinjar?Scenario=Scenario_Hillside_Checkpoint_Insurgents")
strMapList+=("Sinjar?Scenario=Scenario_Hillside_Checkpoint_Security")
strMapList+=("PowerPlant?Scenario=Scenario_PowerPlant_Checkpoint_Insurgents")
strMapList+=("PowerPlant?Scenario=Scenario_PowerPlant_Checkpoint_Security")
#Gamemode (Please pick the right gamemode for the right map and comment out the rest with hashtag)
#strGameMode="Firefight"
#strGameMode="Frontline"
#strGameMode="Occupy"
#strGameMode="Skirmish"
#strGameMode="CaptureTheBase"
#strGameMode="TeamDeathmatch"
#strGameMode="Filming"
#strGameMode="Mission"
strGameMode="Checkpoint"
#strGameMode="CheckpointHardcore"
#strGameMode="CheckpointTutorial"
#strGameMode="Operations"
#strGameMode="Outpost"
#strGameMode="Domination"
#Mutator list
#AllYouCanEat
#AntiMaterielRiflesOnly
#BoltActionsOnly
#Broke
#BulletSponge
#Competitive
#CompetitiveLoadouts
#FastMovement
#Frenzy
#Guerrillas
#Hardcore
#HeadshotOnly
#HotPotato
#LockedAim
#NoAim
#PistolsOnly
#ShotgunsOnly
#SlowCaptureTimes
#SlowMovement
#SoldierOfFortune
#SpecialOperations
#Strapped
#Ultralethal
#Vampirism
#Warlords
#Ruleset (Please pick one only and comment out the rest with hashtag. Some might not work)
#Using Ruleset will override some of your game.ini config. Expect some config not to work
#strRuleSet="CheckpointFrenzy"
#strRuleSet="CompetitiveFirefight"
#strRuleSet="CompetitiveTheater"
#strRuleSet="MatchmakingCasual"
#strRuleSet="OfficialRules"
#set random seed
RANDOM=$$$(date +%N)
#set map
strMap=${strMapList[$RANDOM % ${#strMapList[@]}]}
#GSLTToken from https://steamcommunity.com/dev/managegameservers with App ID 581320
./Insurgency/Binaries/Linux/InsurgencyServer-Linux-Shipping $strMap?port=27102?queryport=27131?MaxPlayers=20?game=$strGameMode -mutators=Hardcore,FastMovement -LogCmds="LogGameplayEvents Log" -log -AdminList=Admins -MapCycle=MapCycle -GameStats -GSLTToken=XXXXXXXXXXXXXXXXXXXXXXXX -EnableCheats -NoEAC -Mods ModList=Mods.txt