Browse Source

Detonate satchels under blocked door.

halloween
Night Owl 8 years ago
parent
commit
bdd3e74ebd
  1. 5
      dlls/doors.cpp

5
dlls/doors.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include "util.h"
#include "cbase.h"
#include "doors.h"
#include "weapons.h"
extern void SetMovedir( entvars_t *ev );
@ -746,6 +747,10 @@ void CBaseDoor::Blocked( CBaseEntity *pOther ) @@ -746,6 +747,10 @@ void CBaseDoor::Blocked( CBaseEntity *pOther )
if( pev->dmg )
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,
// so let it just squash the object to death real fast
if( m_flWait >= 0 )

Loading…
Cancel
Save