[TF2] Boom Headshot!
Version 1.0.0 Original idea by ThatGuy
Description:
Plays a sound clip of "BOOM HEADSHOT" (or other sound) to players when a player gets a headshot.
The players that hear the sound can be set via a cvar listed below.
This is a complete re-write based on a broken plugin by ThatGuy. It was really popular with me and my server back when it worked, I decided to re-write it when I rediscovered the old thread.
Commands:
~None~
Cvars:
sm_bhs_version - Plugin Version
Settings:
sm_bhs_soundhandler "3"
1 = Play sound to attacker only.
2 = Play to victim only.
3 = Play to both attacker and victim. (Default).
4 = Play to all players on server (Not recommended).
5 = Play to attacker and players near the attacker.
sm_bhs_classhandler "1"
1 = Play for Snipers and Spies(with Ambassador).
2 = Play only for Snipers.
3 = Play only for Spies.
sm_bhs_soundfile "bhs/boomheadshot.mp3"
Path to the soundfile (inside the /sounds/ folder)
sm_bhs_enabled "1"
Enable/Disable playing of sounds altogether.
Install Instructions:
Place BoomHeadshot.smx into your addons/sourcemod/plugins/ folder.
Choose ether the "Pure Pwnage" or Meet the Sniper "Boom Headshot" sound.
Place the sound on your FastDL server. Using the default settings/sound, the file should be in //sound/bhs/boomheadshot.mp3
The plugin adds the sound file to the downloads table.
Check to make sure sound downloads properly.
Note: If you use the Sniper sound clip, make sure you change the soundfile cvar.
Notes:
You may also need to place the sound on your game server depending on your sv_pure/whitelist settings.
This plugin is for TF2 only, I *may* adapt it for other games based on interest/requests.
Please report any bugs!
ToDo:
Add admin override to only play sound for specified players' kills