Page 1 of 1
[QUESTION] Adding a hitsound like in Quake 3 Arena/TF2?
Posted: Fri Aug 28, 2015 11:16 am
by Crystalwarrior
Alright, so I've done a little digging and found this function in the source code:
https://github.com/yvt/openspades/blob/ ... te.cpp#L70
This function sends the client neccesary data to perform various UI goodness regarding sounds and hit indicator.
Question is, how would I play a hitsound on a succesful enemy hit? Is it even possible to "use" this function without recompiling OpenSpades?
Re: [QUESTION] Adding a hitsound like in Quake 3 Arena/TF2?
Posted: Sun Aug 30, 2015 3:24 pm
by FoobyDude
Crystalwarrior wrote:Alright, so I've done a little digging and found this function in the source code:
https://github.com/yvt/openspades/blob/ ... te.cpp#L70
This function sends the client neccesary data to perform various UI goodness regarding sounds and hit indicator.
Question is, how would I play a hitsound on a succesful enemy hit? Is it even possible to "use" this function without recompiling OpenSpades?
I'm no coding genius, but I bet you could have it act as an add-on. If the hit "marker" shows up, it plays a sound from the add-on.
You'd just have to figure out how they display the hit marker upon hits and attach your code in that area, It would be relatively a copy paste job with some adjustments, along side a .png file saying you hit; a sound playing letting your ears know too.
(Don't take my word for it, I don't know how this stuff works entirely)
It'd be funny if it could randomize/cycle through different hit sounds.
Re: [QUESTION] Adding a hitsound like in Quake 3 Arena/TF2?
Posted: Sun Nov 08, 2015 9:51 am
by Chameleon
You have to rebuild the full source code.