Last active
March 30, 2021 10:42
-
-
Save flxxyz/14b5dc4080d20c685eb767067414c8dd to your computer and use it in GitHub Desktop.
L4D2服务器启动脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#+ip 指定监听的IP | |
#-port 指定端口,个性建服 | |
#-condebug 记录熊孩子的破坏经过 | |
MAP="+map 指定地图名" | |
CONF="$HOME/server.cfg" | |
L4D2_DIR="$HOME/.steam/steamapps/common/Left 4 Dead 2 Dedicated Server" | |
START_PARAMS="-console -game left4dead2 -secure +ip 0.0.0.0 -port 27017 -nomaster -condebug" | |
"$L4D2_DIR/srcds_run" $START_PARAMS +exec $CONF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment