Raised This Month: $32 Target: $400
 8% 

[L4D2] Thirdperson Shotgun sound bug fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Plugin ID:
4554
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Tired of your shotguns not making any sounds when shot in thirdpersonshoulder mode? Worry no longer!
    Old 03-17-2015 , 12:20   [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #1

    About : Very simple plugin, it fixes the sound bug in Thirdpersonshoulder where Shotguns make absolutely not sound when shot (why hasn't this been fixed yet is beyond me)

    How it works :
    This simply hooks weapon_fire, checks to see if the user is shooting a shotgun and plays the sound if so.

    CVARs :
    Code:
    No CVARs in this plugin
    Code:
    Version 1.0    03-17-2015
    - Initial Release
    To DO :
    Code:
    - Because of the way this plugin works, shotguns will still make normal sounds when using upgraded ammo (I think fire bullets make them sound different?), this needs to be addressed (although for most people, this isn't noticeable, I didn't even know until my friend told me after testing.
    Attached Files
    File Type: sp Get Plugin or Get Source ([L4D2] Thirdperson Shoulder Shotgun sound fix.sp - 7345 views - 2.6 KB)
    __________________

    Last edited by DeathChaos25; 03-17-2015 at 12:29.
    DeathChaos25 is offline
    DeathChaos25
    Senior Member
    Join Date: Jan 2014
    Location: Puerto Rico
    Old 03-17-2015 , 12:23   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #2

    This plugin initially had a VERY complicated thirdperson shoulder check to see if the client was or wasn't in thirdperson, but because of how weirdly I coded it, it unnecessarily inflated the code by a lot.

    I decided to completely scrap it because I noticed that even if the check is not implemented, it doesn't interfere in any way with normal usage.
    __________________
    DeathChaos25 is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 03-17-2015 , 12:52   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #3

    Definitely a quality of life type plugin.
    Sev is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 03-18-2015 , 16:14   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #4

    No errors, but it appears all the shotguns have their sounds fired twice now whenever they're fired, so you hear sort of an echo each time.
    Sev is offline
    DeathChaos25
    Senior Member
    Join Date: Jan 2014
    Location: Puerto Rico
    Old 03-18-2015 , 16:55   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #5

    Quote:
    Originally Posted by Sev View Post
    No errors, but it appears all the shotguns have their sounds fired twice now whenever they're fired, so you hear sort of an echo each time.
    That's kind of there because there is literally no way of knowing when a client is in ThirdPersonShoulder short of hooking a command listener, and even then there were a lot of other hooks and variable resets that needed to be done, it made for a very big spaghetti code that was awfully inflated just by the check itself.

    I think I already know how to make it so that this isn't an issue, I'll throw this on my to do list alongside the incendiary ammo check (apparently they make your shotgun sound different when firing, who would've thought), in theory, I'd add a SoundHook, suppress normal shotgun sounds, and leave only the ones I'm forcing, since as you've noticed, fires at the same time as the normal one.

    I'll look at it and see if it can be done easily.
    __________________
    DeathChaos25 is offline
    leonardo martinez
    Member
    Join Date: Jun 2014
    Old 03-18-2015 , 19:10   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #6

    I have an idea for you to create a fun plugin.

    boomer: vomiting and walk at the same time.
    spitter: spit and walk at the same time.

    sorry for my bad English.
    leonardo martinez is offline
    DeathChaos25
    Senior Member
    Join Date: Jan 2014
    Location: Puerto Rico
    Old 03-18-2015 , 19:34   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #7

    Quote:
    Originally Posted by leonardo martinez View Post
    I have an idea for you to create a fun plugin.

    boomer: vomiting and walk at the same time.
    spitter: spit and walk at the same time.

    sorry for my bad English.
    https://forums.alliedmods.net/showthread.php?t=119891
    https://forums.alliedmods.net/showthread.php?t=234684
    __________________
    DeathChaos25 is offline
    leonardo martinez
    Member
    Join Date: Jun 2014
    Old 03-22-2015 , 22:09   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #8

    Thank you! The Plugin works with the boomer.
    But with the Spitter it does not work.
    The Plugin "Thirdperson Shotgun sound bug fix" works very well!
    thank you very much! I speak Spanish.
    Regards from Argentina
    leonardo martinez is offline
    Mincegamer
    New Member
    Join Date: Jul 2015
    Old 05-10-2016 , 18:16   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #9

    Hey DeathChaos, I've been using your plugins for several months now, I really couldn't live without them on my server, lol. I was wondering if you had tried updating this one, like with a sound hook or something? I'm looking into playing in third person some, but since I'm a big user of the shotguns, it gets annoying. Of course, having this plugin means that everyone else on the server gets the echo when firing if they're not in third person.

    I'm sure you're busy with life, and I see you haven't been up here in a while anyway, but I just wanted to ask in case you do see this next time you check in. Thanks a lot.
    Mincegamer is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 05-10-2016 , 18:24   Re: [L4D2] Thirdperson Shotgun sound bug fix
    Reply With Quote #10

    Quote:
    Originally Posted by Mincegamer View Post
    Hey DeathChaos, I've been using your plugins for several months now, I really couldn't live without them on my server, lol. I was wondering if you had tried updating this one, like with a sound hook or something? I'm looking into playing in third person some, but since I'm a big user of the shotguns, it gets annoying. Of course, having this plugin means that everyone else on the server gets the echo when firing if they're not in third person.

    I'm sure you're busy with life, and I see you haven't been up here in a while anyway, but I just wanted to ask in case you do see this next time you check in. Thanks a lot.
    Well this may be your lucky day because I use this plugin and noticed that the sound does echo sometimes, also the volume of the sound lowers, if I have time this week or possibly by the weekend i'll fix it...if he doesn't get to it first. Remind me if I forget, I got other coding projects going on atm...
    MasterMind420 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 20:39.


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