X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fseeker.qh;h=3e79ce252bdd7bb7461c306ce2e8f20664876845;hb=d87e55939b27a63c84577c87af8a087be6d02843;hp=443d0843d01b3e1fea2bba4ba9d11a4cc182ba4d;hpb=da674c235adfdc6b7a33bebb22f42e1be34224e8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/seeker.qh b/qcsrc/common/weapons/weapon/seeker.qh index 443d0843d..3e79ce252 100644 --- a/qcsrc/common/weapons/weapon/seeker.qh +++ b/qcsrc/common/weapons/weapon/seeker.qh @@ -1,7 +1,8 @@ #pragma once CLASS(Seeker, Weapon) -/* ammotype */ ATTRIB(Seeker, ammo_type, int, RESOURCE_ROCKETS); +/* spawnfunc */ ATTRIB(Seeker, m_canonical_spawnfunc, string, "weapon_seeker"); +/* ammotype */ ATTRIB(Seeker, ammo_type, int, RES_ROCKETS); /* impulse */ ATTRIB(Seeker, impulse, int, 8); /* flags */ ATTRIB(Seeker, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_SPLASH); /* rating */ ATTRIB(Seeker, bot_pickupbasevalue, float, 5000); @@ -9,6 +10,8 @@ CLASS(Seeker, Weapon) /* modelname */ ATTRIB(Seeker, mdl, string, "seeker"); #ifdef GAMEQC /* model */ ATTRIB(Seeker, m_model, Model, MDL_SEEKER_ITEM); +/* flash mdl */ ATTRIB(Seeker, m_muzzlemodel, Model, MDL_Null); +/* flash eff */ ATTRIB(Seeker, m_muzzleeffect, entity, EFFECT_SEEKER_MUZZLEFLASH); #endif /* crosshair */ ATTRIB(Seeker, w_crosshair, string, "gfx/crosshairseeker"); /* crosshair */ ATTRIB(Seeker, w_crosshair_size, float, 0.8); @@ -82,6 +85,8 @@ CLASS(Seeker, Weapon) ENDCLASS(Seeker) REGISTER_WEAPON(SEEKER, seeker, NEW(Seeker)); +SPAWNFUNC_WEAPON(weapon_seeker, WEP_SEEKER) + #ifdef SVQC .entity tag_target, wps_tag_tracker; .float tag_time;