]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
ready restart: PROPERLY remove crylink projectiles
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 25 Aug 2011 19:48:07 +0000 (21:48 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 25 Aug 2011 19:48:07 +0000 (21:48 +0200)
qcsrc/server/w_crylink.qc

index 9c43b6bc539b89a9f0e79616fa108d7a6740a461..3866284a4c2007efeb3c0e55c99ec32044a2bc6e 100644 (file)
@@ -49,6 +49,12 @@ void W_Crylink_Dequeue(entity e)
        W_Crylink_Dequeue_Raw(e.realowner, e.queueprev, e, e.queuenext);
 }
 
+void W_Crylink_Reset(void)
+{
+       W_Crylink_Dequeue(self);
+       remove(self);
+}
+
 // force projectile to explode
 void W_Crylink_LinkExplode (entity e, entity e2)
 {
@@ -333,6 +339,7 @@ void W_Crylink_Attack (void)
        while (counter < shots)
        {
                proj = spawn ();
+               proj.reset = W_Crylink_Reset;
                proj.realowner = proj.owner = self;
                proj.classname = "spike";
                proj.bot_dodge = TRUE;
@@ -437,6 +444,7 @@ void W_Crylink_Attack2 (void)
        while (counter < shots)
        {
                proj = spawn ();
+               proj.reset = W_Crylink_Reset;
                proj.realowner = proj.owner = self;
                proj.classname = "spike";
                proj.bot_dodge = TRUE;