favourites.cfg 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // basic favourites category definitions
  2. //
  3. // to add your own, it's best to copy this file to your home directory tree
  4. // (where saved.cfg is located), and then edit that copy
  5. // another way is to put additional categories into your autoexec.cfg
  6. // every category has the following attributes:
  7. // "weight", "tag", "desc", "red", "green", "blue", "alpha", "keys", "ignore"
  8. // weight: positive weights list a server higher in the list, negative weights list lower
  9. // tag: short category description, shows in serverbrowser, can use escaped color commands (for example: \f3)
  10. // desc: detailed category desription
  11. // red, green, blue, alpha: background color for servers of this category, use values from 0..100, use alpha = 0 to disable background color
  12. // keys: keywords to describe, which servers are in this category
  13. // ignore: 1: disable this category, 0: enable it
  14. // image: path to image, which is displayed in serverbrowser instead of tag (for example: packages/misc/heart.png)
  15. // possible key types:
  16. // IP IP address of a server, partial addresses can be used
  17. // IP:port IP & port address of a server
  18. // serverdescription Description of a server, partial strings are possible
  19. // %mapname Map name, partial names possible
  20. // #gamemode Number of a game mode
  21. // >ping Matches servers with ping above the given number
  22. // $cubescript Name of an alias to check, if the server should be in the category
  23. // you can prefix a key with '!' to invert it's meaning
  24. // you can prefix a key with '+' to match only populated servers
  25. // if several keys are specified (separated by spaces) every server that matches _any_ of the keys is in the category
  26. // example keys:
  27. // ABC matches all servers that have "ABC" as a part of the server description
  28. // 11.22.33.44:28763 matches the server with that IP & port address
  29. // 11.22.33 matches all servers whose IP starts with that string
  30. // %desert matches all servers with "desert" in the currently played map's name (for example, ac_desert, ac_desert2, ac_desert3, apollo_desertcity)
  31. // %gema matches all servers with gema maps currently played
  32. // >350 matches all servers with ping > 350
  33. // #5 #13 #14 #15 matches all servers with flag modes currently played
  34. // $offmap matches all servers with an official map currently played
  35. // cubescript aliases can be used to check more complicated conditions
  36. // the alias gets the server properties as arguments and has to return non-zero, if the server should be in the category
  37. // arg1: mapname, arg2: gamemode number, arg3: ping, arg4: minutesremaining, arg5: number of players, arg6: maxclients, arg7: IP, arg8: port, arg9: pongflags
  38. // pongflags is bit-coded: bit 0: passworded, bit 1: banned, bit 2: blacklisted, bit 6: mastermode
  39. offmap = [ (+ 1 (findlist $__defaultmaps $arg1)) ]
  40. // basic categories
  41. addfavcategory LOVE
  42. sbfavourite_LOVE_desc = "Your real favourites"
  43. sbfavourite_LOVE_alpha = 20
  44. sbfavourite_LOVE_red = 0
  45. sbfavourite_LOVE_green = 100
  46. sbfavourite_LOVE_blue = 0
  47. sbfavourite_LOVE_weight = 255 // because love trumps hate, sheldon
  48. sbfavourite_LOVE_image = packages/misc/heart.png
  49. addfavcategory LIKE
  50. sbfavourite_LIKE_desc = "Nice, too"
  51. sbfavourite_LIKE_alpha = 10
  52. sbfavourite_LIKE_red = 0
  53. sbfavourite_LIKE_green = 100
  54. sbfavourite_LIKE_blue = 0
  55. sbfavourite_LIKE_weight = 50
  56. addfavcategory HATE
  57. sbfavourite_HATE_desc = "Servers of hell"
  58. sbfavourite_HATE_alpha = 20
  59. sbfavourite_HATE_red = 100
  60. sbfavourite_HATE_green = 0
  61. sbfavourite_HATE_blue = 0
  62. sbfavourite_HATE_weight = -250
  63. addfavcategory GOOD
  64. sbfavourite_GOOD_desc = "Good maprot, nice admins"
  65. sbfavourite_GOOD_alpha = 0
  66. sbfavourite_GOOD_weight = 40
  67. addfavcategory BAD
  68. sbfavourite_BAD_desc = "Bad ping, maprot, admins, etc."
  69. sbfavourite_BAD_alpha = 0
  70. sbfavourite_BAD_weight = -30
  71. sbfavourite_BAD_keys = "+>2000" // automatically add populated servers with ping > 2000 to this category
  72. addfavcategory MAP
  73. sbfavourite_MAP_desc = "Nice maps"
  74. sbfavourite_MAP_alpha = 0
  75. sbfavourite_MAP_weight = 1
  76. addfavcategory MODE
  77. sbfavourite_MODE_desc = "Favourite game modes"
  78. sbfavourite_MODE_alpha = 0
  79. sbfavourite_MODE_weight = 1
  80. sbfavourite_MODE_keys = "#42" // automatically add servers playing towel mode
  81. addfavcategory MATCH
  82. sbfavourite_MATCH_desc = "Preferred match servers"
  83. sbfavourite_MATCH_alpha = 0
  84. sbfavourite_MATCH_weight = 1
  85. sbfavourite_MATCH_ignore = 1
  86. addfavcategory SEARCH
  87. sbfavourite_SEARCH_desc = "Server search"
  88. sbfavourite_SEARCH_tag = "RESULT"
  89. sbfavourite_SEARCH_alpha = 0
  90. sbfavourite_SEARCH_weight = 1
  91. sbfavourite_SEARCH_ignore = 1