]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/seeker.qh
Merge branch 'master' into cloudwalk9/mgburstfix
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / seeker.qh
index 443d0843d01b3e1fea2bba4ba9d11a4cc182ba4d..5690938137f19955987acc2b084fb4b92ebe2251 100644 (file)
@@ -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);
@@ -82,6 +83,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;