static explosion_t explosion[MAX_EXPLOSIONS];
static rtexture_t *explosiontexture;
-static rtexture_t *explosiontexturefog;
+//static rtexture_t *explosiontexturefog;
static rtexturepool_t *explosiontexturepool;
#endif
#ifdef MAX_EXPLOSIONS
static cvar_t r_drawexplosions = {0, "r_drawexplosions", "1", "enables rendering of explosion shells (see also cl_particles_explosions_shell)"};
-extern qboolean r_loadfog;
+//extern qboolean r_loadfog;
static void r_explosion_start(void)
{
int x, y;
static unsigned char noise1[128][128], noise2[128][128], noise3[128][128], data[128][128][4];
explosiontexturepool = R_AllocTexturePool();
explosiontexture = NULL;
- explosiontexturefog = NULL;
+ //explosiontexturefog = NULL;
fractalnoise(&noise1[0][0], 128, 32);
fractalnoise(&noise2[0][0], 128, 4);
fractalnoise(&noise3[0][0], 128, 4);
}
}
explosiontexture = R_LoadTexture2D(explosiontexturepool, "explosiontexture", 128, 128, &data[0][0][0], TEXTYPE_BGRA, TEXF_MIPMAP | TEXF_ALPHA | TEXF_FORCELINEAR, NULL);
- if (r_loadfog)
- {
- for (y = 0;y < 128;y++)
- for (x = 0;x < 128;x++)
- data[y][x][0] = data[y][x][1] = data[y][x][2] = 255;
- explosiontexturefog = R_LoadTexture2D(explosiontexturepool, "explosiontexture_fog", 128, 128, &data[0][0][0], TEXTYPE_BGRA, TEXF_MIPMAP | TEXF_ALPHA | TEXF_FORCELINEAR, NULL);
- }
+// if (r_loadfog)
+// {
+// for (y = 0;y < 128;y++)
+// for (x = 0;x < 128;x++)
+// data[y][x][0] = data[y][x][1] = data[y][x][2] = 255;
+// explosiontexturefog = R_LoadTexture2D(explosiontexturepool, "explosiontexture_fog", 128, 128, &data[0][0][0], TEXTYPE_BGRA, TEXF_MIPMAP | TEXF_ALPHA | TEXF_FORCELINEAR, NULL);
+// }
// note that explosions survive the restart
}
float f;
int numleafs, numsurfaces;
int *leaflist, *surfacelist;
- unsigned char *leafpvs, *shadowtrispvs, *lighttrispvs, *surfacesides;
+ unsigned char *leafpvs;
+ unsigned char *shadowtrispvs;
+ unsigned char *lighttrispvs;
+ //unsigned char *surfacesides;
int numlightentities;
int numlightentities_noselfshadow;
int numshadowentities;
leafpvs = rtlight->static_leafpvs;
numsurfaces = rtlight->static_numsurfaces;
surfacelist = rtlight->static_surfacelist;
- surfacesides = NULL;
+ //surfacesides = NULL;
shadowtrispvs = rtlight->static_shadowtrispvs;
lighttrispvs = rtlight->static_lighttrispvs;
}
leaflist = r_shadow_buffer_leaflist;
leafpvs = r_shadow_buffer_leafpvs;
surfacelist = r_shadow_buffer_surfacelist;
- surfacesides = r_shadow_buffer_surfacesides;
+ //surfacesides = r_shadow_buffer_surfacesides;
shadowtrispvs = r_shadow_buffer_shadowtrispvs;
lighttrispvs = r_shadow_buffer_lighttrispvs;
// if the reduced leaf bounds are offscreen, skip it
leafpvs = NULL;
numsurfaces = 0;
surfacelist = NULL;
- surfacesides = NULL;
+ //surfacesides = NULL;
shadowtrispvs = NULL;
lighttrispvs = NULL;
}
void R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(void)
{
- int entnum, style, islight, skin, pflags, effects, type, n;
+ int entnum;
+ int style;
+ int islight;
+ int skin;
+ int pflags;
+ //int effects;
+ int type;
+ int n;
char *entfiledata;
const char *data;
float origin[3], angles[3], radius, color[3], light[4], fadescale, lightscale, originhack[3], overridecolor[3], vec[4];
style = 0;
skin = 0;
pflags = 0;
- effects = 0;
+ //effects = 0;
islight = false;
while (1)
{
skin = (int)atof(value);
else if (!strcmp("pflags", key))
pflags = (int)atof(value);
- else if (!strcmp("effects", key))
- effects = (int)atof(value);
+ //else if (!strcmp("effects", key))
+ // effects = (int)atof(value);
else if (cl.worldmodel->type == mod_brushq3)
{
if (!strcmp("scale", key))
for (i = 0; i < total_channels ; i++, ch++)
{
sfx_t *sfx;
- unsigned int ltime;
- unsigned int count;
+ int ltime;
+ int count;
sfx = ch->sfx;
if (sfx == NULL)
int filepass;
fs_offset_t filesize;
unsigned char *filedata;
- const char *text, *textstart, *textend;
+ const char *text;
+ const char *textstart;
+ //const char *textend;
char argv[16][1024];
char filename[MAX_QPATH];
if (!sv.particleeffectnamesloaded)
if (!filedata)
continue;
textstart = (const char *)filedata;
- textend = (const char *)filedata + filesize;
+ //textend = (const char *)filedata + filesize;
text = textstart;
for (linenumber = 1;;linenumber++)
{
*/
void SV_WalkMove (prvm_edict_t *ent)
{
- int clip, oldonground, originalmove_clip, originalmove_flags, originalmove_groundentity, hitsupercontentsmask, type;
+ int clip;
+ int oldonground;
+ //int originalmove_clip;
+ int originalmove_flags;
+ int originalmove_groundentity;
+ int hitsupercontentsmask;
+ int type;
vec3_t upmove, downmove, start_origin, start_velocity, stepnormal, originalmove_origin, originalmove_velocity;
trace_t downtrace, trace;
qboolean applygravity;
VectorCopy(ent->fields.server->origin, originalmove_origin);
VectorCopy(ent->fields.server->velocity, originalmove_velocity);
- originalmove_clip = clip;
+ //originalmove_clip = clip;
originalmove_flags = (int)ent->fields.server->flags;
originalmove_groundentity = ent->fields.server->groundentity;
{
// now we need to create up to numpoints + 1 new nodes, forming a BSP tree
// describing the occluder polygon's shadow volume
- int i, j, p, basenum;
+ int i, j, p;
svbsp_node_t *node;
// points and lines are valid testers but not occluders
// note down the first available nodenum for the *parentnodenumpointer
// line which is done last to allow multithreaded queries during an
// insertion
- basenum = b->numnodes;
for (i = 0, p = poly->numpoints - 1;i < poly->numpoints;p = i, i++)
{
#if 1
int i, j;
trace_t tr;
float dist, bestdist;
- float speed;
+ //float speed;
VM_SAFEPARMCOUNT(2, VM_SV_aim);
VM_Warning("aim: can not use free entity\n");
return;
}
- speed = PRVM_G_FLOAT(OFS_PARM1);
+ //speed = PRVM_G_FLOAT(OFS_PARM1);
VectorCopy (ent->fields.server->origin, start);
start[2] += 20;
return sv.writeentitiestoclient_msg;
}
- return NULL;
+ //return NULL;
}
static void VM_SV_WriteByte (void)