about summary refs log tree commit diff
path: root/src/game/client/components/killmessages.hpp
blob: f29e0bdf97e48b972be730c56bce26b3ad38d85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <game/client/component.hpp>

class KILLMESSAGES : public COMPONENT
{
public:
	// kill messages
	struct KILLMSG
	{
		int weapon;
		int victim;
		int killer;
		int mode_special; // for CTF, if the guy is carrying a flag for example
		int tick;
	};

	static const int killmsg_max = 5;
	KILLMSG killmsgs[killmsg_max];
	int killmsg_current;

	virtual void on_reset();
	virtual void on_render();
	virtual void on_message(int msgtype, void *rawmsg);
};