mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Revert scale support to fix map loading
This commit is contained in:
parent
f108dbe293
commit
c4b0f01ccc
7 changed files with 0 additions and 36 deletions
|
@ -518,11 +518,6 @@ if (bits&(1<<i))
|
|||
else
|
||||
ent->msg_angles[0][2] = ent->baseline.angles[2];
|
||||
|
||||
if (bits & U_SCALE)
|
||||
ent->scale = MSG_ReadFloat();
|
||||
else
|
||||
ent->scale = 1;
|
||||
|
||||
// Tomaz - QC Alpha Scale Glow Begin
|
||||
if (bits & U_RENDERAMT)
|
||||
ent->renderamt = MSG_ReadFloat();
|
||||
|
@ -576,7 +571,6 @@ void CL_ParseBaseline (entity_t *ent)
|
|||
ent->baseline.frame = MSG_ReadByte ();
|
||||
ent->baseline.colormap = MSG_ReadByte();
|
||||
ent->baseline.skin = MSG_ReadByte();
|
||||
ent->baseline.scale = MSG_ReadByte();
|
||||
for (i=0 ; i<3 ; i++)
|
||||
{
|
||||
ent->baseline.origin[i] = MSG_ReadCoord ();
|
||||
|
@ -945,7 +939,6 @@ void CL_ParseStatic (void)
|
|||
ent->colormap = vid.colormap;
|
||||
ent->skinnum = ent->baseline.skin;
|
||||
ent->effects = ent->baseline.effects;
|
||||
ent->scale = ent->baseline.scale;
|
||||
|
||||
VectorCopy (ent->baseline.origin, ent->origin);
|
||||
VectorCopy (ent->baseline.angles, ent->angles);
|
||||
|
|
|
@ -163,9 +163,6 @@ void R_RotateForEntity (entity_t *e)
|
|||
glRotatef (e->angles[1], 0, 0, 1);
|
||||
glRotatef (-e->angles[0], 0, 1, 0);
|
||||
glRotatef (e->angles[2], 1, 0, 0);
|
||||
|
||||
if (e != &cl.viewent && e != &cl.viewent2)
|
||||
glScalef (e->scale, e->scale, e->scale);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -183,7 +183,6 @@ typedef struct
|
|||
float currentmag2;
|
||||
float maxspeed;
|
||||
float facingenemy;
|
||||
float scale;
|
||||
} entvars_t;
|
||||
|
||||
#define PROGHEADER_CRC 5927
|
||||
|
|
|
@ -51,10 +51,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#define U_FRAMETIME (1<<22) // another byte to follow
|
||||
// Tomaz - QC Alpha Scale Glow Control End
|
||||
|
||||
// motolegacy -- scale shit
|
||||
#define U_SCALE (1<<23)
|
||||
// motolegacy -- end scale
|
||||
|
||||
#define SU_VIEWHEIGHT (1<<0)
|
||||
#define SU_IDEALPITCH (1<<1)
|
||||
#define SU_PUNCH1 (1<<2)
|
||||
|
|
|
@ -298,7 +298,6 @@ typedef struct
|
|||
int colormap;
|
||||
int skin;
|
||||
int effects;
|
||||
unsigned short scale;
|
||||
// dr_mabuse1981: HalfLife rendermodes fixed START
|
||||
unsigned short renderamt;
|
||||
unsigned short rendermode;
|
||||
|
|
|
@ -63,10 +63,6 @@ typedef struct entity_s
|
|||
float rendercolor[3];
|
||||
//Crow_bar
|
||||
|
||||
// motolegacy -- scale shit from FTE
|
||||
float scale; /* Multiplier that resizes the entity. 1 is normal sized, 2 is double sized. scale 0 is remapped to 1. In SSQC, this is limited to 1/16th precision, with a maximum just shy of 16.*/
|
||||
// motolegacy -- end scale
|
||||
|
||||
struct model_s *model; // NULL = no model
|
||||
struct efrag_s *efrag; // linked list of efrags
|
||||
int frame;
|
||||
|
|
|
@ -437,7 +437,6 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg)
|
|||
eval_t *val;
|
||||
float renderamt = 0;
|
||||
float rendermode = 0;
|
||||
float scale = 1;
|
||||
|
||||
float rendercolor[3];
|
||||
memset(rendercolor, 0, sizeof(rendercolor));
|
||||
|
@ -515,16 +514,6 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg)
|
|||
if (ent->baseline.modelindex != ent->v.modelindex)
|
||||
bits |= U_MODEL;
|
||||
|
||||
if (ent->baseline.scale != ent->v.scale) {
|
||||
if (ent->v.scale == 0)
|
||||
ent->v.scale = 1;
|
||||
|
||||
if (ent->v.scale > 16)
|
||||
ent->v.scale = 16;
|
||||
|
||||
bits |= U_SCALE;
|
||||
}
|
||||
|
||||
// Tomaz - QC Alpha Scale Glow Begin
|
||||
|
||||
{
|
||||
|
@ -620,8 +609,6 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg)
|
|||
MSG_WriteCoord (msg, ent->v.origin[2]);
|
||||
if (bits & U_ANGLE3)
|
||||
MSG_WriteAngle(msg, ent->v.angles[2]);
|
||||
if (bits & U_SCALE)
|
||||
MSG_WriteFloat(msg, ent->v.scale);
|
||||
// Tomaz - QC Alpha Scale Glow Begin
|
||||
if (bits & U_RENDERAMT)
|
||||
MSG_WriteFloat(msg, renderamt);
|
||||
|
@ -1043,13 +1030,11 @@ void SV_CreateBaseline (void)
|
|||
if (entnum > 0 && entnum <= svs.maxclients)
|
||||
{
|
||||
svent->baseline.colormap = entnum;
|
||||
svent->baseline.scale = 1;
|
||||
svent->baseline.modelindex = SV_ModelIndex("models/player.mdl");
|
||||
}
|
||||
else
|
||||
{
|
||||
svent->baseline.colormap = 0;
|
||||
svent->baseline.scale = 1;
|
||||
svent->baseline.modelindex =
|
||||
SV_ModelIndex(pr_strings + svent->v.model);
|
||||
}
|
||||
|
@ -1064,7 +1049,6 @@ void SV_CreateBaseline (void)
|
|||
MSG_WriteByte (&sv.signon, svent->baseline.frame);
|
||||
MSG_WriteByte (&sv.signon, svent->baseline.colormap);
|
||||
MSG_WriteByte (&sv.signon, svent->baseline.skin);
|
||||
MSG_WriteByte (&sv.signon, svent->baseline.scale);
|
||||
for (i=0 ; i<3 ; i++)
|
||||
{
|
||||
MSG_WriteCoord(&sv.signon, svent->baseline.origin[i]);
|
||||
|
|
Loading…
Reference in a new issue