2010-05-29 07:25:38 +00:00
|
|
|
#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;
|
2010-06-06 13:38:03 +00:00
|
|
|
int m_VictimID;
|
|
|
|
int m_VictimTeam;
|
|
|
|
char m_aVictimName[64];
|
|
|
|
CTeeRenderInfo m_VictimRenderInfo;
|
|
|
|
int m_KillerID;
|
|
|
|
int m_KillerTeam;
|
|
|
|
char m_aKillerName[64];
|
|
|
|
CTeeRenderInfo m_KillerRenderInfo;
|
2010-05-29 07:25:38 +00:00
|
|
|
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
|