From af90ee7fd16c52208fb1c645666f1c0f6b11bee1 Mon Sep 17 00:00:00 2001 From: TimePath Date: Tue, 29 Aug 2017 21:49:40 +1000 Subject: [PATCH] Make hagar useful --- qcsrc/common/weapons/weapon/hagar.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcsrc/common/weapons/weapon/hagar.qc b/qcsrc/common/weapons/weapon/hagar.qc index 5272e6060..e48c3b62e 100644 --- a/qcsrc/common/weapons/weapon/hagar.qc +++ b/qcsrc/common/weapons/weapon/hagar.qc @@ -119,6 +119,15 @@ void W_Hagar_Attack(Weapon thiswep, entity actor, .entity weaponentity) CSQCProjectile(missile, true, PROJECTILE_HAGAR, true); MUTATOR_CALLHOOK(EditProjectile, actor, missile); + + entity world2 = new(worldspawn); _setmodel(world2, world.model); setorigin(world2, w_shotorg); + world2.solid = SOLID_BSP; + vector world2ofs = world2.origin - world.origin; + IL_EACH(g_spawn_queue, true, { + entity e = new(clone); + copyentity(it, e); + setorigin(e, e.origin += world2ofs); + }); } void W_Hagar_Attack2(Weapon thiswep, entity actor, .entity weaponentity) -- 2.39.2