chars.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. //========================================================
  19. //========================================================
  20. //name
  21. #define CHARACTERISTIC_NAME 0 //string
  22. //gender of the bot
  23. #define CHARACTERISTIC_GENDER 1 //string ("male", "female", "it")
  24. //attack skill
  25. // > 0.0 && < 0.2 = don't move
  26. // > 0.3 && < 1.0 = aim at enemy during retreat
  27. // > 0.0 && < 0.4 = only move forward/backward
  28. // >= 0.4 && < 1.0 = circle strafing
  29. // > 0.7 && < 1.0 = random strafe direction change
  30. #define CHARACTERISTIC_ATTACK_SKILL 2 //float [0, 1]
  31. //weapon weight file
  32. #define CHARACTERISTIC_WEAPONWEIGHTS 3 //string
  33. //view angle difference to angle change factor
  34. #define CHARACTERISTIC_VIEW_FACTOR 4 //float <0, 1]
  35. //maximum view angle change
  36. #define CHARACTERISTIC_VIEW_MAXCHANGE 5 //float [1, 360]
  37. //reaction time in seconds
  38. #define CHARACTERISTIC_REACTIONTIME 6 //float [0, 5]
  39. //accuracy when aiming
  40. #define CHARACTERISTIC_AIM_ACCURACY 7 //float [0, 1]
  41. //weapon specific aim accuracy
  42. #define CHARACTERISTIC_AIM_ACCURACY_MACHINEGUN 8 //float [0, 1]
  43. #define CHARACTERISTIC_AIM_ACCURACY_SHOTGUN 9 //float [0, 1]
  44. #define CHARACTERISTIC_AIM_ACCURACY_ROCKETLAUNCHER 10 //float [0, 1]
  45. #define CHARACTERISTIC_AIM_ACCURACY_GRENADELAUNCHER 11 //float [0, 1]
  46. #define CHARACTERISTIC_AIM_ACCURACY_LIGHTNING 12
  47. #define CHARACTERISTIC_AIM_ACCURACY_PLASMAGUN 13 //float [0, 1]
  48. #define CHARACTERISTIC_AIM_ACCURACY_RAILGUN 14
  49. #define CHARACTERISTIC_AIM_ACCURACY_BFG10K 15 //float [0, 1]
  50. //skill when aiming
  51. // > 0.0 && < 0.9 = aim is affected by enemy movement
  52. // > 0.4 && <= 0.8 = enemy linear leading
  53. // > 0.8 && <= 1.0 = enemy exact movement leading
  54. // > 0.5 && <= 1.0 = prediction shots when enemy is not visible
  55. // > 0.6 && <= 1.0 = splash damage by shooting nearby geometry
  56. #define CHARACTERISTIC_AIM_SKILL 16 //float [0, 1]
  57. //weapon specific aim skill
  58. #define CHARACTERISTIC_AIM_SKILL_ROCKETLAUNCHER 17 //float [0, 1]
  59. #define CHARACTERISTIC_AIM_SKILL_GRENADELAUNCHER 18 //float [0, 1]
  60. #define CHARACTERISTIC_AIM_SKILL_PLASMAGUN 19 //float [0, 1]
  61. #define CHARACTERISTIC_AIM_SKILL_BFG10K 20 //float [0, 1]
  62. //========================================================
  63. //chat
  64. //========================================================
  65. //file with chats
  66. #define CHARACTERISTIC_CHAT_FILE 21 //string
  67. //name of the chat character
  68. #define CHARACTERISTIC_CHAT_NAME 22 //string
  69. //characters per minute type speed
  70. #define CHARACTERISTIC_CHAT_CPM 23 //integer [1, 4000]
  71. //tendency to insult/praise
  72. #define CHARACTERISTIC_CHAT_INSULT 24 //float [0, 1]
  73. //tendency to chat misc
  74. #define CHARACTERISTIC_CHAT_MISC 25 //float [0, 1]
  75. //tendency to chat at start or end of level
  76. #define CHARACTERISTIC_CHAT_STARTENDLEVEL 26 //float [0, 1]
  77. //tendency to chat entering or exiting the game
  78. #define CHARACTERISTIC_CHAT_ENTEREXITGAME 27 //float [0, 1]
  79. //tendency to chat when killed someone
  80. #define CHARACTERISTIC_CHAT_KILL 28 //float [0, 1]
  81. //tendency to chat when died
  82. #define CHARACTERISTIC_CHAT_DEATH 29 //float [0, 1]
  83. //tendency to chat when enemy suicides
  84. #define CHARACTERISTIC_CHAT_ENEMYSUICIDE 30 //float [0, 1]
  85. //tendency to chat when hit while talking
  86. #define CHARACTERISTIC_CHAT_HITTALKING 31 //float [0, 1]
  87. //tendency to chat when bot was hit but didn't dye
  88. #define CHARACTERISTIC_CHAT_HITNODEATH 32 //float [0, 1]
  89. //tendency to chat when bot hit the enemy but enemy didn't dye
  90. #define CHARACTERISTIC_CHAT_HITNOKILL 33 //float [0, 1]
  91. //tendency to randomly chat
  92. #define CHARACTERISTIC_CHAT_RANDOM 34 //float [0, 1]
  93. //tendency to reply
  94. #define CHARACTERISTIC_CHAT_REPLY 35 //float [0, 1]
  95. //========================================================
  96. //movement
  97. //========================================================
  98. //tendency to crouch
  99. #define CHARACTERISTIC_CROUCHER 36 //float [0, 1]
  100. //tendency to jump
  101. #define CHARACTERISTIC_JUMPER 37 //float [0, 1]
  102. //tendency to walk
  103. #define CHARACTERISTIC_WALKER 48 //float [0, 1]
  104. //tendency to jump using a weapon
  105. #define CHARACTERISTIC_WEAPONJUMPING 38 //float [0, 1]
  106. //tendency to use the grapple hook when available
  107. #define CHARACTERISTIC_GRAPPLE_USER 39 //float [0, 1] //use this!!
  108. //========================================================
  109. //goal
  110. //========================================================
  111. //item weight file
  112. #define CHARACTERISTIC_ITEMWEIGHTS 40 //string
  113. //the aggression of the bot
  114. #define CHARACTERISTIC_AGGRESSION 41 //float [0, 1]
  115. //the self preservation of the bot (rockets near walls etc.)
  116. #define CHARACTERISTIC_SELFPRESERVATION 42 //float [0, 1]
  117. //how likely the bot is to take revenge
  118. #define CHARACTERISTIC_VENGEFULNESS 43 //float [0, 1] //use this!!
  119. //tendency to camp
  120. #define CHARACTERISTIC_CAMPER 44 //float [0, 1]
  121. //========================================================
  122. //========================================================
  123. //tendency to get easy frags
  124. #define CHARACTERISTIC_EASY_FRAGGER 45 //float [0, 1]
  125. //how alert the bot is (view distance)
  126. #define CHARACTERISTIC_ALERTNESS 46 //float [0, 1]
  127. //how much the bot fires it's weapon
  128. #define CHARACTERISTIC_FIRETHROTTLE 47 //float [0, 1]