]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
did this INITPRIO_FINDTARGET fix ever improve the situation of two players passing...
authorFruitieX <rasse@rasse-laptop.(none)>
Sun, 24 Oct 2010 19:41:33 +0000 (22:41 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Sun, 24 Oct 2010 19:41:33 +0000 (22:41 +0300)
qcsrc/server/t_quake3.qc

index cffe88bd7fff5acfe21bc2ca98f26af4ffe99bcf..5f484acc73a3700a91aa2aae51118cbfeb7cf365 100644 (file)
@@ -39,12 +39,28 @@ void spawnfunc_item_armor_combat()   { spawnfunc_item_armor_big();      }
 void spawnfunc_item_armor_shard()    { spawnfunc_item_armor_small();    }
 void spawnfunc_item_enviro()         { spawnfunc_item_invincible();     }
 
-// weapon remove ent from defrag
+// weapon remove ent from df
+// +void target_init_verify()
+{
+       entity trigger, targ;
+       for(trigger = world; (trigger = find(trigger, classname, "trigger_multiple")); )
+               for(targ = world; (targ = find(targ, targetname, trigger.target)); )
+                       if (targ.classname == "target_init" || targ.classname == "target_give" || targ.classname == "target_items") {
+                               targ.wait = -2;
+                               targ.delay = 0;
+
+                               setsize(targ, trigger.mins, trigger.maxs);
+                               setorigin(targ, trigger.origin);
+                               //remove(trigger);
+                       }
+}
+
 void spawnfunc_target_init()
 {
        self.spawnflags = 0; // remove all weapons except the ones listed below
        self.netname = "laser uzi"; // keep these weapons through the remove trigger
        spawnfunc_target_items();
+       InitializeEntity(self, target_init_verify, INITPRIO_FINDTARGET);
 }
 
 // weapon give ent from defrag
@@ -85,6 +101,7 @@ void target_give_init()
        }
        self.spawnflags = 2;
        spawnfunc_target_items();
+       InitializeEntity(self, target_init_verify, INITPRIO_FINDTARGET);
 }
 
 void spawnfunc_target_give()