I've created a subclass of mover and am trying to make it so that when the mover brush has sustained a certain amount of damage (in TakeDamage) it is hidden, since brushes can't be destroyed. Taking some of the code from the mover class:
.... I've done this and yet it still has not effect. after the brush has sustained enough damage, this code is execute (I've logged it)... and the SetCollision call works fine since the player can now walk through the brush.. but the brush is still there. does anyone have a solution for this?
Code:
SetCollision(false, false, false);
SetLocation(Location + vect(0,0,20000)); // temp since still in bsp
bHidden = true;
.... I've done this and yet it still has not effect. after the brush has sustained enough damage, this code is execute (I've logged it)... and the SetCollision call works fine since the player can now walk through the brush.. but the brush is still there. does anyone have a solution for this?