mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 22:35:31 +03:00
Added default parameter wrappers for PrecacheModel and PrecacheOther VScript functions
This commit is contained in:
parent
8652b31ed1
commit
3a297d0d16
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user