Skip to content

Commit

Permalink
Fix #34 actually this time
Browse files Browse the repository at this point in the history
  • Loading branch information
YoYo178 committed Jun 30, 2024
1 parent 98adbfc commit 70c2a6e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions mp/src/game/server/cbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,13 @@ void CBaseEntityOutput::FireOutput(variant_t Value, CBaseEntity *pActivator, CBa
//
// Post the event with the default parameter.
//
g_EventQueue.AddEvent( STRING(ev->m_iTarget), STRING(ev->m_iTargetInput), Value, ev->m_flDelay + fDelay, pActivator, pCaller, ev->m_iIDStamp );
if ( pCaller && ( pCaller->Classify() == CLASS_TRIGGER || pCaller->Classify() == CLASS_TRIGGERSCRIPT || pCaller->Classify() == CLASS_TRIGGER_CLIP )
&& pCaller->GetName() == STRING( ev->m_iTarget ) )
{
g_EventQueue.AddEvent( pCaller, STRING(ev->m_iTargetInput), Value, ev->m_flDelay + fDelay, pActivator, pCaller, ev->m_iIDStamp );
}
else
g_EventQueue.AddEvent( STRING(ev->m_iTarget), STRING(ev->m_iTargetInput), Value, ev->m_flDelay + fDelay, pActivator, pCaller, ev->m_iIDStamp );
}
else
{
Expand All @@ -294,7 +300,14 @@ void CBaseEntityOutput::FireOutput(variant_t Value, CBaseEntity *pActivator, CBa
//
variant_t ValueOverride;
ValueOverride.SetString( ev->m_iParameter );
g_EventQueue.AddEvent( STRING(ev->m_iTarget), STRING(ev->m_iTargetInput), ValueOverride, ev->m_flDelay, pActivator, pCaller, ev->m_iIDStamp );

if ( pCaller && ( pCaller->Classify() == CLASS_TRIGGER || pCaller->Classify() == CLASS_TRIGGERSCRIPT || pCaller->Classify() == CLASS_TRIGGER_CLIP )
&& pCaller->GetName() == STRING( ev->m_iTarget ) )
{
g_EventQueue.AddEvent( pCaller, STRING(ev->m_iTargetInput), ValueOverride, ev->m_flDelay, pActivator, pCaller, ev->m_iIDStamp );
}
else
g_EventQueue.AddEvent( STRING(ev->m_iTarget), STRING(ev->m_iTargetInput), ValueOverride, ev->m_flDelay, pActivator, pCaller, ev->m_iIDStamp );
}

if ( ev->m_flDelay )
Expand Down

0 comments on commit 70c2a6e

Please sign in to comment.