Use PMove_SetSize() to get accurate bbox info.
This commit is contained in:
parent
7723261567
commit
7290c631d8
|
@ -155,6 +155,7 @@ Player_DestroyWeaponModel(entity pp)
|
||||||
remove(pl.p_model);
|
remove(pl.p_model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PMove_SetSize(entity targ);
|
||||||
void
|
void
|
||||||
Player_PreDraw(base_player pl, int thirdperson)
|
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_PlayerUpdate((player)pl);
|
||||||
Animation_TimerUpdate((player)pl, clframetime);
|
Animation_TimerUpdate((player)pl, clframetime);
|
||||||
Player_HandleWeaponModel(pl, thirdperson);
|
Player_HandleWeaponModel(pl, thirdperson);
|
||||||
|
|
|
@ -72,7 +72,7 @@ monster_scientist_dead::Respawn(void)
|
||||||
solid = SOLID_CORPSE;
|
solid = SOLID_CORPSE;
|
||||||
movetype = MOVETYPE_NONE;
|
movetype = MOVETYPE_NONE;
|
||||||
SetModel(m_oldModel);
|
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;
|
takedamage = DAMAGE_YES;
|
||||||
health = 0;
|
health = 0;
|
||||||
velocity = [0,0,0];
|
velocity = [0,0,0];
|
||||||
|
|
Loading…
Reference in New Issue