Allow plugins to suppress entity outputs (fix 5515).

This commit is contained in:
Kristian Klausen
2015-12-30 17:51:57 +01:00
parent 23fafbd47d
commit 4cba1925fd
3 changed files with 48 additions and 12 deletions
+8 -2
View File
@@ -42,9 +42,15 @@
* @param caller Entity index of the caller.
* @param activator Entity index of the activator.
* @param delay Delay in seconds? before the event gets fired.
* @noreturn
* @return Anything other than Plugin_Continue will supress this event,
* returning Plugin_Continue will allow it to propagate the results
* of this output to any entity inputs.
*/
typedef EntityOutput = function void (const char[] output, int caller, int activator, float delay);
typeset EntityOutput
{
function void (const char[] output, int caller, int activator, float delay);
function Action (const char[] output, int caller, int activator, float delay);
};
/**
* Add an entity output hook on a entity classname