]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/q3map2.h
misc
[xonotic/netradiant.git] / tools / quake3 / q3map2 / q3map2.h
index e79736f54fa95c3fe214be3e8ae18a9af21db8a8..0e95aa5d513c4d83b052b0c94324d7dabce6f5c9 100644 (file)
@@ -79,6 +79,8 @@ dependencies
 #include "inout.h"
 #include "vfs.h"
 #include "png.h"
+
+/* mhash library must be installed locally or system wide - http://mhash.sourceforge.net/ */
 #include "mhash.h"
 
 #include <stdlib.h>
@@ -169,7 +171,6 @@ constants
 #define C_ANTIPORTAL                   0x00004000      /* like hint, but doesn't generate portals */
 #define C_SKIP                                 0x00008000      /* like hint, but skips this face (doesn't split bsp) */
 #define C_NOMARKS                              0x00010000      /* no decals */
-
 #define C_DETAIL                               0x08000000      /* THIS MUST BE THE SAME AS IN RADIANT! */
 
 
@@ -323,6 +324,7 @@ abstracted bsp file
 #define        MAX_MAP_DRAW_VERTS              0x80000
 #define        MAX_MAP_DRAW_INDEXES    0x80000
 
+#define MAX_MAP_ADVERTISEMENTS 30
 
 /* key / value pair sizes in the entities lump */
 #define        MAX_KEY                                 32
@@ -502,6 +504,14 @@ typedef struct
 bspDrawSurface_t;
 
 
+/* advertisements */
+typedef struct {
+       int                     cellId;
+       vec3_t          normal;
+       vec3_t          rect[4];
+       char            model[ MAX_QPATH ];
+} bspAdvertisement_t;
+
 
 /* -------------------------------------------------------------------------------
 
@@ -1825,6 +1835,10 @@ Q_EXTERN game_t                          games[]
                                                        {
                                                                #include "game_quake3.h"
                                                                ,
+                                                               #include "game_quakelive.h"/* most be after game_quake3.h as they share defines! */
+                                                               ,
+                                                               #include "game_nexuiz.h"/* most be after game_quake3.h as they share defines! */
+                                                               ,
                                                                #include "game_tremulous.h" /*LinuxManMikeC: must be after game_quake3.h, depends on #define's set in it */
                                                                ,
                                                                #include "game_tenebrae.h"
@@ -2316,6 +2330,8 @@ Q_EXTERN bspDrawSurface_t *bspDrawSurfaces Q_ASSIGN( NULL );
 Q_EXTERN int                           numBSPFogs Q_ASSIGN( 0 );
 Q_EXTERN bspFog_t                      bspFogs[ MAX_MAP_FOGS ];
 
+Q_EXTERN int                           numBSPAds Q_ASSIGN( 0 );
+Q_EXTERN bspAdvertisement_t    bspAds[ MAX_MAP_ADVERTISEMENTS ];
 
 
 /* end marker */