mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Integrating vscript interface code (based on Alien Swarm)
This commit is contained in:
@@ -1217,6 +1217,19 @@ void CBaseEntity::EmitSound( const char *soundname, HSOUNDSCRIPTHANDLE& handle,
|
||||
EmitSound( filter, entindex(), params, handle );
|
||||
}
|
||||
|
||||
#if !defined ( CLIENT_DLL )
|
||||
void CBaseEntity::ScriptEmitSound( const char *soundname )
|
||||
{
|
||||
EmitSound( soundname );
|
||||
}
|
||||
|
||||
float CBaseEntity::ScriptSoundDuration( const char *soundname, const char *actormodel )
|
||||
{
|
||||
float duration = CBaseEntity::GetSoundDuration( soundname, actormodel );
|
||||
return duration;
|
||||
}
|
||||
#endif // !CLIENT
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
// Input : filter -
|
||||
@@ -1486,6 +1499,14 @@ HSOUNDSCRIPTHANDLE CBaseEntity::PrecacheScriptSound( const char *soundname )
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined ( CLIENT_DLL )
|
||||
// Same as server version of above, but signiture changed so it can be deduced by the macros
|
||||
void CBaseEntity::VScriptPrecacheScriptSound(const char* soundname)
|
||||
{
|
||||
g_SoundEmitterSystem.PrecacheScriptSound(soundname);
|
||||
}
|
||||
#endif // !CLIENT_DLL
|
||||
|
||||
void CBaseEntity::PrefetchScriptSound( const char *soundname )
|
||||
{
|
||||
g_SoundEmitterSystem.PrefetchScriptSound( soundname );
|
||||
|
||||
Reference in New Issue
Block a user