From: TimePath Date: Tue, 29 Aug 2017 11:49:40 +0000 (+1000) Subject: Make hagar useful X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FTimePath%2Fbalancechanges;p=xonotic%2Fxonotic-data.pk3dir.git Make hagar useful --- 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)