Ejemplo n.º 1
0
void ReplayMaster::init() {
    init_globals();

    sys.audio->set_global_volume(8);  // Max volume.

    sys_init();
    Label::init();
    Messages::init();
    InstrumentInit();
    SpriteHandlingInit();
    PluginInit();
    SpaceObjectHandlingInit();  // MUST be after PluginInit()
    InitMotion();
    Admiral::init();
    Vectors::init();
}
Ejemplo n.º 2
0
// Metamod attaching plugin to the server.
//  now				(given) current phase, i.e. during map, during change level, or at startup
//  pFunctionTable	(requested) table of function tables this plugin catches
//  pMGlobals		(given) global vars from metamod
//  pGamedllFuncs	(given) copy of function tables from game dll
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */, META_FUNCTIONS *pFunctionTable,
				meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
{
	if(!pMGlobals)
	{
		LOG_MESSAGE(PLID, "Meta_Attach called with null pMGlobals");
		return false;
	}
	gpMetaGlobals = pMGlobals;

	if(!pFunctionTable)
	{
		LOG_MESSAGE(PLID, "Meta_Attach called with null pFunctionTable");
		return false;
	}
	memcpy(pFunctionTable, &gMetaFunctionTable, sizeof(META_FUNCTIONS));
	gpGamedllFuncs = pGamedllFuncs;

	PluginInit();

	return true;
}
Ejemplo n.º 3
0
EXPORT void CALL PluginLoaded(void)
{
    PluginInit();
    WriteTrace(TraceAudioInterface, TraceDebug, "Called");
}