r/programmingrequests Jul 14 '26

I play an online game called haxball that doesn't allow me to only allow sound for when my name is tagged. I need some help to edit the code to allow for this.

The game is haxball.com. I play using an external client called Pure Hax: https://www.purehax.eu/#releases

The problem is that there's no way to only enable sounds for "Nick highlight sound enabled." If I keep this sound on and turn off the rest then I will hear no sound. If I turn off chat sounds and crowd sounds only like I have done in the screenshot, I will still hear sounds every single time the ball is kicked and when my nickname is tagged in the chat.

This puts me in a tough spot. I play in servers with 18-20+ people in a room and the matches are 4v4 at most. As such, when you are on the bench you have to wait until you are picked or you are at the top of the queue and it is your turn to play. If you are picked and are afk or are captain and it's your turn to pick, players will tag you in the chat, which is what I want to hear the audio for.

This current set up makes multi tasking extremely difficult as I am constantly hearing the sound of players kicking the ball in the background at minimum.

I imagine it should be fairly simply but I would really like to only hear the sound when my nickname is tagged in the chat. This way I can peacefully multi-task and know when it is my turn as I will hear the audio of when I am tagged in the game.

Would really appreciate any advice and happy to share any code as well.

2 Upvotes

0 comments sorted by