2019-01-16 20:18:28 +00:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
|
|
|
|
*
|
|
|
|
* See the file LICENSE attached with the sources for usage details.
|
|
|
|
*
|
|
|
|
****/
|
2017-03-04 20:08:59 +00:00
|
|
|
|
2017-11-16 22:53:02 +00:00
|
|
|
.float pmove_frame;
|
|
|
|
|
|
|
|
.vector netorigin;
|
|
|
|
.vector netangles;
|
|
|
|
.vector netvelocity;
|
2019-01-03 01:26:39 +00:00
|
|
|
.float netflags;
|
2017-11-16 22:53:02 +00:00
|
|
|
.float netpmove_flags;
|
|
|
|
|
2019-01-29 02:40:14 +00:00
|
|
|
void Player_ReadEntity(float flIsNew)
|
|
|
|
{
|
|
|
|
player pl = (player)self;
|
|
|
|
|
|
|
|
if ( flIsNew == TRUE ) {
|
|
|
|
spawnfunc_player();
|
|
|
|
|
|
|
|
pl.classname = "player";
|
|
|
|
pl.solid = SOLID_SLIDEBOX;
|
|
|
|
pl.drawmask = MASK_ENGINE;
|
|
|
|
pl.customphysics = Empty;
|
|
|
|
setsize( pl, VEC_HULL_MIN, VEC_HULL_MAX );
|
|
|
|
}
|
|
|
|
|
|
|
|
pl.modelindex = readshort();
|
|
|
|
pl.origin[0] = readcoord();
|
|
|
|
pl.origin[1] = readcoord();
|
|
|
|
pl.origin[2] = readcoord();
|
2019-03-13 19:46:07 +00:00
|
|
|
pl.pitch = readcoord();
|
2019-01-29 02:40:14 +00:00
|
|
|
pl.angles[1] = readcoord();
|
|
|
|
pl.angles[2] = readcoord();
|
|
|
|
pl.velocity[0] = readcoord();
|
|
|
|
pl.velocity[1] = readcoord();
|
|
|
|
pl.velocity[2] = readcoord();
|
|
|
|
pl.flags = readfloat();
|
|
|
|
pl.pmove_flags = readfloat();
|
|
|
|
pl.weapon = readbyte();
|
|
|
|
pl.health = readbyte();
|
|
|
|
pl.movetype = readfloat();
|
|
|
|
pl.view_ofs[2] = readfloat();
|
|
|
|
pl.viewzoom = readfloat();
|
|
|
|
setorigin( pl, pl.origin );
|
|
|
|
}
|