]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/q3map2.h
q3map2: Smokin'Guns 1.2.1 flavour
[xonotic/netradiant.git] / tools / quake3 / q3map2 / q3map2.h
index 0d70d39d296ce981ae20e1794094bd025d83cd74..5593b86aff10b6b5ee59cf4a824f98cd836f9d51 100644 (file)
 #define C_DETAIL                0x08000000  /* THIS MUST BE THE SAME AS IN RADIANT! */
 
 
+#ifdef SMOKINGUNS
+// new Smokin'Guns surface flags
+#define        Q_SURF_METAL                    0x00001000
+#define        Q_SURF_WOOD                             0x00080000
+#define        Q_SURF_CLOTH                    0x00100000
+#define Q_SURF_DIRT                            0x00200000
+#define        Q_SURF_GLASS                    0x00400000
+#define        Q_SURF_PLANT                    0x00800000
+#define Q_SURF_SAND                            0x01000000
+#define        Q_SURF_SNOW                             0x02000000
+#define        Q_SURF_STONE                    0x04000000
+#define        Q_SURF_WATER                    0x08000000
+#define        Q_SURF_GRASS                    0x10000000
+#define        Q_SURF_BREAKABLE                0x20000000
+#endif
+
+
 /* shadow flags */
 #define WORLDSPAWN_CAST_SHADOWS 1
 #define WORLDSPAWN_RECV_SHADOWS 1
@@ -1898,6 +1915,13 @@ void                        LoadBSPFile( const char *filename );
 void                        WriteBSPFile( const char *filename );
 void                        PrintBSPFileSizes( void );
 
+#ifdef SMOKINGUNS
+void                                           WriteTexFile(char *name);
+void                                           LoadSurfaceFlags(char *filename);
+int                                                    GetSurfaceParm(const char *tex);
+void                                           RestoreSurfaceFlags(char *filename);
+#endif
+
 epair_t                     *ParseEPair( void );
 void                        ParseEntities( void );
 void                        UnparseEntities( void );
@@ -1977,6 +2001,10 @@ Q_EXTERN game_t games[]
                                                                #include "game_qfusion.h"   /* qfusion game */
        ,
                                                                #include "game_reaction.h" /* must be after game_quake3.h */
+#ifdef SMOKINGUNS
+       ,
+                                                               #include "game_smokinguns.h" /* Smokin'Guns */
+#endif
        ,
                                                                #include "game_darkplaces.h"    /* vortex: darkplaces q1 engine */
        ,
@@ -2544,6 +2572,11 @@ Q_EXTERN bspFog_t bspFogs[ MAX_MAP_FOGS ];
 Q_EXTERN int numBSPAds Q_ASSIGN( 0 );
 Q_EXTERN bspAdvertisement_t bspAds[ MAX_MAP_ADVERTISEMENTS ];
 
+#ifdef SMOKINGUNS
+// Smokin'Guns globals
+Q_EXTERN qboolean                      compile_map;
+#endif
+
 #define AUTOEXPAND_BY_REALLOC( ptr, reqitem, allocated, def ) \
        do \
        { \