2010-08-11 10:33:37 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITY_TRIGGER_H
|
|
|
|
#define GAME_SERVER_ENTITY_TRIGGER_H
|
|
|
|
|
2010-08-11 18:29:08 +00:00
|
|
|
#include <game/server/entity.h>
|
2010-08-11 10:33:37 +00:00
|
|
|
|
|
|
|
//class DOOR;
|
|
|
|
|
|
|
|
class CTrigger : public CEntity
|
|
|
|
{
|
|
|
|
CEntity *m_Target;
|
2010-09-01 08:52:59 +00:00
|
|
|
bool m_TeamActivated[MAX_CLIENTS];
|
2010-08-11 10:33:37 +00:00
|
|
|
|
|
|
|
bool HitCharacter();
|
2010-09-25 16:39:52 +00:00
|
|
|
void OpenDoor(int Teams);
|
2010-08-11 10:33:37 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CTrigger(CGameWorld *pGameWorld, vec2 Pos, CEntity *Target);
|
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|