Skip to content

Commit

Permalink
Added default parameter wrappers for PrecacheModel and PrecacheOther …
Browse files Browse the repository at this point in the history
…VScript functions
  • Loading branch information
Blixibon committed Nov 7, 2021
1 parent 8652b31 commit 3a297d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sp/src/game/server/vscript_server.nut
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 3a297d0

Please sign in to comment.