]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
optional polygon collisions, not ready for practical use yet, also support for brush...
[xonotic/darkplaces.git] / model_brush.h
index 4dfa594fc1e29de0808c3fa500aa0318a29eeb64..3ab97037de5f69c7cccda5d54c7615f1b9036baa 100644 (file)
@@ -71,6 +71,7 @@ mplane_t;
 #define SURF_SHADOWCAST 0x1000 // this polygon can cast stencil shadows
 #define SURF_SHADOWLIGHT 0x2000 // this polygon can be lit by stencil shadowing
 #define SURF_WATERALPHA 0x4000 // this polygon's alpha is modulated by r_wateralpha
+#define SURF_SOLIDCLIP 0x8000 // this polygon blocks movement
 
 #define SURFRENDER_OPAQUE 0
 #define SURFRENDER_ALPHA 1
@@ -213,6 +214,9 @@ typedef struct msurface_s
        // avoid redundent addition of dlights
        int lightframe;
 
+       // avoid multiple collision traces with a surface polygon
+       int colframe;
+
        // these are just 3D points defining the outline of the polygon,
        // no texcoord info (that can be generated from these)
        int poly_numverts;