#pragma once

#include "../all.qh"

#ifdef GAMEQC
MODEL(MON_WYVERN, M_Model("wyvern.dpm"));
#endif

CLASS(Wyvern, Monster)
#ifdef SVQC
	ATTRIB(Wyvern, spawnflags, int, MONSTER_TYPE_FLY | MON_FLAG_RANGED | MON_FLAG_RIDE);
	ATTRIB(Wyvern, m_mins, vector, '-30 -30 -48');
	ATTRIB(Wyvern, m_maxs, vector, '30 30 30');
#endif
#ifdef GAMEQC
	ATTRIB(Wyvern, m_model, Model, MDL_MON_WYVERN);
#endif
	ATTRIB(Wyvern, netname, string, "wyvern");
	ATTRIB(Wyvern, m_name, string, _("Wyvern"));
ENDCLASS(Wyvern)

REGISTER_MONSTER(WYVERN, NEW(Wyvern));

#include <common/weapons/_all.qh>

CLASS(WyvernAttack, PortoLaunch)
/* flags     */ ATTRIB(WyvernAttack, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
/* impulse   */ ATTRIB(WyvernAttack, impulse, int, 9);
/* refname   */ ATTRIB(WyvernAttack, netname, string, "wyvern");
/* wepname   */ ATTRIB(WyvernAttack, m_name, string, _("Wyvern attack"));
ENDCLASS(WyvernAttack)
REGISTER_WEAPON(WYVERN_ATTACK, NEW(WyvernAttack));
