Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSoundDuration #937

Closed
qubka opened this issue Dec 27, 2018 · 2 comments
Closed

GetSoundDuration #937

qubka opened this issue Dec 27, 2018 · 2 comments
Labels
Valve Issue equiv: wontfix

Comments

@qubka
Copy link

qubka commented Dec 27, 2018

hello, I am developing ambient system for my mod on CS:GO and I will really appreciate the fix of the GetSoundDuration, I can even write it by myself, if devs not have time, even i can pull fix of it, if devs are not mind

@Headline
Copy link
Member

Headline commented Dec 27, 2018

We’re open-source and gladly take pull requests. Not sure if it doesn’t work because the game doesn’t support it or not.

Checkout our CONTRIBUTING.md for more info about pull requests!

@psychonic ?

@psychonic
Copy link
Member

SourceMod's implementation just calls the game's own IEngineSound::GetSoundDuration and passes the returned value as-is. Your issue is that CS:GO looks to not support that function on Linux, always returning 0. This is a game "bug", not necessarily an issue with SM.

There are some third party, game-independent extensions that can get you the same info and more.

@asherkin asherkin added the Valve Issue equiv: wontfix label Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Valve Issue equiv: wontfix
Projects
None yet
Development

No branches or pull requests

4 participants