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

[TF2] Hitsounds for Buildings


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Plugin ID:
3155
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Hear hitsounds and see damage text upon damaging an Engineer's building.
    Unapprover:
    Reason for Unapproving:
    Now built into the game
    Old 08-13-2012 , 12:54   [TF2] Hitsounds for Buildings
    Reply With Quote #1

    Simple enough: hit a sentry/dispenser/teleporter to trigger the same hitsound and damage text that normally triggers when you hit an enemy. Of course, they'll only see/hear it if they have damage text (hud_combattext 1) and/or hitsounds (tf_dingalingaling 1) enabled.

    Won't trigger when attacking a sapper or sapping a building. Besides that, if you see that a specific weapon is not triggering this plugin or is displaying an incorrect damage amount, let me know.



    Requires SDKHooks.
    Attached Files
    File Type: smx buildinghits.smx (3.2 KB, 702 views)
    File Type: sp Get Plugin or Get Source (buildinghits.sp - 613 views - 1.6 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 10-17-2012 at 04:12.
    MasterOfTheXP is offline
    Jim E. Rustler
    BANNED
    Join Date: Jul 2012
    Old 08-13-2012 , 15:42   Re: [TF2] Hitsounds for Buildings 1.0
    Reply With Quote #2

    Very nice.
    Jim E. Rustler is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-15-2012 , 19:10   Re: [TF2] Hitsounds for Buildings 1.0
    Reply With Quote #3

    Looks cool.
    __________________

    Last edited by Dr. McKay; 08-15-2012 at 21:38.
    Dr. McKay is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 08-16-2012 , 10:56   Re: [TF2] Hitsounds for Buildings 1.0
    Reply With Quote #4

    The code here could do with a cleanup, the formatting is unmaintainable.

    You also might want to consider adding #define's for the definition indexes.
    __________________
    asherkin is offline
    Spanospy
    Junior Member
    Join Date: Feb 2014
    Old 05-02-2014 , 11:06   Re: [TF2] Hitsounds for Buildings
    Reply With Quote #5

    can you explain to me how this thing works? I don't want any entities messing around with some of my plugins or mvm.
    Spanospy is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 05-02-2014 , 11:20   Re: [TF2] Hitsounds for Buildings
    Reply With Quote #6

    Quote:
    Originally Posted by Spanospy View Post
    can you explain to me how this thing works? I don't want any entities messing around with some of my plugins or mvm.
    It generates a fake npc_hurt event when a building takes damage. Only for real players, though... bots don't do this.

    It's the same event that fires when one of the Halloween bosses take damage.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 05-02-2014 at 11:21.
    Powerlord is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 05-02-2014 , 15:37   Re: [TF2] Hitsounds for Buildings
    Reply With Quote #7

    It could really only affect plugins that try to do things when npc_hurt happens, such as Halloween Damage Tracker; although that one does a check to make sure it's an actual boss/Tank/skeleton that the event is being called for.

    Also, turns out the code really is...not good. If I can think of something to improve this plugin with feature-wise, I'll redo the whole (not saying much) plugin.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 03-01-2016 , 01:02   Re: [TF2] Hitsounds for Buildings
    Reply With Quote #8

    Holy necropost, Batman!

    The 29 February 2016 update included this patch:
    • Added combat text and hit sounds for damage done to buildings
    So after three and a half years, this plugin isn't necessary anymore.
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
    nosoop is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 03-01-2016 , 15:08   Re: [TF2] Hitsounds for Buildings
    Reply With Quote #9

    Took Valve long enough!
    __________________
    Dr. McKay 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 15:39.


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