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;
|
2011-04-20 13:47:55 +00:00
|
|
|
bool m_Freeze;
|
|
|
|
bool m_Explosive;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-28 20:32:16 +00:00
|
|
|
void Fire();
|
2011-04-20 13:47:55 +00:00
|
|
|
int m_LastFire;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
public:
|
2010-11-13 13:22:19 +00:00
|
|
|
CGun(CGameWorld *pGameWorld, vec2 Pos, bool Freeze, bool Explosive, int Layer = 0, int Number = 0);
|
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
|