Custom entities FGD, WorldCraft fileformat (.wc)
authorTerri00 <thrustmediaproductions@gmail.com>
Sat, 16 Mar 2019 02:29:44 +0000 (02:29 +0000)
committerTerri00 <thrustmediaproductions@gmail.com>
Sat, 16 Mar 2019 02:29:44 +0000 (02:29 +0000)
15 files changed:
MCDV/CmdSeq.wc [new file with mode: 0644]
MCDV/MCDV.vcxproj
MCDV/MCDV.vcxproj.filters
MCDV/globals.h [new file with mode: 0644]
MCDV/main.cpp
MCDV/main2.cpp [new file with mode: 0644]
MCDV/sample_stuff/CmdSeq.wc [new file with mode: 0644]
MCDV/sample_stuff/de_tavr_test.vmx
MCDV/sample_stuff/map_01.vmx
MCDV/wc.hpp [new file with mode: 0644]
tar_entities/tar_config.png [new file with mode: 0644]
tar_entities/tar_config.psd [new file with mode: 0644]
tar_entities/tar_config.vmt [new file with mode: 0644]
tar_entities/tar_config.vtf [new file with mode: 0644]
tar_entities/tar_entities.fgd [new file with mode: 0644]

diff --git a/MCDV/CmdSeq.wc b/MCDV/CmdSeq.wc
new file mode 100644 (file)
index 0000000..1129ba3
Binary files /dev/null and b/MCDV/CmdSeq.wc differ
index 08ebf0a20b70c920c75fd82f224e3d278ae605db..fdba9381123734e192f44b4fee9f83d20e251080 100644 (file)
     <ClInclude Include="FrameBuffer.hpp" />
     <ClInclude Include="fuzzy_select.h" />
     <ClInclude Include="gamelump.hpp" />
+    <ClInclude Include="globals.h" />
     <ClInclude Include="interpolation.h" />
     <ClInclude Include="generic.hpp" />
     <ClInclude Include="lumps_geometry.hpp" />
     <ClInclude Include="vmf.hpp" />
     <ClInclude Include="vtx.hpp" />
     <ClInclude Include="vvd.hpp" />
+    <ClInclude Include="wc.hpp" />
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="glad.c" />
     <ClCompile Include="GLFWUtil.hpp" />
     <ClCompile Include="main.cpp" />
+    <ClCompile Include="main2.cpp" />
   </ItemGroup>
   <ItemGroup>
     <None Include="shaders\depth.fs" />
index 3921fe06ed9860f27fb26312a67e3bd665a9da6d..f7ede5fd58420d40c6732ad824c2470a9489fd70 100644 (file)
     <ClInclude Include="cxxopts.hpp">
       <Filter>Header Files\util</Filter>
     </ClInclude>
+    <ClInclude Include="wc.hpp">
+      <Filter>Header Files\valve</Filter>
+    </ClInclude>
+    <ClInclude Include="globals.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="main.cpp">
     <ClCompile Include="GLFWUtil.hpp">
       <Filter>OpenGL\engine</Filter>
     </ClCompile>
+    <ClCompile Include="main2.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <None Include="shaders\worldgrid.fs">
diff --git a/MCDV/globals.h b/MCDV/globals.h
new file mode 100644 (file)
index 0000000..098dc3e
--- /dev/null
@@ -0,0 +1,2 @@
+#pragma once
+#define entry_point_testing
\ No newline at end of file
index 4fd51d7496d24fbed081eee88533bde0707adaac..f721d81a7711a0332647d849e2c6f1f5a79d8bd6 100644 (file)
@@ -1,3 +1,5 @@
+#include "globals.h"
+
 // STDLib
 #include <iostream>
 
@@ -600,6 +602,7 @@ int app(int argc, const char** argv) {
 }
 
 /* Entry point */
+#ifndef entry_point_testing
 int main(int argc, const char** argv) {
        try {
                return app(argc, argv);
@@ -609,4 +612,5 @@ int main(int argc, const char** argv) {
        }
 
        return 1;
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
diff --git a/MCDV/main2.cpp b/MCDV/main2.cpp
new file mode 100644 (file)
index 0000000..30d7720
--- /dev/null
@@ -0,0 +1,23 @@
+#include "globals.h"
+
+#ifdef entry_point_testing
+
+#include "wc.hpp"
+
+int main()
+{
+       wc::filedata fileData("sample_stuff/CmdSeq.wc");
+
+       wc::Sequence seq_new = wc::Sequence();
+       char name_new[128] = "Testeroonie BAP";
+       memcpy(&seq_new.name, &name_new, 128);
+       
+
+       fileData.sequences.push_back(seq_new);
+       fileData.serialize("CmdSeq.wc");
+       system("PAUSE");
+       return 0;
+}
+
+
+#endif
\ No newline at end of file
diff --git a/MCDV/sample_stuff/CmdSeq.wc b/MCDV/sample_stuff/CmdSeq.wc
new file mode 100644 (file)
index 0000000..05829a9
Binary files /dev/null and b/MCDV/sample_stuff/CmdSeq.wc differ
index 607f42cb8277832e64e8bdfe24e2881be9fd6cfc..c388348ca7c714044d9d3aa5e9099a96556f000a 100644 (file)
@@ -2,7 +2,7 @@ versioninfo
 {
        "editorversion" "400"
        "editorbuild" "8075"
-       "mapversion" "51"
+       "mapversion" "53"
        "formatversion" "100"
        "prefab" "0"
 }
@@ -44,7 +44,7 @@ viewsettings
 world
 {
        "id" "1"
-       "mapversion" "51"
+       "mapversion" "53"
        "classname" "worldspawn"
        "detailmaterial" "detail/detailsprites"
        "detailvbsp" "detail.vbsp"
@@ -122,8 +122,6 @@ world
                editor
                {
                        "color" "0 175 108"
-                       "visgroupid" "8"
-                       "visgroupid" "14"
                        "visgroupshown" "1"
                        "visgroupautoshown" "1"
                }
@@ -1443,484 +1441,466 @@ world
                        "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "40"
+               side
                {
-                       "id" "40"
-                       side
-                       {
-                               "id" "105"
-                               "plane" "(-4128 4128 544) (4128 4128 544) (4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "104"
-                               "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "103"
-                               "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "102"
-                               "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "101"
-                               "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "100"
-                               "plane" "(4096 -4096 512) (4096 4096 512) (-4096 4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "105"
+                       "plane" "(-4128 4128 544) (4128 4128 544) (4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "104"
+                       "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "103"
+                       "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "102"
+                       "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101"
+                       "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "100"
+                       "plane" "(4096 -4096 512) (4096 4096 512) (-4096 4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "42"
+               side
                {
-                       "id" "42"
-                       side
-                       {
-                               "id" "111"
-                               "plane" "(-4128 -4128 -160) (4128 -4128 -160) (4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "110"
-                               "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "109"
-                               "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "108"
-                               "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "107"
-                               "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "106"
-                               "plane" "(4096 4096 -128) (4096 -4096 -128) (-4096 -4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "111"
+                       "plane" "(-4128 -4128 -160) (4128 -4128 -160) (4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "110"
+                       "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "109"
+                       "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "108"
+                       "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "107"
+                       "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "106"
+                       "plane" "(4096 4096 -128) (4096 -4096 -128) (-4096 -4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "44"
+               side
                {
-                       "id" "44"
-                       side
-                       {
-                               "id" "117"
-                               "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "116"
-                               "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "115"
-                               "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "114"
-                               "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "113"
-                               "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "112"
-                               "plane" "(-4096 -4096 -128) (-4096 -4096 512) (-4096 4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "117"
+                       "plane" "(-4128 4128 544) (-4128 -4128 544) (-4128 -4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "116"
+                       "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "115"
+                       "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "114"
+                       "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "113"
+                       "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "112"
+                       "plane" "(-4096 -4096 -128) (-4096 -4096 512) (-4096 4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "46"
+               side
                {
-                       "id" "46"
-                       side
-                       {
-                               "id" "123"
-                               "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "122"
-                               "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "121"
-                               "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "120"
-                               "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "119"
-                               "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "118"
-                               "plane" "(4096 -4096 512) (4096 -4096 -128) (4096 4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "123"
+                       "plane" "(4128 4128 -160) (4128 -4128 -160) (4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "122"
+                       "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "121"
+                       "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "120"
+                       "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "119"
+                       "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "118"
+                       "plane" "(4096 -4096 512) (4096 -4096 -128) (4096 4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "48"
+               side
                {
-                       "id" "48"
-                       side
-                       {
-                               "id" "129"
-                               "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "128"
-                               "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "127"
-                               "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "126"
-                               "plane" "(-4096 4096 512) (-4096 -4096 512) (-4096 -4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "125"
-                               "plane" "(4096 4096 -128) (4096 -4096 -128) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "124"
-                               "plane" "(-4096 4096 -128) (-4096 4096 512) (4096 4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "129"
+                       "plane" "(4128 4128 544) (-4128 4128 544) (-4128 4128 -160)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "128"
+                       "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "127"
+                       "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "126"
+                       "plane" "(-4096 4096 512) (-4096 -4096 512) (-4096 -4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "125"
+                       "plane" "(4096 4096 -128) (4096 -4096 -128) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "124"
+                       "plane" "(-4096 4096 -128) (-4096 4096 512) (4096 4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
-       hidden
+       solid
        {
-               solid
+               "id" "50"
+               side
                {
-                       "id" "50"
-                       side
-                       {
-                               "id" "135"
-                               "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "134"
-                               "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "133"
-                               "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 -1 0 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "132"
-                               "plane" "(-4096 4096 512) (-4096 -4096 512) (-4096 -4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "131"
-                               "plane" "(4096 4096 -128) (4096 -4096 -128) (4096 -4096 512)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[0 1 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       side
-                       {
-                               "id" "130"
-                               "plane" "(-4096 -4096 512) (-4096 -4096 -128) (4096 -4096 -128)"
-                               "material" "TOOLS/TOOLSSKYBOX"
-                               "uaxis" "[1 0 0 0] 0.25"
-                               "vaxis" "[0 0 -1 0] 0.25"
-                               "rotation" "0"
-                               "lightmapscale" "16"
-                               "smoothing_groups" "0"
-                       }
-                       editor
-                       {
-                               "color" "220 220 220"
-                               "groupid" "52"
-                               "visgroupshown" "1"
-                               "visgroupautoshown" "1"
-                       }
+                       "id" "135"
+                       "plane" "(4128 -4128 -160) (-4128 -4128 -160) (-4128 -4128 544)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "134"
+                       "plane" "(-4096 4096 512) (4096 4096 512) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "133"
+                       "plane" "(-4096 -4096 -128) (4096 -4096 -128) (4096 4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "132"
+                       "plane" "(-4096 4096 512) (-4096 -4096 512) (-4096 -4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "131"
+                       "plane" "(4096 4096 -128) (4096 -4096 -128) (4096 -4096 512)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "130"
+                       "plane" "(-4096 -4096 512) (-4096 -4096 -128) (4096 -4096 -128)"
+                       "material" "TOOLS/TOOLSSKYBOX"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 220 220"
+                       "groupid" "52"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
                }
        }
        solid
@@ -2552,6 +2532,24 @@ world
        }
 }
 entity
+{
+       "id" "484"
+       "classname" "tar_config"
+       "aoSize" "16"
+       "customCol0" "39 56 79"
+       "customCol1" "77 74 72"
+       "customCol2" "178 113 65"
+       "enableShadows" "1"
+       "origin" "112.86 3.28465 33"
+       editor
+       {
+               "color" "220 30 220"
+               "visgroupshown" "1"
+               "visgroupautoshown" "1"
+               "logicalpos" "[0 0]"
+       }
+}
+entity
 {
        "id" "397"
        "classname" "func_detail"
@@ -3164,7 +3162,3 @@ cordons
 {
        "active" "0"
 }
-quickhide
-{
-       "count" "7"
-}
index 3c9ad69b420cebeef5aeb758f9c75fe03766afd9..54962b3d0d507c87a249685c98c24fa0c0aa73da 100644 (file)
@@ -2,7 +2,7 @@ versioninfo
 {
        "editorversion" "400"
        "editorbuild" "8075"
-       "mapversion" "739"
+       "mapversion" "740"
        "formatversion" "100"
        "prefab" "0"
 }
@@ -44,7 +44,7 @@ viewsettings
 world
 {
        "id" "1"
-       "mapversion" "739"
+       "mapversion" "740"
        "classname" "worldspawn"
        "detailmaterial" "detail/detailsprites"
        "detailvbsp" "detail.vbsp"
@@ -234473,7 +234473,7 @@ entity
                side
                {
                        "id" "14634"
-                       "plane" "(-512 -3520 192) (-512 -2752 192) (320 -2752 192)"
+                       "plane" "(-512 -3296 192) (-512 -2752 192) (-32 -2752 192)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 -1 0 0] 0.25"
@@ -234484,7 +234484,7 @@ entity
                side
                {
                        "id" "14633"
-                       "plane" "(-512 -2752 1) (-512 -3520 1) (320 -3520 1)"
+                       "plane" "(-512 -2752 1) (-512 -3296 1) (-32 -3296 1)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 -1 0 0] 0.25"
@@ -234495,7 +234495,7 @@ entity
                side
                {
                        "id" "14632"
-                       "plane" "(-512 -3520 1) (-512 -2752 1) (-512 -2752 192)"
+                       "plane" "(-512 -3296 1) (-512 -2752 1) (-512 -2752 192)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[0 1 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234506,7 +234506,7 @@ entity
                side
                {
                        "id" "14631"
-                       "plane" "(320 -2752 1) (320 -3520 1) (320 -3520 192)"
+                       "plane" "(-32 -2752 1) (-32 -3296 1) (-32 -3296 192)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[0 1 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234517,7 +234517,7 @@ entity
                side
                {
                        "id" "14630"
-                       "plane" "(-512 -2752 1) (320 -2752 1) (320 -2752 192)"
+                       "plane" "(-512 -2752 1) (-32 -2752 1) (-32 -2752 192)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234528,7 +234528,148 @@ entity
                side
                {
                        "id" "14629"
-                       "plane" "(320 -3520 1) (-512 -3520 1) (-512 -3520 192)"
+                       "plane" "(-32 -3296 1) (-512 -3296 1) (-512 -3296 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 30 220"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
+               }
+       }
+       solid
+       {
+               "id" "291583"
+               side
+               {
+                       "id" "101553"
+                       "plane" "(-32 -3200 192) (-32 -3040 192) (128 -3040 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101552"
+                       "plane" "(-32 -3040 1) (-32 -3200 1) (128 -3040 1)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101551"
+                       "plane" "(-32 -3200 1) (-32 -3040 1) (-32 -3040 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101550"
+                       "plane" "(-32 -3040 1) (128 -3040 1) (128 -3040 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101549"
+                       "plane" "(128 -3040 1) (-32 -3200 1) (-32 -3200 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               editor
+               {
+                       "color" "220 30 220"
+                       "visgroupshown" "1"
+                       "visgroupautoshown" "1"
+               }
+       }
+       solid
+       {
+               "id" "291570"
+               side
+               {
+                       "id" "101536"
+                       "plane" "(-32 -3040 192) (-32 -2752 192) (320 -2752 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101535"
+                       "plane" "(-32 -2752 1) (-32 -3040 1) (320 -3040 1)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 -1 0 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101534"
+                       "plane" "(-32 -3040 1) (-32 -2752 1) (-32 -2752 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101533"
+                       "plane" "(320 -2752 1) (320 -3040 1) (320 -3040 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[0 1 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101532"
+                       "plane" "(-32 -2752 1) (320 -2752 1) (320 -2752 192)"
+                       "material" "TOOLS/TOOLSTRIGGER"
+                       "uaxis" "[1 0 0 0] 0.25"
+                       "vaxis" "[0 0 -1 0] 0.25"
+                       "rotation" "0"
+                       "lightmapscale" "16"
+                       "smoothing_groups" "0"
+               }
+               side
+               {
+                       "id" "101531"
+                       "plane" "(320 -3040 1) (-32 -3040 1) (-32 -3040 192)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234647,11 +234788,11 @@ entity
        "heistbomb" "0"
        solid
        {
-               "id" "16421"
+               "id" "291564"
                side
                {
-                       "id" "14714"
-                       "plane" "(-928 -672 64) (-928 -576 64) (-544 -576 64)"
+                       "id" "101524"
+                       "plane" "(-928 -672 64) (-832 -576 64) (-544 -576 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 -1 0 0] 0.25"
@@ -234661,8 +234802,8 @@ entity
                }
                side
                {
-                       "id" "14713"
-                       "plane" "(-928 -576 0) (-928 -672 0) (-592 -864 0)"
+                       "id" "101523"
+                       "plane" "(-928 -672 0) (-592 -864 0) (-576 -864 0)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 -1 0 0] 0.25"
@@ -234672,8 +234813,8 @@ entity
                }
                side
                {
-                       "id" "14712"
-                       "plane" "(-928 -672 0) (-928 -576 0) (-928 -576 64)"
+                       "id" "101522"
+                       "plane" "(-416 -704 0) (-416 -772.572 0) (-416 -772.572 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[0 1 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234683,10 +234824,10 @@ entity
                }
                side
                {
-                       "id" "14711"
-                       "plane" "(-416 -704 0) (-416 -772.572 0) (-416 -772.572 64)"
+                       "id" "101521"
+                       "plane" "(-832 -576 0) (-544 -576 0) (-544 -576 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
-                       "uaxis" "[0 1 0 0] 0.25"
+                       "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
                        "rotation" "0"
                        "lightmapscale" "16"
@@ -234694,8 +234835,8 @@ entity
                }
                side
                {
-                       "id" "14710"
-                       "plane" "(-928 -576 0) (-544 -576 0) (-544 -576 64)"
+                       "id" "101520"
+                       "plane" "(-576 -864 0) (-592 -864 0) (-592 -864 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234705,8 +234846,8 @@ entity
                }
                side
                {
-                       "id" "14709"
-                       "plane" "(-576 -864 0) (-592 -864 0) (-592 -864 64)"
+                       "id" "101519"
+                       "plane" "(-592 -864 0) (-928 -672 0) (-928 -672 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234716,8 +234857,8 @@ entity
                }
                side
                {
-                       "id" "14708"
-                       "plane" "(-592 -864 0) (-928 -672 0) (-928 -672 64)"
+                       "id" "101518"
+                       "plane" "(-416 -772.574 0) (-576 -864 0) (-576 -864 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[1 0 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
@@ -234727,10 +234868,10 @@ entity
                }
                side
                {
-                       "id" "14707"
-                       "plane" "(-416 -772.572 0) (-576 -864 0) (-576 -864 64)"
+                       "id" "101517"
+                       "plane" "(-544 -576 0) (-416 -704 0) (-416 -704 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
-                       "uaxis" "[1 0 0 0] 0.25"
+                       "uaxis" "[0 1 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
                        "rotation" "0"
                        "lightmapscale" "16"
@@ -234738,8 +234879,8 @@ entity
                }
                side
                {
-                       "id" "14706"
-                       "plane" "(-544 -576 0) (-416 -704 0) (-416 -704 64)"
+                       "id" "101516"
+                       "plane" "(-928 -672 0) (-832 -576 0) (-832 -576 64)"
                        "material" "TOOLS/TOOLSTRIGGER"
                        "uaxis" "[0 1 0 0] 0.25"
                        "vaxis" "[0 0 -1 0] 0.25"
diff --git a/MCDV/wc.hpp b/MCDV/wc.hpp
new file mode 100644 (file)
index 0000000..c14591a
--- /dev/null
@@ -0,0 +1,115 @@
+#pragma once
+#include <string>
+#include <iostream>
+#include <fstream>
+#include <stdint.h>
+#include <vector>
+
+namespace wc
+{
+#pragma pack(push, 1)
+
+       struct Command{
+               int is_enabled; // 0/1, If command is enabled.
+               int special;
+               char executable[260]; // Name of EXE to run.
+               char args[260]; // Arguments for executable.
+               int is_long_filename; // Obsolete, but always set to true. Disables MS-DOS 8-char filenames.
+               int ensure_check; // Ensure file post-exists after compilation
+               char ensure_file[260]; // File to check exists.
+               int use_proc_win; // Use Process Window (ignored if exectuable = $game_exe).
+
+               // V 0.2+ only:
+               int no_wait;  // Wait for keypress when done compiling.
+       };
+
+       struct SequenceHeader
+       {
+               char name[128]{ '\0' };
+               uint32_t command_count; // Number of commands
+       };
+
+       struct Sequence
+       {
+               char name[128];
+               std::vector<Command> commands;
+       };
+
+       struct Header {
+               char signature[31] = { 'W','o','r','l','d','c','r','a','f','t',' ','C','o','m','m','a','n','d',' ','S','e','q','u','e','n','c','e','s','\r','\n','\x1a' }; // Yikes.
+               float version = 0.2f;
+               uint32_t seq_count;
+       };
+
+#pragma pack(pop)
+
+       class filedata
+       {
+       public:
+               std::vector<Sequence> sequences;
+
+               filedata(std::string path)
+               {
+                       std::ifstream reader(path, std::ios::in | std::ios::binary);
+
+                       if (!reader) {
+                               throw std::exception("WC::LOAD Failed"); return;
+                       }
+
+                       Header header = Header();
+                       reader.read((char*)&header, sizeof(header));
+
+                       for (int i = 0; i < header.seq_count; i++)
+                       {
+                               Sequence sequence = Sequence();
+                               reader.read((char*)&sequence.name, 128);
+                               
+                               uint32_t command_count;
+                               reader.read((char*)&command_count, sizeof(uint32_t));
+
+                               if (command_count > 1024) {
+                                       throw std::exception("Too many commands!!!");
+                               }
+
+                               for (int cc = 0; cc < command_count; cc++)
+                               {
+                                       Command command = Command();
+
+                                       reader.read((char*)&command, sizeof(Command));
+
+                                       sequence.commands.push_back(command);
+                               }
+
+                               this->sequences.push_back(sequence);
+                       }
+
+                       reader.close();
+               }
+
+               void serialize(std::string path)
+               {
+                       std::fstream writer(path, std::ios::out | std::ios::binary);
+
+                       // Write header
+                       Header header = Header();
+                       header.seq_count = sequences.size();
+                       writer.write((char*)&header, sizeof(header));
+
+                       // Write Sequences
+                       for (auto && sequence : this->sequences){
+
+                               writer.write((char*)&sequence.name, 128);
+                               uint32_t cmdCount = sequence.commands.size();
+
+                               writer.write((char*)&cmdCount, sizeof(uint32_t));
+
+                               for (auto && command : sequence.commands)
+                               {
+                                       writer.write((char*)&command, sizeof(command));
+                               }
+                       }
+
+                       writer.close();
+               }
+       };
+}
\ No newline at end of file
diff --git a/tar_entities/tar_config.png b/tar_entities/tar_config.png
new file mode 100644 (file)
index 0000000..914d7ad
Binary files /dev/null and b/tar_entities/tar_config.png differ
diff --git a/tar_entities/tar_config.psd b/tar_entities/tar_config.psd
new file mode 100644 (file)
index 0000000..eacd1b4
Binary files /dev/null and b/tar_entities/tar_config.psd differ
diff --git a/tar_entities/tar_config.vmt b/tar_entities/tar_config.vmt
new file mode 100644 (file)
index 0000000..0ec3a71
--- /dev/null
@@ -0,0 +1,7 @@
+"Sprite"
+{
+       "$spriteorientation" "vp_parallel"
+       "$spriteorigin" "[ 0.50 0.50 ]"
+       "$basetexture" "tar/editor/tar_config"
+       "$no_fullbright" 1
+}
\ No newline at end of file
diff --git a/tar_entities/tar_config.vtf b/tar_entities/tar_config.vtf
new file mode 100644 (file)
index 0000000..8d59462
Binary files /dev/null and b/tar_entities/tar_config.vtf differ
diff --git a/tar_entities/tar_entities.fgd b/tar_entities/tar_entities.fgd
new file mode 100644 (file)
index 0000000..f0dad97
--- /dev/null
@@ -0,0 +1,39 @@
+@PointClass base(Targetname) iconsprite("tar/editor/tar_config.vmt") = tar_config : 
+       "Configuration entity for Terri's Auto Radar"
+[
+       // HB Color
+
+       colorScheme(choices) : "Color Scheme" : 0 =
+       [
+               0: "Dust 2"
+               1: "Mirage"
+               2: "Overpass"
+               3: "Cache"
+               4: "Inferno"
+               5: "Train"
+               6: "Nuke"
+               7: "Custom Scheme"
+       ]
+       
+       customCol0(color255) : "Custom low level color" : "39 56 79"
+       customCol1(color255) : "Custom middle level color" : "77 74 72"
+       customCol2(color255) : "Custom high level color" : "178 113 65"
+       
+       // Ambient occlusion
+       
+       enableAO(choices) : "Ambient Occlusion" : 0 =
+       [
+               0: "Enabled"
+               1: "Disabled"
+       ]
+       
+       aoSize(float) : "Ambient Occlusion Size" : "16"
+       
+       // Shadows
+       
+       enableAO(choices) : "Shadows" : 1 =
+       [
+               0: "Enabled"
+               1: "Disabled"
+       ]
+]
\ No newline at end of file