mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Semclip and dead monsters prediction
This commit is contained in:
parent
3e3e35d1de
commit
0beac725de
@ -1288,6 +1288,8 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h
|
|||||||
if ( !player )
|
if ( !player )
|
||||||
{
|
{
|
||||||
state->playerclass = ent->v.playerclass;
|
state->playerclass = ent->v.playerclass;
|
||||||
|
if( ent->v.deadflag == DEAD_DEAD )
|
||||||
|
state->solid = SOLID_NOT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special stuff for players only
|
// 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->usehull = ( ent->v.flags & FL_DUCKING ) ? 1 : 0;
|
||||||
state->health = ent->v.health;
|
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;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user