mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Allow launch into lobby
This commit is contained in:
parent
b15cebeade
commit
85cb5b7992
16 changed files with 19 additions and 68 deletions
2
Makefile
2
Makefile
|
@ -25,7 +25,7 @@ APP_DESCRIPTION := NZP based on ctrQuake
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
|
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 -mword-relocations \
|
CFLAGS := -g -Wall -O3 -mword-relocations \
|
||||||
-fomit-frame-pointer -ffunction-sections \
|
-fomit-frame-pointer -ffunction-sections \
|
||||||
$(ARCH)
|
$(ARCH)
|
||||||
|
|
||||||
|
|
BIN
ctrQuake.3dsx
BIN
ctrQuake.3dsx
Binary file not shown.
BIN
ctrQuake.elf
BIN
ctrQuake.elf
Binary file not shown.
BIN
ctrQuake.smdh
BIN
ctrQuake.smdh
Binary file not shown.
BIN
nzportable.3dsx
BIN
nzportable.3dsx
Binary file not shown.
BIN
nzportable.elf
BIN
nzportable.elf
Binary file not shown.
|
@ -25,18 +25,6 @@ int num_temp_entities;
|
||||||
entity_t cl_temp_entities[MAX_TEMP_ENTITIES];
|
entity_t cl_temp_entities[MAX_TEMP_ENTITIES];
|
||||||
beam_t cl_beams[MAX_BEAMS];
|
beam_t cl_beams[MAX_BEAMS];
|
||||||
|
|
||||||
sfx_t *cl_sfx_wizhit;
|
|
||||||
sfx_t *cl_sfx_knighthit;
|
|
||||||
sfx_t *cl_sfx_tink1;
|
|
||||||
sfx_t *cl_sfx_ric1;
|
|
||||||
sfx_t *cl_sfx_ric2;
|
|
||||||
sfx_t *cl_sfx_ric3;
|
|
||||||
sfx_t *cl_sfx_r_exp3;
|
|
||||||
#ifdef QUAKE2
|
|
||||||
sfx_t *cl_sfx_imp;
|
|
||||||
sfx_t *cl_sfx_rail;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
CL_ParseTEnt
|
CL_ParseTEnt
|
||||||
|
@ -44,17 +32,7 @@ CL_ParseTEnt
|
||||||
*/
|
*/
|
||||||
void CL_InitTEnts (void)
|
void CL_InitTEnts (void)
|
||||||
{
|
{
|
||||||
cl_sfx_wizhit = S_PrecacheSound ("wizard/hit.wav");
|
|
||||||
cl_sfx_knighthit = S_PrecacheSound ("hknight/hit.wav");
|
|
||||||
cl_sfx_tink1 = S_PrecacheSound ("weapons/tink1.wav");
|
|
||||||
cl_sfx_ric1 = S_PrecacheSound ("weapons/ric1.wav");
|
|
||||||
cl_sfx_ric2 = S_PrecacheSound ("weapons/ric2.wav");
|
|
||||||
cl_sfx_ric3 = S_PrecacheSound ("weapons/ric3.wav");
|
|
||||||
cl_sfx_r_exp3 = S_PrecacheSound ("weapons/r_exp3.wav");
|
|
||||||
#ifdef QUAKE2
|
|
||||||
cl_sfx_imp = S_PrecacheSound ("shambler/sattck1.wav");
|
|
||||||
cl_sfx_rail = S_PrecacheSound ("weapons/lstart.wav");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -131,7 +109,6 @@ void CL_ParseTEnt (void)
|
||||||
pos[1] = MSG_ReadCoord ();
|
pos[1] = MSG_ReadCoord ();
|
||||||
pos[2] = MSG_ReadCoord ();
|
pos[2] = MSG_ReadCoord ();
|
||||||
R_RunParticleEffect (pos, vec3_origin, 20, 30);
|
R_RunParticleEffect (pos, vec3_origin, 20, 30);
|
||||||
S_StartSound (-1, 0, cl_sfx_wizhit, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_KNIGHTSPIKE: // spike hitting wall
|
case TE_KNIGHTSPIKE: // spike hitting wall
|
||||||
|
@ -139,7 +116,6 @@ void CL_ParseTEnt (void)
|
||||||
pos[1] = MSG_ReadCoord ();
|
pos[1] = MSG_ReadCoord ();
|
||||||
pos[2] = MSG_ReadCoord ();
|
pos[2] = MSG_ReadCoord ();
|
||||||
R_RunParticleEffect (pos, vec3_origin, 226, 20);
|
R_RunParticleEffect (pos, vec3_origin, 226, 20);
|
||||||
S_StartSound (-1, 0, cl_sfx_knighthit, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_SPIKE: // spike hitting wall
|
case TE_SPIKE: // spike hitting wall
|
||||||
|
@ -151,37 +127,12 @@ void CL_ParseTEnt (void)
|
||||||
#else
|
#else
|
||||||
R_RunParticleEffect (pos, vec3_origin, 0, 10);
|
R_RunParticleEffect (pos, vec3_origin, 0, 10);
|
||||||
#endif
|
#endif
|
||||||
if ( rand() % 5 )
|
|
||||||
S_StartSound (-1, 0, cl_sfx_tink1, pos, 1, 1);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rnd = rand() & 3;
|
|
||||||
if (rnd == 1)
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric1, pos, 1, 1);
|
|
||||||
else if (rnd == 2)
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric2, pos, 1, 1);
|
|
||||||
else
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric3, pos, 1, 1);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case TE_SUPERSPIKE: // super spike hitting wall
|
case TE_SUPERSPIKE: // super spike hitting wall
|
||||||
pos[0] = MSG_ReadCoord ();
|
pos[0] = MSG_ReadCoord ();
|
||||||
pos[1] = MSG_ReadCoord ();
|
pos[1] = MSG_ReadCoord ();
|
||||||
pos[2] = MSG_ReadCoord ();
|
pos[2] = MSG_ReadCoord ();
|
||||||
R_RunParticleEffect (pos, vec3_origin, 0, 20);
|
R_RunParticleEffect (pos, vec3_origin, 0, 20);
|
||||||
|
|
||||||
if ( rand() % 5 )
|
|
||||||
S_StartSound (-1, 0, cl_sfx_tink1, pos, 1, 1);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rnd = rand() & 3;
|
|
||||||
if (rnd == 1)
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric1, pos, 1, 1);
|
|
||||||
else if (rnd == 2)
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric2, pos, 1, 1);
|
|
||||||
else
|
|
||||||
S_StartSound (-1, 0, cl_sfx_ric3, pos, 1, 1);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_GUNSHOT: // bullet hitting wall
|
case TE_GUNSHOT: // bullet hitting wall
|
||||||
|
@ -201,7 +152,6 @@ void CL_ParseTEnt (void)
|
||||||
dl->radius = 350;
|
dl->radius = 350;
|
||||||
dl->die = cl.time + 0.5;
|
dl->die = cl.time + 0.5;
|
||||||
dl->decay = 300;
|
dl->decay = 300;
|
||||||
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_TAREXPLOSION: // tarbaby explosion
|
case TE_TAREXPLOSION: // tarbaby explosion
|
||||||
|
@ -209,8 +159,6 @@ void CL_ParseTEnt (void)
|
||||||
pos[1] = MSG_ReadCoord ();
|
pos[1] = MSG_ReadCoord ();
|
||||||
pos[2] = MSG_ReadCoord ();
|
pos[2] = MSG_ReadCoord ();
|
||||||
R_BlobExplosion (pos);
|
R_BlobExplosion (pos);
|
||||||
|
|
||||||
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_LIGHTNING1: // lightning bolts
|
case TE_LIGHTNING1: // lightning bolts
|
||||||
|
@ -257,7 +205,6 @@ void CL_ParseTEnt (void)
|
||||||
dl->radius = 350;
|
dl->radius = 350;
|
||||||
dl->die = cl.time + 0.5;
|
dl->die = cl.time + 0.5;
|
||||||
dl->decay = 300;
|
dl->decay = 300;
|
||||||
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef QUAKE2
|
#ifdef QUAKE2
|
||||||
|
@ -265,7 +212,6 @@ void CL_ParseTEnt (void)
|
||||||
pos[0] = MSG_ReadCoord ();
|
pos[0] = MSG_ReadCoord ();
|
||||||
pos[1] = MSG_ReadCoord ();
|
pos[1] = MSG_ReadCoord ();
|
||||||
pos[2] = MSG_ReadCoord ();
|
pos[2] = MSG_ReadCoord ();
|
||||||
S_StartSound (-1, 0, cl_sfx_imp, pos, 1, 1);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TE_RAILTRAIL:
|
case TE_RAILTRAIL:
|
||||||
|
|
|
@ -754,6 +754,9 @@ void *SZ_GetSpace (sizebuf_t *buf, int length)
|
||||||
|
|
||||||
if (buf->cursize + length > buf->maxsize)
|
if (buf->cursize + length > buf->maxsize)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Con_Printf("buf->cursize: %d, length: %d, buf->maxsize: %d\n", buf->cursize, length, buf->maxsize);
|
||||||
|
|
||||||
if (!buf->allowoverflow)
|
if (!buf->allowoverflow)
|
||||||
Sys_Error ("SZ_GetSpace: overflow without allowoverflow set");
|
Sys_Error ("SZ_GetSpace: overflow without allowoverflow set");
|
||||||
|
|
||||||
|
|
|
@ -1351,6 +1351,8 @@ ALIAS MODELS
|
||||||
==============================================================================
|
==============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma GCC push_options
|
||||||
|
#pragma GCC optimize ("O0")
|
||||||
aliashdr_t *pheader;
|
aliashdr_t *pheader;
|
||||||
|
|
||||||
stvert_t stverts[MAXALIASVERTS];
|
stvert_t stverts[MAXALIASVERTS];
|
||||||
|
@ -1655,6 +1657,7 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer)
|
||||||
if (pheader->numverts <= 0)
|
if (pheader->numverts <= 0)
|
||||||
Sys_Error ("model %s has no vertices", mod->name);
|
Sys_Error ("model %s has no vertices", mod->name);
|
||||||
|
|
||||||
|
//Con_Printf("numverts: %d\n", pheader->numverts);
|
||||||
if (pheader->numverts > MAXALIASVERTS)
|
if (pheader->numverts > MAXALIASVERTS)
|
||||||
Sys_Error ("model %s has too many vertices", mod->name);
|
Sys_Error ("model %s has too many vertices", mod->name);
|
||||||
|
|
||||||
|
@ -1937,7 +1940,7 @@ void Mod_LoadSpriteModel (model_t *mod, void *buffer)
|
||||||
|
|
||||||
mod->type = mod_sprite;
|
mod->type = mod_sprite;
|
||||||
}
|
}
|
||||||
|
#pragma GCC pop_options
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -314,7 +314,7 @@ typedef struct {
|
||||||
maliasframedesc_t frames[1]; // variable sized
|
maliasframedesc_t frames[1]; // variable sized
|
||||||
} aliashdr_t;
|
} aliashdr_t;
|
||||||
|
|
||||||
#define MAXALIASVERTS 1024
|
#define MAXALIASVERTS 2048
|
||||||
#define MAXALIASFRAMES 256
|
#define MAXALIASFRAMES 256
|
||||||
#define MAXALIASTRIS 2048
|
#define MAXALIASTRIS 2048
|
||||||
extern aliashdr_t *pheader;
|
extern aliashdr_t *pheader;
|
||||||
|
|
|
@ -70,7 +70,7 @@ cvar_t noexit = {"noexit","0",false,true};
|
||||||
#ifdef QUAKE2
|
#ifdef QUAKE2
|
||||||
cvar_t developer = {"developer","1"}; // should be 0 for release!
|
cvar_t developer = {"developer","1"}; // should be 0 for release!
|
||||||
#else
|
#else
|
||||||
cvar_t developer = {"developer","1"};
|
cvar_t developer = {"developer","0"};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cvar_t skill = {"skill","1"}; // 0 - 3
|
cvar_t skill = {"skill","1"}; // 0 - 3
|
||||||
|
|
|
@ -28,7 +28,7 @@ struct qsockaddr
|
||||||
|
|
||||||
#define NET_NAMELEN 64
|
#define NET_NAMELEN 64
|
||||||
|
|
||||||
#define NET_MAXMESSAGE 8192
|
#define NET_MAXMESSAGE 16384
|
||||||
#define NET_HEADERSIZE (2 * sizeof(unsigned int))
|
#define NET_HEADERSIZE (2 * sizeof(unsigned int))
|
||||||
#define NET_DATAGRAMSIZE (MAX_DATAGRAM + NET_HEADERSIZE)
|
#define NET_DATAGRAMSIZE (MAX_DATAGRAM + NET_HEADERSIZE)
|
||||||
|
|
||||||
|
|
|
@ -102,8 +102,8 @@ void VID_UnlockBuffer (void);
|
||||||
|
|
||||||
#define ON_EPSILON 0.1 // point on plane side epsilon
|
#define ON_EPSILON 0.1 // point on plane side epsilon
|
||||||
|
|
||||||
#define MAX_MSGLEN 8000 // max length of a reliable message
|
#define MAX_MSGLEN 64000 // max length of a reliable message Crow_Bar. UP for PSP
|
||||||
#define MAX_DATAGRAM 1024 // max length of unreliable message
|
#define MAX_DATAGRAM 8000 // max length of unreliable message Crow_Bar. UP for PSP
|
||||||
|
|
||||||
//
|
//
|
||||||
// per-level limits
|
// per-level limits
|
||||||
|
|
|
@ -234,8 +234,8 @@ void S_Init (void)
|
||||||
// if (shm->buffer)
|
// if (shm->buffer)
|
||||||
// shm->buffer[4] = shm->buffer[5] = 0x7f; // force a pop for debugging
|
// shm->buffer[4] = shm->buffer[5] = 0x7f; // force a pop for debugging
|
||||||
|
|
||||||
ambient_sfx[AMBIENT_WATER] = S_PrecacheSound ("ambience/water1.wav");
|
//ambient_sfx[AMBIENT_WATER] = S_PrecacheSound ("ambience/water1.wav");
|
||||||
ambient_sfx[AMBIENT_SKY] = S_PrecacheSound ("ambience/wind2.wav");
|
//ambient_sfx[AMBIENT_SKY] = S_PrecacheSound ("ambience/wind2.wav");
|
||||||
|
|
||||||
S_StopAllSounds (true);
|
S_StopAllSounds (true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,8 +111,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
|
||||||
|
|
||||||
//Con_Printf ("S_LoadSound: %x\n", (int)stackbuf);
|
//Con_Printf ("S_LoadSound: %x\n", (int)stackbuf);
|
||||||
// load it in
|
// load it in
|
||||||
Q_strcpy(namebuffer, "sound/");
|
Q_strcpy(namebuffer, s->name);
|
||||||
Q_strcat(namebuffer, s->name);
|
|
||||||
|
|
||||||
// Con_Printf ("loading %s\n",namebuffer);
|
// Con_Printf ("loading %s\n",namebuffer);
|
||||||
|
|
||||||
|
|
|
@ -1219,7 +1219,7 @@ void SV_CheckWaterTransition (edict_t *ent)
|
||||||
{
|
{
|
||||||
if (ent->v.watertype == CONTENTS_EMPTY)
|
if (ent->v.watertype == CONTENTS_EMPTY)
|
||||||
{ // just crossed into water
|
{ // just crossed into water
|
||||||
SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);
|
//SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);
|
||||||
}
|
}
|
||||||
ent->v.watertype = cont;
|
ent->v.watertype = cont;
|
||||||
ent->v.waterlevel = 1;
|
ent->v.waterlevel = 1;
|
||||||
|
@ -1228,7 +1228,7 @@ void SV_CheckWaterTransition (edict_t *ent)
|
||||||
{
|
{
|
||||||
if (ent->v.watertype != CONTENTS_EMPTY)
|
if (ent->v.watertype != CONTENTS_EMPTY)
|
||||||
{ // just crossed into water
|
{ // just crossed into water
|
||||||
SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);
|
//SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);
|
||||||
}
|
}
|
||||||
ent->v.watertype = CONTENTS_EMPTY;
|
ent->v.watertype = CONTENTS_EMPTY;
|
||||||
ent->v.waterlevel = cont;
|
ent->v.waterlevel = cont;
|
||||||
|
|
Loading…
Reference in a new issue