2010-07-29 05:21:18 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
|
|
|
|
#ifndef CGun_TYPE
|
|
|
|
#define CGun_TYPE
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
#include <game/gamecore.h>
|
|
|
|
|
|
|
|
class CCharacter;
|
|
|
|
|
|
|
|
class CGun : public CEntity
|
|
|
|
{
|
2010-08-28 20:32:16 +00:00
|
|
|
int m_EvalTick;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-28 20:32:16 +00:00
|
|
|
vec2 m_Core;
|
|
|
|
bool m_Freeze;
|
|
|
|
bool m_Explosive;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-28 20:32:16 +00:00
|
|
|
void Fire();
|
|
|
|
int m_Delay;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
public:
|
2010-08-28 20:32:16 +00:00
|
|
|
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-08-21 02:20:01 +00:00
|
|
|
#endif
|