2015-04-18 01:23:26 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
*
|
2015-04-18 02:26:27 +00:00
|
|
|
* Handles a server-side request for synchronization ALL events on JIP to a client.
|
2015-04-18 01:23:26 +00:00
|
|
|
*
|
|
|
|
* Argument:
|
2015-04-18 02:26:27 +00:00
|
|
|
* 0: client (object)
|
2015-04-18 01:23:26 +00:00
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Boolean of success
|
|
|
|
*/
|
2015-04-18 02:26:27 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
2015-04-18 01:23:26 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
PARAMS_1(_client);
|
|
|
|
|
|
|
|
{
|
|
|
|
private["_eventName", "_eventEntry", "_eventLog"];
|
|
|
|
_eventName = _x;
|
|
|
|
_eventEntry = HASH_GET(GVAR(syncedEvents),_eventName);
|
|
|
|
_eventLog = _eventEntry select 1;
|
|
|
|
|
|
|
|
["SEH_s", _client, [_eventName, _eventLog] ] call FUNC(targetEvent);
|
|
|
|
} forEach (GVAR(syncedEvents) select 0);
|
|
|
|
|
|
|
|
true
|