]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/misc/laser.qh
misc_laser: .active instead of .state, replace magic numbers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / misc / laser.qh
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..36a25faa0a312ced48f2d100190328796dc2e460 100644 (file)
@@ -1 +1,9 @@
 #pragma once
+#include "../spawnflags.qh"
+
+
+.vector beam_color;
+
+const float LASER_BEAM_MAXLENGTH = 32768; // maximum length of a beam trace
+// TODO: find a better way to do this
+const float LASER_BEAM_MAXWORLDSIZE = 1048576; // to make sure the endpoint of the beam is not visible inside