mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-05 10:10:42 +03:00
Fixed the new PrecacheModel/PrecacheOther VScript functions missing serverside parameters
This commit is contained in:
parent
c8f48407c1
commit
8652b31ed1
@ -775,6 +775,7 @@ static void AddPhysVelocity( HSCRIPT hPhys, const Vector& vecVelocity, const Vec
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
#ifdef CLIENT_DLL
|
||||||
static int ScriptPrecacheModel( const char *modelname )
|
static int ScriptPrecacheModel( const char *modelname )
|
||||||
{
|
{
|
||||||
return CBaseEntity::PrecacheModel( modelname );
|
return CBaseEntity::PrecacheModel( modelname );
|
||||||
@ -784,8 +785,17 @@ static void ScriptPrecacheOther( const char *classname )
|
|||||||
{
|
{
|
||||||
UTIL_PrecacheOther( 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?
|
// TODO: Move this?
|
||||||
static void ScriptInsertSound( int iType, const Vector &vecOrigin, int iVolume, float flDuration, HSCRIPT hOwner, int soundChannelIndex, HSCRIPT hSoundTarget )
|
static void ScriptInsertSound( int iType, const Vector &vecOrigin, int iVolume, float flDuration, HSCRIPT hOwner, int soundChannelIndex, HSCRIPT hSoundTarget )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user