|
|
@ -22,6 +22,7 @@ |
|
|
|
#include "util.h" |
|
|
|
#include "util.h" |
|
|
|
#include "cbase.h" |
|
|
|
#include "cbase.h" |
|
|
|
#include "doors.h" |
|
|
|
#include "doors.h" |
|
|
|
|
|
|
|
#include "weapons.h" |
|
|
|
|
|
|
|
|
|
|
|
extern void SetMovedir( entvars_t *ev ); |
|
|
|
extern void SetMovedir( entvars_t *ev ); |
|
|
|
|
|
|
|
|
|
|
@ -746,6 +747,10 @@ void CBaseDoor::Blocked( CBaseEntity *pOther ) |
|
|
|
if( pev->dmg ) |
|
|
|
if( pev->dmg ) |
|
|
|
pOther->TakeDamage( pev, pev, pev->dmg, DMG_CRUSH ); |
|
|
|
pOther->TakeDamage( pev, pev, pev->dmg, DMG_CRUSH ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Detonate satchels
|
|
|
|
|
|
|
|
if( !strcmp( "monster_satchel", STRING( pOther->pev->classname ) ) ) |
|
|
|
|
|
|
|
( (CSatchel*)pOther )->Use( this, this, USE_ON, 0 ); |
|
|
|
|
|
|
|
|
|
|
|
// if a door has a negative wait, it would never come back if blocked,
|
|
|
|
// if a door has a negative wait, it would never come back if blocked,
|
|
|
|
// so let it just squash the object to death real fast
|
|
|
|
// so let it just squash the object to death real fast
|
|
|
|
if( m_flWait >= 0 ) |
|
|
|
if( m_flWait >= 0 ) |
|
|
|