Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

A fix for the somewhat rare looping sounds that get played after a rocket explodes.

License

Notifications You must be signed in to change notification settings

x07x08/TF2-Explosion-Sound-Fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

[TF2] Explosion Sound Fix

This plugin aims to fix the nasty flamethrower looping sound that gets played after a rocket explodes.

Explanation

Whenever an explosion happens, the game checks the definition index of the weapon that "launched" the rocket for custom replacement sounds.

Unfortunately, the sound type that gets played by default is SPECIAL1, which is replaced for most of the flamethrowers (except stock) with the looping burn sound.

You can hear the sound yourself by going in a dodgeball server that doesn't have a fix for this issue or by deflecting a sentry rocket with a flamethrower other than stock. The latter is caused by sentry rockets having their m_hOriginalLauncher netprop set to -1, which gets replaced on the first deflect.

What this plugin does is check a list of weapon definition indexes and replaces them with the stock flamethrower's index.

References

  1. Rocket projectile code & Explosion FX code

  2. An already existing fix done by Nanochip

    Nanochip's fix sets the definition index to -1, thus fixing the sound; but it also blocks all explosions from occuring.

About

A fix for the somewhat rare looping sounds that get played after a rocket explodes.

Topics

Resources

License

Stars

Watchers

Forks