Browse Source

Make CoopTouch'ed door not activate targets

hlzbot-dirty
mittorn 8 years ago
parent
commit
9812574734
  1. 8
      dlls/doors.cpp

8
dlls/doors.cpp

@ -62,6 +62,11 @@ public: @@ -62,6 +62,11 @@ public:
return;
if( !(pOther->pev->button & IN_USE) )
return;
if( pev->target )
{
pev->target = 0;
m_savedtarget = pev->target;
}
DoorActivate();
}
}
@ -85,6 +90,7 @@ public: @@ -85,6 +90,7 @@ public:
BYTE m_bUnlockedSound;
BYTE m_bUnlockedSentence;
bool m_fActivated;
string_t m_savedtarget;
};
TYPEDESCRIPTION CBaseDoor::m_SaveData[] =
@ -588,6 +594,8 @@ void CBaseDoor::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE use @@ -588,6 +594,8 @@ void CBaseDoor::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE use
if( pev->size.x < 50 || pev->size.y < 50 )
m_fActivated = true;
}
if( !pev->target && m_savedtarget )
pev->target = m_savedtarget, m_savedtarget = 0;
DoorActivate();
}
}

Loading…
Cancel
Save