X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fminelayer.qh;h=ce331ca6b5e82a819c2fab64e1b0bbb20364b22b;hb=bf1d64ebc5c2867b079a0bfa09f448f076d6be01;hp=dc79d74ac70ab380798bed7b2ab602a6aef3d248;hpb=d44927502027bfa3ccd6ccc98d9b7d6285c182c3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/minelayer.qh b/qcsrc/common/weapons/weapon/minelayer.qh index dc79d74ac..ce331ca6b 100644 --- a/qcsrc/common/weapons/weapon/minelayer.qh +++ b/qcsrc/common/weapons/weapon/minelayer.qh @@ -2,7 +2,7 @@ CLASS(MineLayer, Weapon) /* spawnfunc */ ATTRIB(MineLayer, m_canonical_spawnfunc, string, "weapon_minelayer"); -/* ammotype */ ATTRIB(MineLayer, ammo_type, int, RES_ROCKETS); +/* ammotype */ ATTRIB(MineLayer, ammo_type, Resource, RES_ROCKETS); /* impulse */ ATTRIB(MineLayer, impulse, int, 4); /* flags */ ATTRIB(MineLayer, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_SPLASH); /* rating */ ATTRIB(MineLayer, bot_pickupbasevalue, float, 7000); @@ -19,6 +19,9 @@ CLASS(MineLayer, Weapon) /* refname */ ATTRIB(MineLayer, netname, string, "minelayer"); /* wepname */ ATTRIB(MineLayer, m_name, string, _("Mine Layer")); +#define MINE_MINS '-5 -5 -5' // 0.8.5 used '-4 -4 -4' (before sv_legacy_bbox_expand 0) +#define MINE_MAXS '5 5 5' // 0.8.5 used '4 4 4' (before sv_legacy_bbox_expand 0) + #define X(BEGIN, P, END, class, prefix) \ BEGIN(class) \ P(class, prefix, ammo, float, NONE) \ @@ -62,7 +65,6 @@ SPAWNFUNC_WEAPON(weapon_minelayer, WEP_MINE_LAYER) void W_MineLayer_Think(entity this); .float minelayer_detonate, mine_explodeanyway; .float mine_time; -.vector mine_orientation; IntrusiveList g_mines; STATIC_INIT(g_mines) { g_mines = IL_NEW(); }