]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/misc/corner.qc
Rename triggers to mapobjects
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / misc / corner.qc
diff --git a/qcsrc/common/triggers/misc/corner.qc b/qcsrc/common/triggers/misc/corner.qc
deleted file mode 100644 (file)
index a0f67b7..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-#include "corner.qh"
-REGISTER_NET_LINKED(ENT_CLIENT_CORNER)
-
-#ifdef SVQC
-bool corner_send(entity this, entity to, int sf)
-{
-       WriteHeader(MSG_ENTITY, ENT_CLIENT_CORNER);
-
-       WriteString(MSG_ENTITY, this.platmovetype);
-
-       WriteVector(MSG_ENTITY, this.origin);
-
-       WriteString(MSG_ENTITY, this.target);
-       WriteString(MSG_ENTITY, this.target2);
-       WriteString(MSG_ENTITY, this.target3);
-       WriteString(MSG_ENTITY, this.target4);
-       WriteString(MSG_ENTITY, this.targetname);
-       WriteByte(MSG_ENTITY, this.target_random);
-
-       WriteByte(MSG_ENTITY, this.wait);
-
-       return true;
-}
-
-void corner_link(entity this)
-{
-       //Net_LinkEntity(this, false, 0, corner_send);
-}
-
-spawnfunc(path_corner)
-{
-       // setup values for overriding train movement
-       // if a second value does not exist, both start and end speeds are the single value specified
-       set_platmovetype(this, this.platmovetype);
-
-       corner_link(this);
-}
-#elif defined(CSQC)
-
-void corner_remove(entity this)
-{
-       strfree(this.target);
-       strfree(this.target2);
-       strfree(this.target3);
-       strfree(this.target4);
-       strfree(this.targetname);
-       strfree(this.platmovetype);
-}
-
-NET_HANDLE(ENT_CLIENT_CORNER, bool isnew)
-{
-       this.platmovetype = strzone(ReadString());
-
-       this.origin = ReadVector();
-       setorigin(this, this.origin);
-
-       this.target = strzone(ReadString());
-       this.target2 = strzone(ReadString());
-       this.target3 = strzone(ReadString());
-       this.target4 = strzone(ReadString());
-       this.targetname = strzone(ReadString());
-       this.target_random = ReadByte();
-
-       this.wait = ReadByte();
-
-       return = true;
-
-       this.classname = "path_corner";
-       this.drawmask = MASK_NORMAL;
-       this.entremove = corner_remove;
-
-       set_platmovetype(this, this.platmovetype);
-}
-
-#endif