Added default parameter wrappers for PrecacheModel and PrecacheOther VScript functions

This commit is contained in:
Blixibon 2021-11-07 17:10:02 -06:00
parent 8652b31ed1
commit 3a297d0d16

View File

@ -72,6 +72,18 @@ function ImpulseScale( flTargetMass, flDesiredSpeed )
}
__Documentation.RegisterHelp( "ImpulseScale", "float ImpulseScale(float, float)", "Returns an impulse scale required to push an object." );
local PrecacheModel = PrecacheModel
function PrecacheModel( a, b = true )
{
return PrecacheModel( a, b )
}
local PrecacheOther = PrecacheOther
function PrecacheOther( a, b = "" )
{
PrecacheOther( a, b )
}
function __ReplaceClosures( script, scope )
{
if ( !scope )