2019-01-19 04:50:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
=================
|
|
|
|
Player_SendEntity
|
|
|
|
=================
|
|
|
|
*/
|
2019-01-21 02:00:14 +00:00
|
|
|
float Player_SendEntity(entity ePEnt, float fChanged)
|
|
|
|
{
|
|
|
|
if (self.health <= 0 && ePEnt != self) {
|
2019-01-19 04:50:25 +00:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2019-01-21 02:00:14 +00:00
|
|
|
WriteByte(MSG_ENTITY, ENT_PLAYER);
|
|
|
|
WriteShort(MSG_ENTITY, self.modelindex);
|
|
|
|
WriteCoord(MSG_ENTITY, self.origin[0]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.origin[1]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.origin[2]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.v_angle[0]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.angles[1]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.angles[2]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.velocity[0]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.velocity[1]);
|
|
|
|
WriteCoord(MSG_ENTITY, self.velocity[2]);
|
|
|
|
WriteFloat(MSG_ENTITY, self.flags);
|
|
|
|
WriteFloat(MSG_ENTITY, self.pmove_flags);
|
|
|
|
WriteByte(MSG_ENTITY, self.weapon);
|
|
|
|
WriteByte(MSG_ENTITY, self.health);
|
|
|
|
WriteFloat(MSG_ENTITY, self.movetype);
|
|
|
|
WriteFloat(MSG_ENTITY, self.view_ofs[2]);
|
|
|
|
WriteFloat(MSG_ENTITY, self.viewzoom);
|
2019-01-19 04:50:25 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|