Client/server engine changes for OpenArena 0.8.8
This commit is contained in:
@@ -27,15 +27,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
// A user mod should never modify this file
|
||||
|
||||
#ifdef STANDALONE
|
||||
#define PRODUCT_NAME "iofoo3"
|
||||
#define BASEGAME "foobar"
|
||||
#define CLIENT_WINDOW_TITLE "changeme"
|
||||
#define CLIENT_WINDOW_MIN_TITLE "changeme2"
|
||||
#define HOMEPATH_NAME_UNIX ".foo"
|
||||
#define HOMEPATH_NAME_WIN "FooBar"
|
||||
#define PRODUCT_NAME "ioq3+oa"
|
||||
#define BASEGAME "baseoa"
|
||||
#define CLIENT_WINDOW_TITLE "OpenArena"
|
||||
#define CLIENT_WINDOW_MIN_TITLE "OA"
|
||||
#define HOMEPATH_NAME_UNIX ".openarena"
|
||||
#define HOMEPATH_NAME_WIN "OpenArena"
|
||||
#define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN
|
||||
#define GAMENAME_FOR_MASTER "foobar" // must NOT contain whitespace
|
||||
// #define LEGACY_PROTOCOL // You probably don't need this for your standalone game
|
||||
#define GAMENAME_FOR_MASTER "Quake3Arena" // must NOT contain whitespace. No servers show up if you use "openarena"
|
||||
#define LEGACY_PROTOCOL 1 // OA still uses the legacy protocol
|
||||
#else
|
||||
#define PRODUCT_NAME "ioq3"
|
||||
#define BASEGAME "baseq3"
|
||||
@@ -392,8 +392,9 @@ extern vec4_t colorLtGrey;
|
||||
extern vec4_t colorMdGrey;
|
||||
extern vec4_t colorDkGrey;
|
||||
|
||||
#define NUMBER_OF_COLORS 9
|
||||
#define Q_COLOR_ESCAPE '^'
|
||||
#define Q_IsColorString(p) ((p) && *(p) == Q_COLOR_ESCAPE && *((p)+1) && isalnum(*((p)+1))) // ^[0-9a-zA-Z]
|
||||
#define Q_IsColorString(p) ((p) && *(p) == Q_COLOR_ESCAPE && *((p)+1) && *((p)+1) >= '0' && *((p)+1) <= '8') // ^[0-8]
|
||||
|
||||
#define COLOR_BLACK '0'
|
||||
#define COLOR_RED '1'
|
||||
@@ -403,7 +404,8 @@ extern vec4_t colorDkGrey;
|
||||
#define COLOR_CYAN '5'
|
||||
#define COLOR_MAGENTA '6'
|
||||
#define COLOR_WHITE '7'
|
||||
#define ColorIndex(c) (((c) - '0') & 0x07)
|
||||
#define COLOR_MENU '8'
|
||||
#define ColorIndex(c) ((c) - '0')
|
||||
|
||||
#define S_COLOR_BLACK "^0"
|
||||
#define S_COLOR_RED "^1"
|
||||
@@ -413,8 +415,9 @@ extern vec4_t colorDkGrey;
|
||||
#define S_COLOR_CYAN "^5"
|
||||
#define S_COLOR_MAGENTA "^6"
|
||||
#define S_COLOR_WHITE "^7"
|
||||
#define S_COLOR_MENU "^8"
|
||||
|
||||
extern vec4_t g_color_table[8];
|
||||
extern vec4_t g_color_table[NUMBER_OF_COLORS];
|
||||
|
||||
#define MAKERGB( v, r, g, b ) v[0]=r;v[1]=g;v[2]=b
|
||||
#define MAKERGBA( v, r, g, b, a ) v[0]=r;v[1]=g;v[2]=b;v[3]=a
|
||||
@@ -701,6 +704,9 @@ void MakeNormalVectors( const vec3_t forward, vec3_t right, vec3_t up );
|
||||
// perpendicular vector could be replaced by this
|
||||
|
||||
//int PlaneTypeForNormal (vec3_t normal);
|
||||
qboolean Matrix4Compare(const float a[16], const float b[16]);
|
||||
void Matrix4Copy(const float in[16], float out[16]);
|
||||
void Matrix4Multiply(const float a[16], const float b[16], float out[16]);
|
||||
|
||||
void MatrixMultiply(float in1[3][3], float in2[3][3], float out[3][3]);
|
||||
void AngleVectors( const vec3_t angles, vec3_t forward, vec3_t right, vec3_t up);
|
||||
|
Reference in New Issue
Block a user