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

[TF2] Boom Headshot!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    1 
    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 - 5270 views - 3.3 KB)
    File Type: zip BoomHeadshot (Pure Pwnage).zip (24.6 KB, 3243 views)
    File Type: zip BoomHeadshot (Meet The Sniper).zip (23.6 KB, 2535 views)
    __________________
    DarthNinja is offline
     



    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 16:21.


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