From 3a297d0d164648d8fb0ff18f508c0e3d8b924e2a Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 7 Nov 2021 17:10:02 -0600 Subject: [PATCH] Added default parameter wrappers for PrecacheModel and PrecacheOther VScript functions --- sp/src/game/server/vscript_server.nut | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sp/src/game/server/vscript_server.nut b/sp/src/game/server/vscript_server.nut index 1846cfdd..0a2d75d7 100644 --- a/sp/src/game/server/vscript_server.nut +++ b/sp/src/game/server/vscript_server.nut @@ -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 )