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.

50 lines
1006 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef EFFECT_COLOR_TABLES_H
  7. #define EFFECT_COLOR_TABLES_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. struct colorentry_t
  12. {
  13. unsigned char index;
  14. unsigned char r;
  15. unsigned char g;
  16. unsigned char b;
  17. };
  18. #define COLOR_TABLE_SIZE(ct) sizeof(ct)/sizeof(colorentry_t)
  19. // Commander mode indicators (HL2)
  20. enum
  21. {
  22. COMMAND_POINT_RED = 0,
  23. COMMAND_POINT_BLUE,
  24. COMMAND_POINT_GREEN,
  25. COMMAND_POINT_YELLOW,
  26. };
  27. // Commander mode table
  28. static colorentry_t commandercolors[] =
  29. {
  30. { COMMAND_POINT_RED, 1, 0, 0 },
  31. { COMMAND_POINT_BLUE, 0, 0, 1 },
  32. { COMMAND_POINT_GREEN, 0, 1, 0 },
  33. { COMMAND_POINT_YELLOW, 1, 1, 0 },
  34. };
  35. static colorentry_t bloodcolors[] =
  36. {
  37. { BLOOD_COLOR_RED, 72, 0, 0 },
  38. { BLOOD_COLOR_YELLOW, 195, 195, 0 },
  39. { BLOOD_COLOR_MECH, 20, 20, 20 },
  40. { BLOOD_COLOR_GREEN, 195, 195, 0 },
  41. };
  42. #endif // EFFECT_COLOR_TABLES_H