Das war ein wenig viel des Guten, nun tut es

This commit is contained in:
Yamagi Burmeister 2009-03-02 22:13:15 +00:00
parent 73b70ecb62
commit 9d8dbb94d2

View file

@ -96,6 +96,7 @@ struct sfx_s *cl_sfx_rockexp;
struct sfx_s *cl_sfx_grenexp; struct sfx_s *cl_sfx_grenexp;
struct sfx_s *cl_sfx_watrexp; struct sfx_s *cl_sfx_watrexp;
// RAFAEL // RAFAEL
struct sfx_s *cl_sfx_plasexp;
struct sfx_s *cl_sfx_footsteps[4]; struct sfx_s *cl_sfx_footsteps[4];
struct model_s *cl_mod_explode; struct model_s *cl_mod_explode;
@ -108,12 +109,14 @@ struct model_s *cl_mod_explo4;
struct model_s *cl_mod_bfg_explo; struct model_s *cl_mod_bfg_explo;
struct model_s *cl_mod_powerscreen; struct model_s *cl_mod_powerscreen;
// RAFAEL // RAFAEL
struct model_s *cl_mod_plasmaexplo;
//ROGUE //ROGUE
struct sfx_s *cl_sfx_lightning; struct sfx_s *cl_sfx_lightning;
struct sfx_s *cl_sfx_disrexp; struct sfx_s *cl_sfx_disrexp;
struct model_s *cl_mod_lightning; struct model_s *cl_mod_lightning;
struct model_s *cl_mod_heatbeam; struct model_s *cl_mod_heatbeam;
struct model_s *cl_mod_monster_heatbeam;
struct model_s *cl_mod_explo4_big; struct model_s *cl_mod_explo4_big;
//ROGUE //ROGUE
@ -173,6 +176,29 @@ void CL_RegisterTEntModels (void)
cl_mod_explo4 = re.RegisterModel ("models/objects/r_explode/tris.md2"); cl_mod_explo4 = re.RegisterModel ("models/objects/r_explode/tris.md2");
cl_mod_bfg_explo = re.RegisterModel ("sprites/s_bfg2.sp2"); cl_mod_bfg_explo = re.RegisterModel ("sprites/s_bfg2.sp2");
cl_mod_powerscreen = re.RegisterModel ("models/items/armor/effect/tris.md2"); cl_mod_powerscreen = re.RegisterModel ("models/items/armor/effect/tris.md2");
re.RegisterModel ("models/objects/laser/tris.md2");
re.RegisterModel ("models/objects/grenade2/tris.md2");
re.RegisterModel ("models/weapons/v_machn/tris.md2");
re.RegisterModel ("models/weapons/v_handgr/tris.md2");
re.RegisterModel ("models/weapons/v_shotg2/tris.md2");
re.RegisterModel ("models/objects/gibs/bone/tris.md2");
re.RegisterModel ("models/objects/gibs/sm_meat/tris.md2");
re.RegisterModel ("models/objects/gibs/bone2/tris.md2");
// RAFAEL
// re.RegisterModel ("models/objects/blaser/tris.md2");
re.RegisterPic ("w_machinegun");
re.RegisterPic ("a_bullets");
re.RegisterPic ("i_health");
re.RegisterPic ("a_grenades");
//ROGUE
cl_mod_explo4_big = re.RegisterModel ("models/objects/r_explode2/tris.md2");
cl_mod_lightning = re.RegisterModel ("models/proj/lightning/tris.md2");
cl_mod_heatbeam = re.RegisterModel ("models/proj/beam/tris.md2");
cl_mod_monster_heatbeam = re.RegisterModel ("models/proj/widowbeam/tris.md2");
//ROGUE
} }
/* /*
@ -384,20 +410,13 @@ void CL_ParsePlayerBeam (struct model_s *model)
int i; int i;
ent = MSG_ReadShort (&net_message); ent = MSG_ReadShort (&net_message);
MSG_ReadPos (&net_message, start); MSG_ReadPos (&net_message, start);
MSG_ReadPos (&net_message, end); MSG_ReadPos (&net_message, end);
// PMM - network optimization // PMM - network optimization
if (model == cl_mod_heatbeam)
if (!cl_mod_heatbeam) VectorSet(offset, 2, 7, -3);
cl_mod_heatbeam = re.RegisterModel ("models/proj/beam/tris.md2"); else if (model == cl_mod_monster_heatbeam)
model = cl_mod_heatbeam;
if (tempent == TE_HEATBEAM)
{
VectorSet(offset, 2, 7, -3);
else if (tempent == TE_MONSTER_HEATBEAM)
{ {
model = cl_mod_heatbeam; model = cl_mod_heatbeam;
VectorSet(offset, 0, 0, 0); VectorSet(offset, 0, 0, 0);
@ -405,10 +424,6 @@ void CL_ParsePlayerBeam (struct model_s *model)
else else
MSG_ReadPos (&net_message, offset); MSG_ReadPos (&net_message, offset);
if (!model)
return;
// override any beam with the same entity // override any beam with the same entity
// PMM - For player beams, we only want one per player (entity) so.. // PMM - For player beams, we only want one per player (entity) so..
for (i=0, b=cl_playerbeams ; i< MAX_BEAMS ; i++, b++) for (i=0, b=cl_playerbeams ; i< MAX_BEAMS ; i++, b++)
@ -440,7 +455,7 @@ void CL_ParsePlayerBeam (struct model_s *model)
} }
} }
Com_Printf ("beam list overflow!\n"); Com_Printf ("beam list overflow!\n");
return ent; return;
} }
//rogue //rogue
@ -855,7 +870,7 @@ void CL_ParseTEnt (void)
VectorCopy (pos, ex->ent.origin); VectorCopy (pos, ex->ent.origin);
ex->type = ex_poly; ex->type = ex_poly;
ex->ent.flags = RF_FULLBRIGHT|RF_NOSHADOW; ex->ent.flags = RF_FULLBRIGHT|RF_NOSHADOW;
ex->start = cl.frame.servertime - 100f; ex->start = cl.frame.servertime - 100.0f;
ex->light = 350; ex->light = 350;
ex->lightcolor[0] = 1.0; ex->lightcolor[0] = 1.0;
ex->lightcolor[1] = 0.5; ex->lightcolor[1] = 0.5;
@ -864,11 +879,7 @@ void CL_ParseTEnt (void)
if (type != TE_EXPLOSION1_BIG) // PMM if (type != TE_EXPLOSION1_BIG) // PMM
ex->ent.model = cl_mod_explo4; // PMM ex->ent.model = cl_mod_explo4; // PMM
else else
{ ex->ent.model = cl_mod_explo4_big;
if (!cl_mod_explo4_big)
cl_mod_explo4_big = re.RegisterModel ("models/objects/r_explode2/tris.md2");
ex->ent.model = cl_mod_explo4_big;
}
if (frand() < 0.5) if (frand() < 0.5)
ex->baseframe = 15; ex->baseframe = 15;
ex->frames = 15; ex->frames = 15;
@ -914,7 +925,7 @@ void CL_ParseTEnt (void)
case TE_PARASITE_ATTACK: case TE_PARASITE_ATTACK:
case TE_MEDIC_CABLE_ATTACK: case TE_MEDIC_CABLE_ATTACK:
ent = CL_ParseBeam (cl_mod_parasite_segment); CL_ParseBeam (cl_mod_parasite_segment);
break; break;
case TE_BOSSTPORT: // boss teleporting to station case TE_BOSSTPORT: // boss teleporting to station
@ -1001,7 +1012,7 @@ void CL_ParseTEnt (void)
else // flechette else // flechette
ex->ent.skinnum = 2; ex->ent.skinnum = 2;
ex->start = cl.frame.servertime - 100f; ex->start = cl.frame.servertime - 100.0f;
ex->light = 150; ex->light = 150;
// PMM // PMM
if (type == TE_BLASTER2) if (type == TE_BLASTER2)
@ -1019,9 +1030,6 @@ void CL_ParseTEnt (void)
case TE_LIGHTNING: case TE_LIGHTNING:
if (!cl_mod_lightning)
cl_mod_lightning = re.RegisterModel ("models/proj/lightning/tris.md2");
ent = CL_ParseLightning (cl_mod_lightning); ent = CL_ParseLightning (cl_mod_lightning);
S_StartSound (NULL, ent, CHAN_WEAPON, cl_sfx_lightning, 1, ATTN_NORM, 0); S_StartSound (NULL, ent, CHAN_WEAPON, cl_sfx_lightning, 1, ATTN_NORM, 0);
break; break;
@ -1039,7 +1047,7 @@ void CL_ParseTEnt (void)
VectorCopy (pos, ex->ent.origin); VectorCopy (pos, ex->ent.origin);
ex->type = ex_poly; ex->type = ex_poly;
ex->ent.flags = RF_FULLBRIGHT|RF_NOSHADOW; ex->ent.flags = RF_FULLBRIGHT|RF_NOSHADOW;
ex->start = cl.frame.servertime - 100f; ex->start = cl.frame.servertime - 100.0f;
ex->light = 350; ex->light = 350;
ex->lightcolor[0] = 1.0; ex->lightcolor[0] = 1.0;
ex->lightcolor[1] = 0.5; ex->lightcolor[1] = 0.5;