mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Integrating vscript interface code (based on Alien Swarm)
This commit is contained in:
@@ -396,6 +396,28 @@ void CBaseEntityOutput::AddEventAction( CEventAction *pEventAction )
|
||||
m_ActionList = pEventAction;
|
||||
}
|
||||
|
||||
void CBaseEntityOutput::RemoveEventAction( CEventAction *pEventAction )
|
||||
{
|
||||
CEventAction *pAction = GetActionList();
|
||||
CEventAction *pPrevAction = NULL;
|
||||
while ( pAction )
|
||||
{
|
||||
if ( pAction == pEventAction )
|
||||
{
|
||||
if ( !pPrevAction )
|
||||
{
|
||||
m_ActionList = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
pPrevAction->m_pNext = pAction->m_pNext;
|
||||
}
|
||||
return;
|
||||
}
|
||||
pAction = pAction->m_pNext;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// save data description for the event queue
|
||||
BEGIN_SIMPLE_DATADESC( CBaseEntityOutput )
|
||||
|
||||
Reference in New Issue
Block a user