Minor VScript VPC fixes + misc. adjustments

This commit is contained in:
Blixibon
2020-05-31 08:57:19 -05:00
parent c88da172d7
commit 4225e9d570
4 changed files with 5 additions and 3 deletions

View File

@@ -50,7 +50,6 @@ public:
}
else
{
DevMsg( "VScript NetPropManager: Prop name is \"%s\"\n", pProp->GetName() );
if (FStrEq( pProp->GetName(), pszPropName ))
return pProp;
}
@@ -647,6 +646,8 @@ void RegisterSharedScriptFunctions()
ScriptRegisterFunction( g_pScriptVM, RandomFloat, "Generate a random floating point number within a range, inclusive." );
ScriptRegisterFunction( g_pScriptVM, RandomInt, "Generate a random integer within a range, inclusive." );
ScriptRegisterFunction( g_pScriptVM, AngleDiff, "Returns the number of degrees difference between two yaw angles." );
#ifndef CLIENT_DLL
ScriptRegisterFunctionNamed( g_pScriptVM, NDebugOverlay::BoxDirection, "DebugDrawBoxDirection", "Draw a debug forward box" );
ScriptRegisterFunctionNamed( g_pScriptVM, NDebugOverlay::Text, "DebugDrawText", "Draw a debug overlay text" );