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

[TF2] Crit Hallelujah! (Aka Crit Sounds)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1920
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Plays a sound to players when they get crit-kills
    Old 08-29-2010 , 08:05   [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #1

    [TF2] Crit Hallelujah!
    Version 1.0.1




    Description:
    Plays a sound to players when a player gets a kill with a critical hit.
    See cvars below!

    Commands:
    Client:
    sm_critsound - Allows a player to disable/enable crit sounds for themself.
    Cvars:
    sm_hallelujah_version - plugin version

    Settings:
    • sm_ch_enabled "1"
      • Enable/Disable plugin.
    • sm_ch_soundfile "player/taunt_wormshhg.wav"
      • Path to the soundfile inside /sound/
    • sm_ch_suicide "0"
      • Enable/Disable playing sound for crit suicides. (Soldier/Demo).
    • sm_ch_playforheadshot "0"
      • Enable/Disable playing sound for sniper headshots. (Since they are always crits).
    • sm_ch_soundhandler
      • "1" Play sound to attacker only (Default).
      • "2" Play to players near the attacker.
      • "3" Play to both attacker and victim.

    Install Instructions:
    1. Place CritHallelujah.smx into your addons/sourcemod/plugins/ folder.
    2. Upload your sound to your FDL server if using a custom sound.

    ToDo:
    • ~



    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Added valid client check for attacker

    Total downloads as prior to last edit: 299
    Attached Files
    File Type: sp Get Plugin or Get Source (CritHallelujah.sp - 2362 views - 3.8 KB)
    __________________

    Last edited by DarthNinja; 08-21-2011 at 13:28.
    DarthNinja is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 08-29-2010 , 08:39   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #2

    Thank you for this
    xomp is offline
    Send a message via Skype™ to xomp
    DarkGod
    SourceMod DarkCrab
    Join Date: Jul 2007
    Location: Sweden
    Old 08-29-2010 , 09:24   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #3

    Suggestion: Make it a .ini file for the sound file so that players can choose several. Then play a random or sequential sound.
    __________________
    DarkGod is offline
    Send a message via AIM to DarkGod Send a message via MSN to DarkGod
    DrWagstaff
    SourceMod Donor
    Join Date: Apr 2010
    Location: Livermore
    Old 08-29-2010 , 11:59   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #4

    Does this plugin generate a CFG? I can't find one. I'd prefer not to have to set this stuff in my server.cfg as it's huge and bloated already. Great plugin btw, my players were talking about something like this last night.
    DrWagstaff is offline
    Send a message via AIM to DrWagstaff
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 08-31-2010 , 13:28   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #5

    Gonna install later today, working on my CSS server is why. TY For contribution.
    Drixevel is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 09-15-2010 , 23:33   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #6

    Quote:
    Originally Posted by DrWagstaff View Post
    Does this plugin generate a CFG? I can't find one. I'd prefer not to have to set this stuff in my server.cfg as it's huge and bloated already. Great plugin btw, my players were talking about something like this last night.
    No.

    I trust that you know that you can make your own configs and add time to the server.cfg?
    Eg, make a cfg called critsounds.cfg and add this line to your server.cfg:
    exec critsounds.cfg
    __________________
    DarthNinja is offline
    VsX
    AlliedModders Donor
    Join Date: Jul 2007
    Old 08-21-2011 , 09:18   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #7

    lot of errors

    L 08/21/2011 - 15:08:04: [SM] Displaying call stack trace for plugin "CritHallelujah.smx":
    L 08/21/2011 - 15:08:04: [SM] [0] Line 262, /groups/sourcemod/compiler-1.3/include/tf2_stocks.inc::TF2_GetPlayerClass()
    L 08/21/2011 - 15:08:04: [SM] [1] Line 74, /home/groups/alliedmodders/forums/files/4/9/8/6/5/72524.attach::Event_PlayerDeath()
    L 08/21/2011 - 15:08:26: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 0/worldspawn)
    L 08/21/2011 - 15:08:26: [SM] Displaying call stack trace for plugin "CritHallelujah.smx":
    L 08/21/2011 - 15:08:26: [SM] [0] Line 262, /groups/sourcemod/compiler-1.3/include/tf2_stocks.inc::TF2_GetPlayerClass()
    L 08/21/2011 - 15:08:26: [SM] [1] Line 74, /home/groups/alliedmodders/forums/files/4/9/8/6/5/72524.attach::Event_PlayerDeath()
    VsX is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-21-2011 , 13:32   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #8

    Fixed
    __________________
    DarthNinja is offline
    eraserhead
    Veteran Member
    Join Date: Nov 2009
    Old 02-25-2012 , 14:59   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #9

    Nice plugin DN. Can you make a cvar for backstabs as well?
    __________________
    eraserhead is offline
    Send a message via Skype™ to eraserhead
    Skizerz
    Junior Member
    Join Date: Jul 2012
    Old 07-29-2012 , 15:35   Re: [TF2] Crit Hallelujah! (Aka Crit Sounds)
    Reply With Quote #10

    Thanks for the nice plugin, but I'm having issues that I can't find the cause to. I have a sound file named wtfudo.mp3 in the /sound/misc/ folder. When I first put it there and rejoined it downloaded the file from the fast DL and it completely worked, and for my friends that were on the server. But after leaving, restarting server, for changing map, it no longer plays the sound. In my server.cfg I have...

    sm_ch_enabled "1"
    sm_ch_soundfile "misc/wtfudo.mp3"
    sm_ch_soundhandler "2"
    sm_ch_playforheadshot "1"
    sm_ch_suicide "1"

    While the sound won't play, if I go into my Computer's tf2 client and delete the wtfudo.mp3, if I rejoin it will not download the file from the fastDL anymore. The console returned no errors, and the plugins IS still working because if I'm in game and I type rcon sm_ch_soundfile "anotherserversound.mp3" that sound will begin playing on crit kills. It simply won't play the sound I want it to, and I don't understand what could possible cause that. It's in the fastDL, it's on the server, they're all named correctly, the plugin works. I've quadruple checked all this. So any idea as to how I could fix this? I really want this working it was hilarious while it did work. And if i upload a new sound and set it to that it will download and work for a short time, until map change or whatever. So yeah, help would be very much appreciated. BTW I'm new with servers, 3rd day of having my own.
    Skizerz is offline
    Reply



    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 13:00.


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