Use PMove_SetSize() to get accurate bbox info.
This commit is contained in:
parent
7723261567
commit
7290c631d8
2 changed files with 3 additions and 1 deletions
|
@ -155,6 +155,7 @@ Player_DestroyWeaponModel(entity pp)
|
|||
remove(pl.p_model);
|
||||
}
|
||||
|
||||
void PMove_SetSize(entity targ);
|
||||
void
|
||||
Player_PreDraw(base_player pl, int thirdperson)
|
||||
{
|
||||
|
@ -183,6 +184,7 @@ Player_PreDraw(base_player pl, int thirdperson)
|
|||
}
|
||||
}
|
||||
|
||||
PMove_SetSize(pl);
|
||||
Animation_PlayerUpdate((player)pl);
|
||||
Animation_TimerUpdate((player)pl, clframetime);
|
||||
Player_HandleWeaponModel(pl, thirdperson);
|
||||
|
|
|
@ -72,7 +72,7 @@ monster_scientist_dead::Respawn(void)
|
|||
solid = SOLID_CORPSE;
|
||||
movetype = MOVETYPE_NONE;
|
||||
SetModel(m_oldModel);
|
||||
setsize(this, VEC_HULL_MIN + [0,0,36], VEC_HULL_MAX + [0,0,36]);
|
||||
setsize(this, VEC_HULL_MIN + [0,0,36], VEC_HULL_MIN + [0,0,36]);
|
||||
takedamage = DAMAGE_YES;
|
||||
health = 0;
|
||||
velocity = [0,0,0];
|
||||
|
|
Loading…
Reference in a new issue