diff --git a/rehlds/public/rehlds/rehlds_interfaces.h b/rehlds/public/rehlds/rehlds_interfaces.h index ea74dc3..e1dc430 100644 --- a/rehlds/public/rehlds/rehlds_interfaces.h +++ b/rehlds/public/rehlds/rehlds_interfaces.h @@ -68,6 +68,7 @@ public: virtual void SetConnected(bool connected) = 0; virtual uint32 GetVoiceStreams(int id) = 0; + virtual void SetLastVoiceTime(double time) = 0; virtual double GetLastVoiceTime() = 0; virtual bool GetLoopback() = 0; diff --git a/rehlds/rehlds/rehlds_interfaces_impl.cpp b/rehlds/rehlds/rehlds_interfaces_impl.cpp index dc92a5d..33e3d64 100644 --- a/rehlds/rehlds/rehlds_interfaces_impl.cpp +++ b/rehlds/rehlds/rehlds_interfaces_impl.cpp @@ -74,6 +74,10 @@ uint32 EXT_FUNC CGameClient::GetVoiceStreams(int id) { return m_pClient->m_VoiceStreams[id >> 5]; } +void EXT_FUNC CGameClient::SetLastVoiceTime(double time) { + m_pClient->m_lastvoicetime = time; +} + double EXT_FUNC CGameClient::GetLastVoiceTime() { return m_pClient->m_lastvoicetime; } diff --git a/rehlds/rehlds/rehlds_interfaces_impl.h b/rehlds/rehlds/rehlds_interfaces_impl.h index e4543a5..2713ebd 100644 --- a/rehlds/rehlds/rehlds_interfaces_impl.h +++ b/rehlds/rehlds/rehlds_interfaces_impl.h @@ -77,6 +77,7 @@ public: virtual void SetConnected(bool connected); virtual uint32 GetVoiceStreams(int id); + virtual void SetLastVoiceTime(double time); virtual double GetLastVoiceTime(); virtual bool GetLoopback();