summaryrefslogtreecommitdiff
path: root/game/shared/effect_color_tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/effect_color_tables.h')
-rw-r--r--game/shared/effect_color_tables.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/game/shared/effect_color_tables.h b/game/shared/effect_color_tables.h
new file mode 100644
index 0000000..348e894
--- /dev/null
+++ b/game/shared/effect_color_tables.h
@@ -0,0 +1,50 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef EFFECT_COLOR_TABLES_H
+#define EFFECT_COLOR_TABLES_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+struct colorentry_t
+{
+ unsigned char index;
+
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+};
+
+#define COLOR_TABLE_SIZE(ct) sizeof(ct)/sizeof(colorentry_t)
+
+// Commander mode indicators (HL2)
+enum
+{
+ COMMAND_POINT_RED = 0,
+ COMMAND_POINT_BLUE,
+ COMMAND_POINT_GREEN,
+ COMMAND_POINT_YELLOW,
+};
+
+// Commander mode table
+static colorentry_t commandercolors[] =
+{
+ { COMMAND_POINT_RED, 1, 0, 0 },
+ { COMMAND_POINT_BLUE, 0, 0, 1 },
+ { COMMAND_POINT_GREEN, 0, 1, 0 },
+ { COMMAND_POINT_YELLOW, 1, 1, 0 },
+};
+
+static colorentry_t bloodcolors[] =
+{
+ { BLOOD_COLOR_RED, 72, 0, 0 },
+ { BLOOD_COLOR_YELLOW, 195, 195, 0 },
+ { BLOOD_COLOR_MECH, 20, 20, 20 },
+ { BLOOD_COLOR_GREEN, 195, 195, 0 },
+};
+
+#endif // EFFECT_COLOR_TABLES_H