Fixed the new PrecacheModel/PrecacheOther VScript functions missing serverside parameters

This commit is contained in:
Blixibon 2021-11-07 14:02:13 -06:00
parent c8f48407c1
commit 8652b31ed1

View File

@ -775,6 +775,7 @@ static void AddPhysVelocity( HSCRIPT hPhys, const Vector& vecVelocity, const Vec
//=============================================================================
//=============================================================================
#ifdef CLIENT_DLL
static int ScriptPrecacheModel( const char *modelname )
{
return CBaseEntity::PrecacheModel( modelname );
@ -784,8 +785,17 @@ static void ScriptPrecacheOther( const char *classname )
{
UTIL_PrecacheOther( classname );
}
#else
static int ScriptPrecacheModel( const char *modelname, bool bPreload )
{
return CBaseEntity::PrecacheModel( modelname, bPreload );
}
static void ScriptPrecacheOther( const char *classname, const char *modelName )
{
UTIL_PrecacheOther( classname, modelName );
}
#ifndef CLIENT_DLL
// TODO: Move this?
static void ScriptInsertSound( int iType, const Vector &vecOrigin, int iVolume, float flDuration, HSCRIPT hOwner, int soundChannelIndex, HSCRIPT hSoundTarget )
{