Team Fortress 2 Source Code as on 22/4/2020
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.

79 lines
1.7 KiB

  1. //========= Copyright 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 PORTAL_HALF_WIDTH 32.0f
  12. #define PORTAL_HALF_HEIGHT 54.0f
  13. #define PORTAL_HALF_DEPTH 2.0f
  14. #define PORTAL_BUMP_FORGIVENESS 2.0f
  15. #define PORTAL_ANALOG_SUCCESS_NO_BUMP 1.0f
  16. #define PORTAL_ANALOG_SUCCESS_BUMPED 0.3f
  17. #define PORTAL_ANALOG_SUCCESS_CANT_FIT 0.1f
  18. #define PORTAL_ANALOG_SUCCESS_CLEANSER 0.028f
  19. #define PORTAL_ANALOG_SUCCESS_OVERLAP_LINKED 0.027f
  20. #define PORTAL_ANALOG_SUCCESS_NEAR 0.0265f
  21. #define PORTAL_ANALOG_SUCCESS_INVALID_VOLUME 0.026f
  22. #define PORTAL_ANALOG_SUCCESS_INVALID_SURFACE 0.025f
  23. #define PORTAL_ANALOG_SUCCESS_PASSTHROUGH_SURFACE 0.0f
  24. #define MIN_FLING_SPEED 300
  25. #define PORTAL_HIDE_PLAYER_RAGDOLL 1
  26. enum PortalFizzleType_t
  27. {
  28. PORTAL_FIZZLE_SUCCESS = 0, // Placed fine (no fizzle)
  29. PORTAL_FIZZLE_CANT_FIT,
  30. PORTAL_FIZZLE_OVERLAPPED_LINKED,
  31. PORTAL_FIZZLE_BAD_VOLUME,
  32. PORTAL_FIZZLE_BAD_SURFACE,
  33. PORTAL_FIZZLE_KILLED,
  34. PORTAL_FIZZLE_CLEANSER,
  35. PORTAL_FIZZLE_CLOSE,
  36. PORTAL_FIZZLE_NEAR_BLUE,
  37. PORTAL_FIZZLE_NEAR_RED,
  38. PORTAL_FIZZLE_NONE,
  39. NUM_PORTAL_FIZZLE_TYPES
  40. };
  41. enum PortalPlacedByType
  42. {
  43. PORTAL_PLACED_BY_FIXED = 0,
  44. PORTAL_PLACED_BY_PEDESTAL,
  45. PORTAL_PLACED_BY_PLAYER
  46. };
  47. enum PortalLevelStatType
  48. {
  49. PORTAL_LEVEL_STAT_NUM_PORTALS = 0,
  50. PORTAL_LEVEL_STAT_NUM_STEPS,
  51. PORTAL_LEVEL_STAT_NUM_SECONDS,
  52. PORTAL_LEVEL_STAT_TOTAL
  53. };
  54. enum PortalChallengeType
  55. {
  56. PORTAL_CHALLENGE_NONE = 0,
  57. PORTAL_CHALLENGE_PORTALS,
  58. PORTAL_CHALLENGE_STEPS,
  59. PORTAL_CHALLENGE_TIME,
  60. PORTAL_CHALLENGE_TOTAL
  61. };
  62. extern char *g_ppszPortalPassThroughMaterials[];
  63. #endif // PORTAL_SHAREDDEFS_H