mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
e996609c73
isolated transfers a little. added preliminary support for r1q2 and q2pro protocols (no zlib). fixed some missing q2 hud configstrings. fixed models attached to particles not appearing the first time around. fixed halos appearing on {foo fullbright textures. fix particle crash bug from missing particlecubes. implement r_converteffectinfo (instead of r_importeffectinfo with r_exportalleffects) for convenience. also now more complete and more accurate. loadfont no longer auto-allocates slot 0. fix issues with r_dynamic -1 don't restart audio on vid_reload (only reload it). this fixes audio issues with capturedemo with gamedir changes. fix possible crash from loading sounds during an audio reload/restart. now listens on both ports 27500 and 26000 when running quake, by default. sv_port or -port args will override. work around surfedge corruption in some instance of the slide4 map that dimman found. attempt to nudge players to travel at at least 200qu when travelling vertically through portals. this should help alieviate gravity-induced stuttering issues. fix nested function types used in conjunction with op_state. now assumes static within the parent. optimise array indexes slightly. fix issue with ptr[float].foo fix some qcc bugs to do with implicit type conversions fix a portal / angle protocol extension issue, so legacy clients can use portals, they just can't see the other side (nor predict them). fix q2 victory.pcx issue at the end of the game. use abort/sigabort instead of sigsegv on linux sys_errors. this should help get people to report stuff better. reformat the nq server advertising to be more helpful. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4996 fc73d0e0-1445-4013-8a0c-d673dee63da5
78 lines
2.5 KiB
C
78 lines
2.5 KiB
C
#include "quakedef.h"
|
|
#include "glquake.h"
|
|
|
|
#include "particles.h"
|
|
#include "renderque.h"
|
|
|
|
//returns a valid effect if its existance is known.
|
|
static int PNULL_FindParticleType(const char *name)
|
|
{
|
|
// Con_DPrintf("P_FindParticleType %s\n", name);
|
|
return P_INVALID;
|
|
}
|
|
|
|
static int PNULL_RunParticleEffectTypeString (vec3_t org, vec3_t dir, float count, char *name){return 1;}
|
|
static int PNULL_ParticleTrail (vec3_t startpos, vec3_t end, int type, int dlkey, vec3_t dlaxis[3], trailstate_t **tsk){return 1;}
|
|
static int PNULL_RunParticleEffectState (vec3_t org, vec3_t dir, float count, int typenum, trailstate_t **tsk){return 1;}
|
|
static void PNULL_RunParticleWeather(vec3_t minb, vec3_t maxb, vec3_t dir, float count, int colour, char *efname){}
|
|
static void PNULL_RunParticleCube(int typenum, vec3_t minb, vec3_t maxb, vec3_t dir_min, vec3_t dir_max, float count, int colour, qboolean gravity, float jitter){}
|
|
static void PNULL_RunParticleEffect (vec3_t org, vec3_t dir, int color, int count){}
|
|
static void PNULL_RunParticleEffect2 (vec3_t org, vec3_t dmin, vec3_t dmax, int color, int effect, int count){}
|
|
static void PNULL_RunParticleEffect3 (vec3_t org, vec3_t box, int color, int effect, int count){}
|
|
static void PNULL_RunParticleEffect4 (vec3_t org, float radius, int color, int effect, int count){}
|
|
static void PNULL_RunParticleEffectPalette (const char *nameprefix, vec3_t org, vec3_t dir, int color, int count){}
|
|
|
|
static void PNULL_ParticleTrailIndex (vec3_t start, vec3_t end, int color, int crnd, trailstate_t **tsk){}
|
|
static void PNULL_EmitSkyEffectTris(model_t *mod, msurface_t *fa, int ptype){}
|
|
|
|
static qboolean PNULL_InitParticles (void)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
static void PNULL_ShutdownParticles(void)
|
|
{
|
|
}
|
|
|
|
static void PNULL_DelinkTrailstate(trailstate_t **tsk)
|
|
{
|
|
*tsk = NULL;
|
|
}
|
|
static void PNULL_ClearParticles (void){}
|
|
static void PNULL_DrawParticles(void)
|
|
{
|
|
RSpeedLocals();
|
|
|
|
RSpeedRemark();
|
|
RQ_RenderBatchClear();
|
|
RSpeedEnd(RSPEED_PARTICLESDRAW);
|
|
}
|
|
|
|
|
|
particleengine_t pe_null =
|
|
{
|
|
"null",
|
|
"none",
|
|
|
|
PNULL_FindParticleType,
|
|
NULL,
|
|
|
|
PNULL_RunParticleEffectTypeString,
|
|
PNULL_ParticleTrail,
|
|
PNULL_RunParticleEffectState,
|
|
PNULL_RunParticleWeather,
|
|
PNULL_RunParticleCube,
|
|
PNULL_RunParticleEffect,
|
|
PNULL_RunParticleEffect2,
|
|
PNULL_RunParticleEffect3,
|
|
PNULL_RunParticleEffect4,
|
|
PNULL_RunParticleEffectPalette,
|
|
|
|
PNULL_ParticleTrailIndex,
|
|
PNULL_EmitSkyEffectTris,
|
|
PNULL_InitParticles,
|
|
PNULL_ShutdownParticles,
|
|
PNULL_DelinkTrailstate,
|
|
PNULL_ClearParticles,
|
|
PNULL_DrawParticles
|
|
};
|