doomstat.c 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* Emacs style mode select -*- C++ -*-
  2. *-----------------------------------------------------------------------------
  3. *
  4. *
  5. * PrBoom: a Doom port merged with LxDoom and LSDLDoom
  6. * based on BOOM, a modified and improved DOOM engine
  7. * Copyright (C) 1999 by
  8. * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
  9. * Copyright (C) 1999-2000 by
  10. * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze
  11. * Copyright 2005, 2006 by
  12. * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License
  16. * as published by the Free Software Foundation; either version 2
  17. * of the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  27. * 02111-1307, USA.
  28. *
  29. * DESCRIPTION:
  30. * Put all global state variables here.
  31. *
  32. *-----------------------------------------------------------------------------
  33. */
  34. #ifdef __GNUG__
  35. #pragma implementation "doomstat.h"
  36. #endif
  37. #include "doomstat.h"
  38. // Game Mode - identify IWAD as shareware, retail etc.
  39. GameMode_t gamemode = indetermined;
  40. GameMission_t gamemission = doom;
  41. // Language.
  42. Language_t language = english;
  43. // Set if homebrew PWAD stuff has been added.
  44. boolean modifiedgame;
  45. //-----------------------------------------------------------------------------
  46. // CPhipps - compatibility vars
  47. complevel_t compatibility_level, default_compatibility_level;
  48. int comp[COMP_TOTAL], default_comp[COMP_TOTAL]; // killough 10/98
  49. // v1.1-like pitched sounds
  50. int pitched_sounds; // killough
  51. int default_translucency; // config file says // phares
  52. boolean general_translucency; // true if translucency is ok // phares
  53. int demo_insurance, default_demo_insurance; // killough 1/16/98
  54. int allow_pushers = 1; // MT_PUSH Things // phares 3/10/98
  55. int default_allow_pushers; // killough 3/1/98: make local to each game
  56. int variable_friction = 1; // ice & mud // phares 3/10/98
  57. int default_variable_friction; // killough 3/1/98: make local to each game
  58. int weapon_recoil; // weapon recoil // phares
  59. int default_weapon_recoil; // killough 3/1/98: make local to each game
  60. int player_bobbing; // whether player bobs or not // phares 2/25/98
  61. int default_player_bobbing; // killough 3/1/98: make local to each game
  62. int monsters_remember; // killough 3/1/98
  63. int default_monsters_remember;
  64. int monster_infighting=1; // killough 7/19/98: monster<=>monster attacks
  65. int default_monster_infighting=1;
  66. int monster_friction=1; // killough 10/98: monsters affected by friction
  67. int default_monster_friction=1;
  68. #ifdef DOGS
  69. int dogs, default_dogs; // killough 7/19/98: Marine's best friend :)
  70. int dog_jumping, default_dog_jumping; // killough 10/98
  71. #endif
  72. // killough 8/8/98: distance friends tend to move towards players
  73. int distfriend = 128, default_distfriend = 128;
  74. // killough 9/8/98: whether monsters are allowed to strafe or retreat
  75. int monster_backing, default_monster_backing;
  76. // killough 9/9/98: whether monsters are able to avoid hazards (e.g. crushers)
  77. int monster_avoid_hazards, default_monster_avoid_hazards;
  78. // killough 9/9/98: whether monsters help friends
  79. int help_friends, default_help_friends;
  80. int flashing_hom; // killough 10/98
  81. int doom_weapon_toggles; // killough 10/98
  82. int monkeys, default_monkeys;