Removed CancelEventsByInput at the suggestion of its contributor

This commit is contained in:
Blixibon 2021-09-19 21:04:31 -05:00
parent 5896fb73c8
commit 97928611aa
2 changed files with 6 additions and 6 deletions

View File

@ -1375,10 +1375,10 @@ float CBaseEntity::GetMaxOutputDelay( const char *pszOutput )
return 0; return 0;
} }
void CBaseEntity::CancelEventsByInput( const char *szInput ) //void CBaseEntity::CancelEventsByInput( const char *szInput )
{ //{
g_EventQueue.CancelEventsByInput( this, szInput ); // g_EventQueue.CancelEventsByInput( this, szInput );
} //}
#endif // MAPBASE_VSCRIPT #endif // MAPBASE_VSCRIPT
CBaseEntityOutput *CBaseEntity::FindNamedOutput( const char *pszOutput ) CBaseEntityOutput *CBaseEntity::FindNamedOutput( const char *pszOutput )
@ -2378,7 +2378,7 @@ BEGIN_ENT_SCRIPTDESC_ROOT( CBaseEntity, "Root class of all server-side entities"
DEFINE_SCRIPTFUNC_NAMED( ScriptAcceptInput, "AcceptInput", "" ) DEFINE_SCRIPTFUNC_NAMED( ScriptAcceptInput, "AcceptInput", "" )
DEFINE_SCRIPTFUNC_NAMED( ScriptFireOutput, "FireOutput", "Fire an entity output" ) DEFINE_SCRIPTFUNC_NAMED( ScriptFireOutput, "FireOutput", "Fire an entity output" )
DEFINE_SCRIPTFUNC( GetMaxOutputDelay, "Get the longest delay for all events attached to an output" ) DEFINE_SCRIPTFUNC( GetMaxOutputDelay, "Get the longest delay for all events attached to an output" )
DEFINE_SCRIPTFUNC( CancelEventsByInput, "Cancel all I/O events for this entity, match input" ) //DEFINE_SCRIPTFUNC( CancelEventsByInput, "Cancel all I/O events for this entity, match input" ) // Commented out due to unpredictability and unknown risks
DEFINE_SCRIPTFUNC_NAMED( ScriptAddOutput, "AddOutput", "Add an output" ) DEFINE_SCRIPTFUNC_NAMED( ScriptAddOutput, "AddOutput", "Add an output" )
DEFINE_SCRIPTFUNC_NAMED( ScriptGetKeyValue, "GetKeyValue", "Get a keyvalue" ) DEFINE_SCRIPTFUNC_NAMED( ScriptGetKeyValue, "GetKeyValue", "Get a keyvalue" )

View File

@ -610,7 +610,7 @@ public:
#ifdef MAPBASE_VSCRIPT #ifdef MAPBASE_VSCRIPT
void ScriptFireOutput( const char *pszOutput, HSCRIPT hActivator, HSCRIPT hCaller, const char *szValue, float flDelay ); void ScriptFireOutput( const char *pszOutput, HSCRIPT hActivator, HSCRIPT hCaller, const char *szValue, float flDelay );
float GetMaxOutputDelay( const char *pszOutput ); float GetMaxOutputDelay( const char *pszOutput );
void CancelEventsByInput( const char *szInput ); //void CancelEventsByInput( const char *szInput );
#endif #endif