#pragma once

#include "mlrs_weapon.qh"

CLASS(MLRSTurret, Turret)
#ifdef GAMEQC
/* spawnflags */ ATTRIB(MLRSTurret, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER);
/* mins       */ ATTRIB(MLRSTurret, m_mins, vector, '-32 -32 0');
/* maxs       */ ATTRIB(MLRSTurret, m_maxs, vector, '32 32 64');
/* modelname  */ ATTRIB(MLRSTurret, mdl, string, "base.md3");
/* model      */ ATTRIB_STRZONE(MLRSTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(MLRSTurret, head_model, string, strcat("models/turrets/", "mlrs.md3"));
#endif
/* netname    */ ATTRIB(MLRSTurret, netname, string, "mlrs");
/* fullname   */ ATTRIB(MLRSTurret, m_name, string, _("MLRS Turret"));
#ifdef SVQC
/* weapon     */ ATTRIB(MLRSTurret, m_weapon, Weapon, WEP_TUR_MLRS);
#endif

#define X(BEGIN, P, END, class, prefix) \
	BEGIN(class) \
		TR_PROPS_COMMON(P, class, prefix) \
	END()
	TR_PROPS(X, MLRSTurret, mlrs)
#undef X

ENDCLASS(MLRSTurret)
REGISTER_TURRET(MLRS, NEW(MLRSTurret));
