X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvortex.qh;h=59152e2759f93b144585d9b8fcc6f394e6751627;hb=8c094d930e9ef51767384452f80a3bccdc6fd38d;hp=81ab7e6209d4389d9f8eac7765866623ab51e7c6;hpb=1deb523af5f2edddb70ed34cbb0d4463f21d6cad;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/vortex.qh b/qcsrc/common/weapons/weapon/vortex.qh index 81ab7e620..59152e275 100644 --- a/qcsrc/common/weapons/weapon/vortex.qh +++ b/qcsrc/common/weapons/weapon/vortex.qh @@ -1,7 +1,8 @@ #pragma once CLASS(Vortex, Weapon) -/* ammotype */ ATTRIB(Vortex, ammo_field, .int, ammo_cells); +/* spawnfunc */ ATTRIB(Vortex, m_canonical_spawnfunc, string, "weapon_vortex"); +/* ammotype */ ATTRIB(Vortex, ammo_type, int, RESOURCE_CELLS); /* impulse */ ATTRIB(Vortex, impulse, int, 7); /* flags */ ATTRIB(Vortex, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_NODUAL); /* rating */ ATTRIB(Vortex, bot_pickupbasevalue, float, 8000); @@ -59,8 +60,9 @@ CLASS(Vortex, Weapon) ENDCLASS(Vortex) REGISTER_WEAPON(VORTEX, vortex, NEW(Vortex)); +SPAWNFUNC_WEAPON(weapon_vortex, WEP_VORTEX) +SPAWNFUNC_WEAPON(weapon_nex, WEP_VORTEX) #ifdef SVQC - .float vortex_lasthit; #endif