l4d move workshop downlaoder to scripts
This commit is contained in:
		
							parent
							
								
									2d59c68004
								
							
						
					
					
						commit
						03654ef5af
					
				
					 3 changed files with 16 additions and 6 deletions
				
			
		|  | @ -18,7 +18,7 @@ function install_addon() { | |||
|     local addon_id="${addons[${addon_name}]}" | ||||
|     steam mkdir -p "/opt/l4d2/overlays/${overlay}/left4dead2/addons" | ||||
|     test -f "/opt/l4d2/overlays/${overlay}/left4dead2/addons/${addon_id}.vpk" || \ | ||||
|         steam /opt/l4d2/steam-workshop-download "${addon_id}" --out "/opt/l4d2/overlays/${overlay}/left4dead2/addons" | ||||
|         steam /opt/l4d2/scripts/steam-workshop-download "${addon_id}" --out "/opt/l4d2/overlays/${overlay}/left4dead2/addons" | ||||
| } | ||||
| 
 | ||||
| function install_admin_system() { | ||||
|  |  | |||
|  | @ -21,8 +21,8 @@ DEBIAN_FRONTEND=noninteractive apt install -y libc6:i386 lib32z1 | |||
| 
 | ||||
| # workshop downloader | ||||
| test -f /opt/l4d2/steam-workshop-download || \ | ||||
|     steam wget -4 https://git.sublimity.de/cronekorkn/steam-workshop-downloader/raw/branch/master/steam-workshop-download -P /opt/l4d2 | ||||
| steam chmod +x /opt/l4d2/steam-workshop-download | ||||
|     steam wget -4 https://git.sublimity.de/cronekorkn/steam-workshop-downloader/raw/branch/master/steam-workshop-download -P /opt/l4d2/scripts | ||||
| steam chmod +x /opt/l4d2/scripts/steam-workshop-download | ||||
| 
 | ||||
| # -- STEAM -- # | ||||
| 
 | ||||
|  |  | |||
|  | @ -38,8 +38,18 @@ | |||
|                     'overlays': ['tickrate', 'vanilla'], | ||||
|                     'config': [ | ||||
|                         'exec server_tickrate.cfg', | ||||
|                         # https://github.com/SirPlease/L4D2-Competitive-Rework/blob/7ecc3a32a5e2180d6607a40119ff2f3c072502a9/cfg/server.cfg#L58-L69 | ||||
|                         # https://www.programmersought.com/article/513810199514/ | ||||
|                         'sv_minupdaterate 101', | ||||
|                         'sv_maxupdaterate 101', | ||||
|                         'sv_mincmdrate 101', | ||||
|                         'sv_maxcmdrate 101', | ||||
|                     ], | ||||
|                 }, | ||||
|                 'tick100_maps': { | ||||
|                     'port': 27017, | ||||
|                     'arguments': ['-tickrate 100'], | ||||
|                     'overlays': ['tickrate', 'vanilla', 'l4d2center_maps'], | ||||
|                     'config': [ | ||||
|                         'exec server_tickrate.cfg', | ||||
|                         'sv_minupdaterate 101', | ||||
|                         'sv_maxupdaterate 101', | ||||
|                         'sv_mincmdrate 101', | ||||
|  | @ -47,7 +57,7 @@ | |||
|                     ], | ||||
|                 }, | ||||
|                 'zonemod': { | ||||
|                     'port': 27017, | ||||
|                     'port': 27020, | ||||
|                     'arguments': ['-tickrate 60'], | ||||
|                     'overlays': ['competitive_rework'], | ||||
|                     'config': [ | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue