AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Boom Headshot! (https://forums.alliedmods.net/showthread.php?t=136612)

DarthNinja 08-28-2010 07:51

[TF2] Boom Headshot!
 
3 Attachment(s)
[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:
  1. Place BoomHeadshot.smx into your addons/sourcemod/plugins/ folder.
  2. Choose ether the "Pure Pwnage" or Meet the Sniper "Boom Headshot" sound.
  3. 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.
  4. 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


Version History:
  • V1.0.0
    • Initial Release

Fleepster99 08-28-2010 09:06

Re: [TF2] Boom Headshot!
 
Great plugin, i wish this could be done for l4d2 also :(

DarthNinja 08-28-2010 19:51

Re: [TF2] Boom Headshot!
 
Quote:

Originally Posted by Fleepster99 (Post 1284120)
Great plugin, i wish this could be done for l4d2 also :(

Not much point though, headshots are pointless/random in L4D. It would just get played constantly to shotgunners.

Fleepster99 08-28-2010 20:00

Re: [TF2] Boom Headshot!
 
Quote:

Originally Posted by DarthNinja (Post 1284677)
Not much point though, headshots are pointless/random in L4D. It would just get played constantly to shotgunners.

Not if someone has create this XD Survivors deathmatch

DarthNinja 08-29-2010 03:05

Re: [TF2] Boom Headshot!
 
Quote:

Originally Posted by Fleepster99 (Post 1284683)
Not if someone has create this XD Survivors deathmatch

Come again?

SmackDaddy 11-14-2010 16:54

Re: [TF2] Boom Headshot!
 
Installed according to the above instructions and it's not working in-game. File downloads, plugin shows loaded, no errors in log file. sv pure is 0......still nothing on headshots.......running on a sniper only server....

DarthNinja 11-15-2010 00:24

Re: [TF2] Boom Headshot!
 
Quote:

Originally Posted by SmackDaddy (Post 1349539)
Installed according to the above instructions and it's not working in-game. File downloads, plugin shows loaded, no errors in log file. sv pure is 0......still nothing on headshots.......running on a sniper only server....

Errors in client/server console?

SmackDaddy 11-18-2010 17:24

Re: [TF2] Boom Headshot!
 
Quote:

Originally Posted by DarthNinja (Post 1349754)
Errors in client/server console?

I apologize for not posting back....basically, it was affecting those who were in-game, had not left TF2, although I rebooted the server.....

When the logged out of TF2 and got back in, the headshot mp3 downloaded and they could hear it.

Thank you for your reply and thanks for the great plugin!

DarthNinja 11-19-2010 01:27

Re: [TF2] Boom Headshot!
 
That has to do with the client caching the map and not the new files.

deadshadow 07-27-2011 18:15

Re: [TF2] Boom Headshot!
 
I don't have a Fastdl server i have a dedicated server running with fortwars and i don't know where to put the sound file. I would appreciated if you reply back saying where to put it


All times are GMT -4. The time now is 13:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.