Advertisement
Guest User

Untitled

a guest
May 5th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. #! /bin/bash
  2. # quakestart.sh - quake live multiple server spawning script.
  3. # created by Thomas Jones on 09/09/15.
  4.  
  5.  
  6.  
  7. # Defining variables.
  8. export location="Chicago"
  9.  
  10.  
  11. gameport=`expr $1 + 27960`
  12. rconport=`expr $1 + 28960`
  13. servernum=`expr $1 + 0`
  14.  
  15. # Executing a random delay to stagger the spawning of each server, as
  16. # supervisord starts everything at once, thus lowering the load surge.
  17. # echo "Sleeping for random delay (5-30 seconds) before spawning..."
  18. # sleep $(((RANDOM%120)+10))
  19. # No-one cares about this anymore, sleeping on a per-server basis now?
  20. # Finally works, should mean that all servers should be up after 45 seconds.
  21.  
  22. # Starts servers with different settings, based off the process number parsed
  23. # as argument 1 by supervisord.
  24.  
  25. echo "========== QuakeStart.sh has started. =========="
  26. echo "========= $(date) ========="
  27. #echo "arg1 is equal to $1"
  28. cd ~/steamcmd/steamapps/common/qlds/baseq3
  29.  
  30. if [ $1 -eq 1 ]
  31. # starting Deathrows CA 1 and 2...
  32. then
  33. echo "Starting clan arena server 1 or 2..."
  34. exec $qPathToStartScript \
  35. +set net_strict 1 \
  36. +set net_port $gameport \
  37. +set sv_hostname "Chi - Clan Arena" \
  38. +set zmq_rcon_enable 1 \
  39. +set zmq_rcon_password "password" \
  40. +set zmq_rcon_port $rconport \
  41. +set zmq_stats_enable 1 \
  42. +set zmq_stats_password "password" \
  43. +set zmq_stats_port $gameport \
  44. +set sv_tags "Deathrows" \
  45. +set g_voteFlags "13320" \
  46. +set g_allowSpecVote 1 \
  47. +set g_allowVoteMidGame 1 \
  48. +set bot_enable 1 \
  49. +set bot_nochat 1 \
  50. +set g_accessFile "access.txt" \
  51. +set sv_mappoolFile "mappool.txt" \
  52. +set fs_homepath ~/.quakelive/$gameport
  53. elif [ $1 -eq 2 ]
  54. # starting Deathrows CA 1...
  55. then
  56. echo "Starting Deathrows FT 1..."
  57. exec $qPathToStartScript \
  58. +set net_strict 1 \
  59. +set net_port $gameport \
  60. +set sv_hostname "Chi - FT" \
  61. +set zmq_rcon_enable 1 \
  62. +set zmq_rcon_password "password" \
  63. +set zmq_rcon_port $rconport \
  64. +set zmq_stats_enable 1 \
  65. +set zmq_stats_password "password" \
  66. +set zmq_stats_port $gameport \
  67. +set sv_tags "Freeze Tag" \
  68. +set g_voteFlags "13320" \
  69. +set g_allowSpecVote 1 \
  70. +set g_allowVoteMidGame 1 \
  71. +set bot_enable 1 \
  72. +set bot_nochat 1 \
  73. +set g_accessFile "access.txt" \
  74. +set sv_mappoolFile "mappool.txt" \
  75. +set fs_homepath ~/.quakelive/$gameport
  76. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement