]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make hagar useful TimePath/balancechanges
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 29 Aug 2017 11:49:40 +0000 (21:49 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 29 Aug 2017 11:49:40 +0000 (21:49 +1000)
qcsrc/common/weapons/weapon/hagar.qc

index 5272e6060a8fdab0c417ab986c96898fe2097f07..e48c3b62e8f4976b4905c497c015d525539cf45d 100644 (file)
@@ -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)