Add additional TraceRay natives (#885)
* More TR natives * Fix small typo * Fix another typo * Fix TR_AllSolid description * Change Disp to Displacement * Reorder params in TR_GetSurfaceName * Fix TR_GetSurfaceName * Another fix for TR_GetSurfaceName -_- * Change if block to switch * Make handle first param in TR_GetSurfaceName * Reorder TR_GetStartPosition params * Make TranslatePartitionFlags static * Change tabs used for formatting to spaces * Change inline comment style to be consistent with rest of file
This commit is contained in:
@@ -61,6 +61,7 @@ SH_DECL_HOOK1_void_vafmt(IVEngineServer, ClientCommand, SH_NOATTRIB, 0, edict_t
|
||||
SDKTools g_SdkTools; /**< Global singleton for extension's main interface */
|
||||
IServerGameEnts *gameents = NULL;
|
||||
IEngineTrace *enginetrace = NULL;
|
||||
ISpatialPartition *partition = NULL;
|
||||
IEngineSound *engsound = NULL;
|
||||
INetworkStringTableContainer *netstringtables = NULL;
|
||||
IServerPluginHelpers *pluginhelpers = NULL;
|
||||
@@ -269,6 +270,7 @@ bool SDKTools::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool
|
||||
GET_V_IFACE_ANY(GetServerFactory, gameents, IServerGameEnts, INTERFACEVERSION_SERVERGAMEENTS);
|
||||
GET_V_IFACE_ANY(GetEngineFactory, engsound, IEngineSound, IENGINESOUND_SERVER_INTERFACE_VERSION);
|
||||
GET_V_IFACE_ANY(GetEngineFactory, enginetrace, IEngineTrace, INTERFACEVERSION_ENGINETRACE_SERVER);
|
||||
GET_V_IFACE_ANY(GetEngineFactory, partition, ISpatialPartition, INTERFACEVERSION_SPATIALPARTITION);
|
||||
GET_V_IFACE_ANY(GetEngineFactory, netstringtables, INetworkStringTableContainer, INTERFACENAME_NETWORKSTRINGTABLESERVER);
|
||||
GET_V_IFACE_ANY(GetEngineFactory, pluginhelpers, IServerPluginHelpers, INTERFACEVERSION_ISERVERPLUGINHELPERS);
|
||||
GET_V_IFACE_ANY(GetServerFactory, serverClients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS);
|
||||
|
||||
Reference in New Issue
Block a user