[Bug] No muzzle flash / No-low gunfire sound decay

Discussion in 'Exploits and Bugs' started by RIFFRAFF, Dec 21, 2017.

Tags:
  1. RIFFRAFF

    RIFFRAFF Currently complaining about bugs

    Joined:
    Dec 20, 2017
    Messages:
    13
    Likes Received:
    5
    Steam Name: RIFFRAFF
    Steam ID: STEAM_0:1:35593402
    Description of Bug:
    No muzzle flash - A bug wherein after firing from your gun, no flash of light comes out the muzzle (end of the gun).
    Weapons this applies to: M24 Sniper Rifle and Zapper

    How this can be game-breaking: You can kill someone and look like you did nothing, taking away from the detecting aspect of the game. Also, this can potentially cause RDM from not knowing who just shot even if they were right near you. This makes playing against weapons with this bug un-fun and un-fair to play against.

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Description of Bug:
    No-low gunfire sound decay - A bug wherein firing your gun will sound the same from 10 cm away and 200 meters away.
    Weapons this applies to: M24 Sniper Rifle, G3/SG-1 Sniper Rifle, Locomotive, 'The Bullshite' and Zapper

    How this can be game-breaking: Knowing who fired their gun in a direction is an integral part of this game, and directional gun sounds are present throughout all the default guns. With these weapons, it's a guessing game as to whether the person next to you or someone 300 meters away just fired, and whether you should be worried about actually firing back or not. The M24 completely lacks a sound limit, and the rest are all above the directional threshold.

    These two bugs together make a pretty bad combination for the M24 and the Zapper, you constantly have to question what just happened when you see someone near you holding these weapons and hear a gun-shot from one. Do you shoot back right away hoping it was them? Or hold back to find out later it was them the whole time and get killed.
     
    Last edited: Dec 21, 2017
    Alpaaca, Logic and Rysta like this.
  2. TinyRick!

    TinyRick! The #1 RAAF Nerd in Arcadia

    Joined:
    Oct 1, 2016
    Messages:
    222
    Likes Received:
    123
    Not 100% sure on the muzzleflash, but I think the sound bug may be because of either bad soundscapes in the map or the sounds are not properly created in-game (Lua wise)
     
  3. Alpaaca

    Alpaaca Wut. Elite Respected

    Joined:
    Sep 4, 2017
    Messages:
    259
    Likes Received:
    137
    I see where you're coming from, and I will admit that this has happened to me with the M24, someone shot it and missed me that was right infront of me and I thought it was the guy next to me, so I killed him, which ended up being RDM. Idk what to do with these weapons. And as Rick said above, the sound scapes are pretty bad when it comes to these guns, so it sounds like it's right next to you when it could be on the other side of the map, so. If we can, it would be good to add the muzzle flash and better soundscapes for these weapons, but I don't think we can do these personally, it's something the creators have to deal with (I think).
     
    RIFFRAFF likes this.
  4. TinyRick!

    TinyRick! The #1 RAAF Nerd in Arcadia

    Joined:
    Oct 1, 2016
    Messages:
    222
    Likes Received:
    123
    I've been looking at the M24 and the reason it has no muzzle flash is because the function isn't called (self:GetOwner():MuzzleFlash() is in the TTT weapon base file but the function it's called in is overridden in the m24 weapon file). However, this is not the case in the zapper. It's possible that the zapper model doesnt have a muzzle attachment which I think is needed for the function to work. Could be fixed by just creating a muzzle flash effect at the shooting position of the player (Player:GetShootPos())
     
    RIFFRAFF likes this.
  5. Hoosen

    Hoosen Head Regular

    Joined:
    Oct 10, 2016
    Messages:
    307
    Likes Received:
    462
    Description of Bug:
    No-low gunfire sound decay - A bug wherein firing your gun will sound the same from 10 cm away and 200 meters away.
    Weapons this applies to: M24 Sniper Rifle, G3/SG-1 Sniper Rifle, Locomotive, 'The Bullshite' and Zapper

    Please for the love of god fix this, I'm sick of hearing all these weapons as if they're inside my head
     
    Alpaaca likes this.
  6. Alpaaca

    Alpaaca Wut. Elite Respected

    Joined:
    Sep 4, 2017
    Messages:
    259
    Likes Received:
    137
    The best way to fix this is to get the creators to fix the soundscapes for these weapons, although you can do it yourself, but I believe you're gonna have to re-upload the addon to workshop, or you can just out it straight back into the servers addons folder.
     
  7. Straight_Bender

    Straight_Bender GLua C0d3r Elite Trusted

    Joined:
    Jul 16, 2016
    Messages:
    703
    Likes Received:
    445
    This. No reason to reupload it to workshop
     
    Alpaaca likes this.
  8. RIFFRAFF

    RIFFRAFF Currently complaining about bugs

    Joined:
    Dec 20, 2017
    Messages:
    13
    Likes Received:
    5
    I'm no expert but that doesn't sound too difficult, this should probably be at the top of whoever is the resident coders to do list.
     
  9. Feldma

    Feldma Professional Zapper Shot Misser Donator Respected

    Joined:
    Oct 25, 2016
    Messages:
    281
    Likes Received:
    170
    What about the (often) server crashes? There is a long list of things to do, this... is not too high on that list I'd imagine.

    EDIT: That being said, I think I know most of the addons these weapons come from. I'll have a look at it myself and see if I can fix it (and the other errors).

    EDIT #2: Yeah, muzzle flash is a two-line fix, won't take long at all. Soundscaping I'll look at tomorrow when I get the chance.
     
    Last edited: Dec 27, 2017
    CheekY BastaRD and RIFFRAFF like this.
  10. Feldma

    Feldma Professional Zapper Shot Misser Donator Respected

    Joined:
    Oct 25, 2016
    Messages:
    281
    Likes Received:
    170
    UPDATE:
    Straight and I spent some time trying to fix the muzzle flash on the M24 (as my fix didn't seem to actually work), turns out the M24 doesn't actually have a muzzle. We'll try to still add a flash but it won't be a two line fix anymore ;(

    EDIT #1: Turns out it does have a muzzle, but it's named wrong (I think this is what causes the issue), I'm going to edit the model to see if renaming it works.

    EDIT #2: Both apps I'm using to decompress the model crash when I try to use it, if anybody has a working decompiler that'd be great.
     
    Last edited: Jan 6, 2018
    Alpaaca likes this.
  11. RIFFRAFF

    RIFFRAFF Currently complaining about bugs

    Joined:
    Dec 20, 2017
    Messages:
    13
    Likes Received:
    5
    A short fix for the zapper problem is to remove it until it is fixed because it's only a re-skin.

    And on an unrelated note, the 'Jackal' re-skin makes it nearly impossible to tell if someone is quickswitching with the silenced pistol, so that's another unfair advantage.
     
  12. Straight_Bender

    Straight_Bender GLua C0d3r Elite Trusted

    Joined:
    Jul 16, 2016
    Messages:
    703
    Likes Received:
    445
    Wouldn't that be a disadvantage considering that people would think they have a silenced pistol. Also reskins are part of the donator package
     
  13. Feldma

    Feldma Professional Zapper Shot Misser Donator Respected

    Joined:
    Oct 25, 2016
    Messages:
    281
    Likes Received:
    170
    I don't think it needs to be removed, yes it's annoying sometimes but if you get shot by a zapper, unless you are surrounded by multiple people who are all T's with a zapper you shouldn't have too big of a problem.

    Either way we think we found the source of the issue so I will fix it when I get back to my house (currently on holiday) tomorrow or the day after, as the fix requires decompiling and editing models, and I don't have the tools or harddrive space on my laptop.
     
  14. RIFFRAFF

    RIFFRAFF Currently complaining about bugs

    Joined:
    Dec 20, 2017
    Messages:
    13
    Likes Received:
    5
    I should note I forgot to add the G3 to the category that doesn't have muzzle flash, which is the weapon I see used the most a long the loco and mac10, it's really annoying to deal with and you often just end up letting yourself die to a traitor with one trying to figure out whether they shot.
     
  15. Rysta

    Rysta Sore fingers

    Joined:
    Aug 7, 2016
    Messages:
    68
    Likes Received:
    127
    Bump, server is still pay2win because of zapper.
     
    lachy101 and Alpaaca like this.
  16. Straight_Bender

    Straight_Bender GLua C0d3r Elite Trusted

    Joined:
    Jul 16, 2016
    Messages:
    703
    Likes Received:
    445
    Not much can be done without redoing the models, Feldma spent a long time going over this and, it's ducked. I don't know if he ever got it working but I don't think so considering how much of a pain it was while I was there being test dummy.
     
  17. Feldma

    Feldma Professional Zapper Shot Misser Donator Respected

    Joined:
    Oct 25, 2016
    Messages:
    281
    Likes Received:
    170
    Wow this is a late post but yeah, I'm not sure why the issue occurs beyond a modelling issue, which I don't have any experience with.

    It may be possible to create a workaround by creating a custom effect on the muzzle position, but that'd also be a bit of a pain.
     

Share This Page