You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix TraceLineTable function degrading performance over time
issue is in the built-in g_pScriptVM->GetValue when it tries to get a value of a vector from a table. Here we make a wrapper to the TraceLineTable function to extract the vectors in squirrel instead
ScriptRegisterFunction( g_pScriptVM, SendToServerConsole, "Send a string to the server console as a command" );
1737
1717
ScriptRegisterFunction( g_pScriptVM, GetMapName, "Get the name of the map.");
1738
1718
ScriptRegisterFunctionNamed( g_pScriptVM, ScriptTraceLine, "TraceLine", "given 2 points & ent to ignore, return fraction along line that hits world or models" );
1739
-
ScriptRegisterFunctionNamed( g_pScriptVM, ScriptTraceLineParams, "TraceLineParams", "given 2 points, ent to ignore, mask and collision group, return fraction along line that hits world or models" );
1740
-
ScriptRegisterFunctionNamed( g_pScriptVM, ScriptTraceLineTable, "TraceLineTable", "Uses a configuration table to do a raytrace, puts return information into the table for return usage." );
1719
+
ScriptRegisterFunction( g_pScriptVM, ScriptTraceLineTable, "Uses a configuration table to do a raytrace, puts return information into the table for return usage." );
1741
1720
1742
1721
ScriptRegisterFunction( g_pScriptVM, Time, "Get the current server time" );
1743
1722
ScriptRegisterFunction( g_pScriptVM, FrameTime, "Get the time spent on the server in the last frame" );
0 commit comments