about summary refs log tree commit diff
path: root/src/game/client/components/killmessages.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/killmessages.h')
-rw-r--r--src/game/client/components/killmessages.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/game/client/components/killmessages.h b/src/game/client/components/killmessages.h
new file mode 100644
index 00000000..720b10ae
--- /dev/null
+++ b/src/game/client/components/killmessages.h
@@ -0,0 +1,31 @@
+#ifndef GAME_CLIENT_COMPONENTS_KILLMESSAGES_H
+#define GAME_CLIENT_COMPONENTS_KILLMESSAGES_H
+#include <game/client/component.h>
+
+class CKillMessages : public CComponent
+{
+public:
+	// kill messages
+	struct CKillMsg
+	{
+		int m_Weapon;
+		int m_Victim;
+		int m_Killer;
+		int m_ModeSpecial; // for CTF, if the guy is carrying a flag for example
+		int m_Tick;
+	};
+	
+	enum
+	{
+		MAX_KILLMSGS = 5,
+	};
+
+	CKillMsg m_aKillmsgs[MAX_KILLMSGS];
+	int m_KillmsgCurrent;
+
+	virtual void OnReset();
+	virtual void OnRender();
+	virtual void OnMessage(int MsgType, void *pRawMsg);
+};
+
+#endif