X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvaporizer.qh;h=9bbc5e9bdded6c4098a31020e9da6139b1795b07;hp=0c5c19200a437d67a063ffe58fd43785557bcafc;hb=60b0e81cdaed847a7aac9d234f219937ab9462b2;hpb=942e1c3b18b7294726a1d40e4780030430ae6da3 diff --git a/qcsrc/common/weapons/weapon/vaporizer.qh b/qcsrc/common/weapons/weapon/vaporizer.qh index 0c5c19200..9bbc5e9bd 100644 --- a/qcsrc/common/weapons/weapon/vaporizer.qh +++ b/qcsrc/common/weapons/weapon/vaporizer.qh @@ -1,6 +1,7 @@ #pragma once CLASS(Vaporizer, Weapon) +/* spawnfunc */ ATTRIB(Vaporizer, m_canonical_spawnfunc, string, "weapon_vaporizer"); /* ammotype */ ATTRIB(Vaporizer, ammo_type, int, RESOURCE_CELLS); /* impulse */ ATTRIB(Vaporizer, impulse, int, 7); /* flags */ ATTRIB(Vaporizer, spawnflags, int, WEP_FLAG_RELOADABLE | WEP_FLAG_CANCLIMB | WEP_FLAG_SUPERWEAPON | WEP_TYPE_HITSCAN | WEP_FLAG_NODUAL); @@ -21,7 +22,8 @@ CLASS(Vaporizer, Weapon) BEGIN(class) \ P(class, prefix, ammo, float, PRI) \ P(class, prefix, animtime, float, PRI) \ - P(class, prefix, damage, float, PRI) \ + P(class, prefix, damage, float, PRI) \ + P(class, prefix, force, float, PRI) \ P(class, prefix, refire, float, PRI) \ P(class, prefix, ammo, float, SEC) \ P(class, prefix, animtime, float, SEC) \ @@ -50,6 +52,8 @@ CLASS(Vaporizer, Weapon) ENDCLASS(Vaporizer) REGISTER_WEAPON(VAPORIZER, vaporizer, NEW(Vaporizer)); +SPAWNFUNC_WEAPON(weapon_vaporizer, WEP_VAPORIZER) +SPAWNFUNC_WEAPON(weapon_minstanex, WEP_VAPORIZER) #ifdef SVQC .float vaporizer_lasthit;