mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Fixed issue with EmitSound_t origin in VScript
This commit is contained in:
parent
62f4d6f872
commit
5896fb73c8
@ -584,8 +584,10 @@ BEGIN_SCRIPTDESC_ROOT_NAMED( ScriptEmitSound_t, "EmitSound_t", "Handle for acces
|
||||
DEFINE_SCRIPTFUNC( GetSpecialDSP, "Gets the sound's special DSP setting." )
|
||||
DEFINE_SCRIPTFUNC( SetSpecialDSP, "Sets the sound's special DSP setting." )
|
||||
|
||||
DEFINE_SCRIPTFUNC( HasOrigin, "Returns true if the sound has an origin override." )
|
||||
DEFINE_SCRIPTFUNC( GetOrigin, "Gets the sound's origin override." )
|
||||
DEFINE_SCRIPTFUNC( SetOrigin, "Sets the sound's origin override." )
|
||||
DEFINE_SCRIPTFUNC( ClearOrigin, "Clears the sound's origin override if it has one." )
|
||||
|
||||
DEFINE_SCRIPTFUNC( GetSoundTime, "Gets the time the sound will begin, relative to Time()." )
|
||||
DEFINE_SCRIPTFUNC( SetSoundTime, "Sets the time the sound will begin, relative to Time()." )
|
||||
|
@ -153,8 +153,10 @@ struct ScriptEmitSound_t : public EmitSound_t
|
||||
int GetSpecialDSP() { return m_nSpecialDSP; }
|
||||
void SetSpecialDSP( int nSpecialDSP ) { m_nSpecialDSP = nSpecialDSP; }
|
||||
|
||||
ScriptVariant_t GetOrigin() { return m_pOrigin ? *m_pOrigin : ScriptVariant_t(); }
|
||||
void SetOrigin( ScriptVariant_t origin ) { m_pOrigin = origin.m_pVector; }
|
||||
bool HasOrigin() { return m_pOrigin ? true : false; }
|
||||
const Vector &GetOrigin() { return m_pOrigin ? *m_pOrigin : vec3_origin; }
|
||||
void SetOrigin( Vector origin ) { m_pOrigin = &origin; }
|
||||
void ClearOrigin() { m_pOrigin = NULL; }
|
||||
|
||||
float GetSoundTime() { return m_flSoundTime; }
|
||||
void SetSoundTime( float flSoundTime ) { m_flSoundTime = flSoundTime; }
|
||||
|
Loading…
Reference in New Issue
Block a user