2010-07-29 05:21:18 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_GUN_H
|
|
|
|
#define GAME_SERVER_ENTITIES_GUN_H
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
#include <game/gamecore.h>
|
2020-09-26 19:41:58 +00:00
|
|
|
#include <game/server/entity.h>
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
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;
|
2015-07-09 00:08:14 +00:00
|
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#endif // GAME_SERVER_ENTITIES_GUN_H
|