func_pushable: Mark collision-helper as non-solid upon breaking.
This commit is contained in:
parent
d4fe258d62
commit
b8de87d45c
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ func_pushable::customphysics(void)
|
|||
input_angles = [0,0,0];
|
||||
input_timelength = frametime;
|
||||
|
||||
/* we're destroyed, most likely */
|
||||
if (m_eCollBox)
|
||||
if (modelindex == 0) {
|
||||
m_eCollBox.solid = SOLID_NOT;
|
||||
} else {
|
||||
m_eCollBox.solid = SOLID_BBOX;
|
||||
}
|
||||
|
||||
/* when we pull the box, it'll follow us whereever we go, just not too fast so it doesn't clip into us! */
|
||||
if (!m_pPuller.button5) {
|
||||
m_pPuller = world;
|
||||
|
|
Loading…
Reference in a new issue