turn NIX into a mutator; fix keyhunt
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / sv_main.qc
index 7713125235be848a8e5d46a8e276212a6d5ecd7d..f9eb9d2a0a41cb6fbf36c1653df8d28f8f7c1ba8 100644 (file)
@@ -395,4 +395,10 @@ void SV_OnEntityPreSpawnFunction()
                self.angles_z = self.angles_z + (random() * 2 - 1) * self.anglesjitter_z;
        if(self.anglejitter != 0)
                self.angles_y = self.angles_y + (random() * 2 - 1) * self.anglejitter;
+
+       if(MUTATOR_CALLHOOK(OnEntityPreSpawn))
+       {
+               remove(self);
+               return;
+       }
 }