mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 07:58:05 +00:00
Detonate satchels under blocked door.
This commit is contained in:
parent
b7d1bd3235
commit
bdd3e74ebd
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user