Skip to content

Instantly share code, notes, and snippets.

@flxxyz
Last active March 30, 2021 10:42
Show Gist options
  • Save flxxyz/14b5dc4080d20c685eb767067414c8dd to your computer and use it in GitHub Desktop.
Save flxxyz/14b5dc4080d20c685eb767067414c8dd to your computer and use it in GitHub Desktop.
L4D2服务器启动脚本
#!/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