A question and a suggestion for the dev(s) who wrote the electrics.lua file

Discussion in 'General Discussion' started by S.Ali.M, Aug 23, 2021.

  1. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    932
    (Idk it's the correct position to post this or not, I couldn't find a better forum)
    Hey everyone!
    As you probably know, when you use a modded horn sound or a modded siren sound, when you want to un-press the horn key or you shut off the siren, the sound doesn't be stopped instantly like vanilla horns or sirens, they be stopped with a fade-out! It's really annoying!
    In this video you can hear the difference:

    This pic can help if you still didn't understand:


    BUT...
    If the dev who wrote that code, replace the stopSFX with cutSFX, the problem will be fixed!
    I did it:
    bandicam2021-08-2321-51-50-749.jpg bandicam2021-08-2321-52-09-810.jpg
    And it fixed the problem!!!


    My question is why that dev didn't write cutSFX?!!

    If a dev read this post and figured out what I'm talking about, please report it to the team to fix it, then all of the horn and siren mods will be fun to use. Thanks in advance
     
    #1 S.Ali.M, Aug 23, 2021
    Last edited: Aug 23, 2021
    • Like Like x 1
  2. Sturpy

    Sturpy
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    215
    First world problems eh?
     
    • Agree Agree x 1
  3. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Engineering
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,704
    CutSFX does not play the tail of the sound, it just cuts it away entirely, which is wrong and doesn't work well.
     
  4. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    932
    But it's better than having a fade-out. Also, most of the horn and siren sounds are shorter than 1 sec, so there isn't really a big difference between cutting them and stopping them.
    Btw, if you want to keep the fade-out, you make it shorter. Now the fade-out time is 1 sec and it's really long, I think 0.4 or 0.5 sec is better
    --- Post updated ---
    Btw, I have another question too, why this fade-out doesn't happen on the vanilla horns and sirens :confused:
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice