diff --git a/src/game/server/entities/NPCs/aliens/nihilanth.cpp b/src/game/server/entities/NPCs/aliens/nihilanth.cpp index 6ece711f3..c4e540b5e 100644 --- a/src/game/server/entities/NPCs/aliens/nihilanth.cpp +++ b/src/game/server/entities/NPCs/aliens/nihilanth.cpp @@ -1653,7 +1653,7 @@ void CNihilanthHVR::TeleportTouch(CBaseEntity* pOther) { CBaseEntity* pEnemy = m_hEnemy; - if (pOther == pEnemy) + if( auto player = ToBasePlayer( pOther ); pOther != nullptr ) { if (m_hTargetEnt != nullptr) m_hTargetEnt->Use(pEnemy, pEnemy, USE_ON, 1.0); @@ -1661,6 +1661,11 @@ void CNihilanthHVR::TeleportTouch(CBaseEntity* pOther) if (m_hTouch != nullptr && pEnemy != nullptr) m_hTouch->Touch(pEnemy); } + else if( pOther != nullptr && !pOther->ClassNameIs( "worldspawn" ) && !pOther->IsBSPModel() ) + { + UTIL_Remove( pOther ); + return; + } else { m_pNihilanth->MakeFriend(pev->origin);