Raised This Month: $12 Target: $400
 3% 

[TF2] Boom Headshot!


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1916
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Plays a sound to players, triggered by headshots.
    Old 08-28-2010 , 07:51   [TF2] Boom Headshot!
    Reply With Quote #1

    [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
    Attached Files
    File Type: sp Get Plugin or Get Source (BoomHeadshot.sp - 5256 views - 3.3 KB)
    File Type: zip BoomHeadshot (Pure Pwnage).zip (24.6 KB, 3232 views)
    File Type: zip BoomHeadshot (Meet The Sniper).zip (23.6 KB, 2524 views)
    __________________
    DarthNinja is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 08-28-2010 , 09:06   Re: [TF2] Boom Headshot!
    Reply With Quote #2

    Great plugin, i wish this could be done for l4d2 also
    Fleepster99 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-28-2010 , 19:51   Re: [TF2] Boom Headshot!
    Reply With Quote #3

    Quote:
    Originally Posted by Fleepster99 View Post
    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.
    __________________
    DarthNinja is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 08-28-2010 , 20:00   Re: [TF2] Boom Headshot!
    Reply With Quote #4

    Quote:
    Originally Posted by DarthNinja View Post
    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
    Fleepster99 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-29-2010 , 03:05   Re: [TF2] Boom Headshot!
    Reply With Quote #5

    Quote:
    Originally Posted by Fleepster99 View Post
    Not if someone has create this XD Survivors deathmatch
    Come again?
    __________________
    DarthNinja is offline
    SmackDaddy
    Veteran Member
    Join Date: Oct 2009
    Old 11-14-2010 , 16:54   Re: [TF2] Boom Headshot!
    Reply With Quote #6

    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....
    SmackDaddy is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-15-2010 , 00:24   Re: [TF2] Boom Headshot!
    Reply With Quote #7

    Quote:
    Originally Posted by SmackDaddy View Post
    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?
    __________________
    DarthNinja is offline
    SmackDaddy
    Veteran Member
    Join Date: Oct 2009
    Old 11-18-2010 , 17:24   Re: [TF2] Boom Headshot!
    Reply With Quote #8

    Quote:
    Originally Posted by DarthNinja View Post
    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!
    SmackDaddy is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-19-2010 , 01:27   Re: [TF2] Boom Headshot!
    Reply With Quote #9

    That has to do with the client caching the map and not the new files.
    __________________
    DarthNinja is offline
    deadshadow
    New Member
    Join Date: Jul 2011
    Old 07-27-2011 , 18:15   Re: [TF2] Boom Headshot!
    Reply With Quote #10

    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
    deadshadow is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:11.


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