Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
3.7 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef PORTAL_SHAREDDEFS_H
  7. #define PORTAL_SHAREDDEFS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #define PORTAL2_MP_SAVE_FILE "coop_data.txt"
  12. #define PORTAL2_MP_TEAM_TAUNT_FORCE_LENGTH 64
  13. #define PORTAL_PLAYER_PREDICTION
  14. #define PORTAL_HALF_DEPTH 2.0f
  15. #define PORTAL_BUMP_FORGIVENESS 2.0f
  16. enum PortalPlacementResult_t
  17. {
  18. // Success cases
  19. PORTAL_PLACEMENT_SUCCESS, // Placed exactly where shot
  20. PORTAL_PLACEMENT_USED_HELPER, // A placement helper positioned this portal
  21. PORTAL_PLACEMENT_BUMPED, // Placed but needed to move to fit
  22. // Fail cases
  23. PORTAL_PLACEMENT_CANT_FIT, // No space to fit
  24. PORTAL_PLACEMENT_CLEANSER, // Hit a cleanser
  25. PORTAL_PLACEMENT_OVERLAP_LINKED, // Hit a linked portal that cannot move
  26. PORTAL_PLACEMENT_OVERLAP_PARTNER_PORTAL,// Hit a partner portal that cannot move
  27. PORTAL_PLACEMENT_INVALID_VOLUME, // Inside a "no portal" volume
  28. PORTAL_PLACEMENT_INVALID_SURFACE, // Hit a "no portal" surface
  29. PORTAL_PLACEMENT_PASSTHROUGH_SURFACE, // Error case (portal trace failed to hit anything)
  30. };
  31. #define MIN_FLING_SPEED 300
  32. #define PORTAL_HIDE_PLAYER_RAGDOLL
  33. enum PortalFizzleType_t
  34. {
  35. PORTAL_FIZZLE_SUCCESS = 0, // Placed fine (no fizzle)
  36. PORTAL_FIZZLE_CANT_FIT,
  37. PORTAL_FIZZLE_OVERLAPPED_LINKED,
  38. PORTAL_FIZZLE_BAD_VOLUME,
  39. PORTAL_FIZZLE_BAD_SURFACE,
  40. PORTAL_FIZZLE_KILLED,
  41. PORTAL_FIZZLE_CLEANSER,
  42. PORTAL_FIZZLE_CLOSE,
  43. PORTAL_FIZZLE_NEAR_BLUE,
  44. PORTAL_FIZZLE_NEAR_RED,
  45. PORTAL_FIZZLE_NONE,
  46. NUM_PORTAL_FIZZLE_TYPES
  47. };
  48. enum PortalPlacedBy_t
  49. {
  50. PORTAL_PLACED_BY_FIXED = 0,
  51. PORTAL_PLACED_BY_PEDESTAL,
  52. PORTAL_PLACED_BY_PLAYER
  53. };
  54. enum PortalLevelStatType
  55. {
  56. PORTAL_LEVEL_STAT_NUM_PORTALS = 0,
  57. PORTAL_LEVEL_STAT_NUM_STEPS,
  58. PORTAL_LEVEL_STAT_NUM_SECONDS,
  59. PORTAL_LEVEL_STAT_TOTAL
  60. };
  61. enum PortalChallengeType
  62. {
  63. PORTAL_CHALLENGE_NONE = 0,
  64. PORTAL_CHALLENGE_PORTALS,
  65. PORTAL_CHALLENGE_STEPS,
  66. PORTAL_CHALLENGE_TIME,
  67. PORTAL_CHALLENGE_TOTAL
  68. };
  69. enum PortalEvent_t
  70. {
  71. PORTALEVENT_LINKED, // This portal has linked to another portal and opened
  72. PORTALEVENT_FIZZLE, // Portal has fizzled
  73. PORTALEVENT_MOVED, // Portal has moved its position
  74. PORTALEVENT_ENTITY_TELEPORTED_TO, // Entity (player or not) has teleported to this portal
  75. PORTALEVENT_ENTITY_TELEPORTED_FROM, // Entity (player or not) has teleported away from this portal
  76. PORTALEVENT_PLAYER_TELEPORTED_TO, // Player has teleported to this portal
  77. PORTALEVENT_PLAYER_TELEPORTED_FROM, // Player has teleported away from this portal
  78. };
  79. enum TeamTauntState_t
  80. {
  81. TEAM_TAUNT_NONE,
  82. TEAM_TAUNT_NEED_PARTNER,
  83. TEAM_TAUNT_HAS_PARTNER,
  84. TEAM_TAUNT_SUCCESS,
  85. TEAM_TAUNT_STATE_TOTAL
  86. };
  87. enum PortalSurfaceType_t
  88. {
  89. PORTAL_SURFACE_PAINT = 0,
  90. PORTAL_SURFACE_VALID = 1,
  91. PORTAL_SURFACE_INVALID
  92. };
  93. enum
  94. {
  95. P2BOT_INVALID = 0,
  96. P2BOT_PBODY = 1,
  97. P2BOT_ATLAS,
  98. P2BOT_NUMBOTS,
  99. };
  100. enum GameType_t
  101. {
  102. GAMETYPE_STANDARD_SP = 0,
  103. GAMETYPE_STANDARD_COOP,
  104. GAMETYPE_CHALLENGE_SP,
  105. GAMETYPE_CHALLENGE_COOP,
  106. GAMETYPE_COMMUNITY_SP,
  107. GAMETYPE_COMMUNITY_SP_QUICKPLAY,
  108. GAMETYPE_COMMUNITY_COOP,
  109. GAMETYPE_COMMUNITY_COOP_QUICKPLAY,
  110. GAMETYPE_PUZZLEMAKER_SP_EDITING,
  111. GAMETYPE_PUZZLEMAKER_SP_PREVIEWING,
  112. GAMETYPE_PUZZLEMAKER_COOP_EDITING,
  113. GAMETYPE_PUZZLEMAKER_COOP_PREVIEWING
  114. };
  115. #define PORTAL2_PROMO_SKINS ( 1 << 0 )
  116. #define PORTAL2_PROMO_HELMETS ( 1 << 1 )
  117. #define PORTAL2_PROMO_ANTENNA ( 1 << 2 )
  118. extern int g_nPortal2PromoFlags;
  119. extern char *g_ppszPortalPassThroughMaterials[];
  120. #define USE_SLOWTIME 0
  121. #endif // PORTAL_SHAREDDEFS_H