bot.qc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 1996-2022 id Software LLC
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  13. See file, 'COPYING', for details.
  14. */
  15. /*
  16. ========================
  17. Bot_PreThink
  18. Called by the engine every frame before running the bots update in C++
  19. NOTE: "self" will be the calling bot
  20. Example usages of this function:
  21. 1. Telling bots what to do or where to go ( i.e. setting a high level goal ).
  22. 2. Modifying properties on the bot player ( or other players in-game ) that the bots can see/use doing their update.
  23. ========================
  24. */
  25. void Bot_PreThink() {
  26. // add your code here!
  27. };
  28. /*
  29. ========================
  30. Bot_PostThink
  31. Called by the engine every frame after running the bots update in C++
  32. NOTE: "self" will be the calling bot
  33. Example usages of this function:
  34. 1. Overriding/modifying bot user cmds.
  35. 2. Overriding/modifying bot player properties.
  36. ========================
  37. */
  38. void Bot_PostThink() {
  39. // add your code here!
  40. };