Semclip and dead monsters prediction

This commit is contained in:
mittorn 2016-12-31 19:56:32 +02:00
parent 3e3e35d1de
commit 0beac725de

View File

@ -1288,6 +1288,8 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
if ( !player )
{
state->playerclass = ent->v.playerclass;
if( ent->v.deadflag == DEAD_DEAD )
state->solid = SOLID_NOT;
}
// Special stuff for players only
@ -1305,6 +1307,15 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
//
state->usehull = ( ent->v.flags & FL_DUCKING ) ? 1 : 0;
state->health = ent->v.health;
// semclip prediction
if( mp_semclip.value )
{
state->solid = SOLID_NOT;
if( !ent->v.velocity[0] && !ent->v.velocity[1] )
if( ent != host )
state->movetype = MOVETYPE_NONE;
}
}
return 1;