]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/location.qc
Intrusify bot targets
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / location.qc
index 554032ee60cc7221b129b36e7b880aaca60cc60a..5259276e43c0f1bb7c47ae87ea9365577e89bbc8 100644 (file)
@@ -1,14 +1,21 @@
+#include "location.qh"
 #ifdef SVQC
-void spawnfunc_target_location()
-{SELFPARAM();
-    self.classname = "target_location";
+void target_push_init(entity this);
+
+spawnfunc(target_location)
+{
+    this.classname = "target_location";
     // location name in netname
     // eventually support: count, teamgame selectors, line of sight?
+
+    target_push_init(this);
 }
 
-void spawnfunc_info_location()
-{SELFPARAM();
-    self.classname = "target_location";
-    self.message = self.netname;
+spawnfunc(info_location)
+{
+    this.classname = "target_location";
+    this.message = this.netname;
+
+    target_push_init(this);
 }
 #endif