[Tut] Different Gun Sounds

Results 1 to 17 of 17
  1. #1
    Valued Member GSDxLegacy is offline
    MemberRank
    Jan 2008 Join Date
    135Posts
    if(player->Played = Soldier Front)
    {
    Me->addtext("

    You may have noticed that every single gun in Soldier Front shoots with different sounds, while Gunz only has one sound for all the rifles and one sound for all the shotguns... etc.... Would you like to find out how to do this?"

    );
    State=1;
    Me->SendYesNo();
    }



    Else
    {
    Me->addtext("

    YOU'VE NEVER PLAYED SOLDIER FRONT?! Well, in Soldier Front, all guns have unique shooting sounds. However, in Gunz, there is only one sound for all the rifles and one sound for all the shotguns... etc....Would you like to find out how to do this?"

    );
    State=1;
    Me->SendYesNo();
    }


    else if(state=1)
    {
    Me->addtext("

    First of all, take a look at your zitems. Go to any gun and look at it.

    Code:
        
    <ITEM id="5045" 
            name="Dual Shiva Rifle" 
            iscashitem="false" 
            mesh_name="rifle13x2" 
       ...
            magazine_image_id="0" 
            snd_reload="we_rifle_reload"    
            snd_fire="we_rifle_fire" 
            snd_dryfire="762arifle_dryfire"/>
    Notice the bolded text. This is what sounds the gun calls upon when firing, reloading and dry-firing (sound it makes when it runs out of bullets).

    So to make unique sounds:

    1. Add the sound you want into your effect.mrs (oh honest to god figure it out yourself).
    2. Change the name of the firing, reload and/or dryfire.

    Yey...

    Sample:

    Code:
        <ITEM id="504512" 
            name="Fart-tastic" 
            iscashitem="false" 
            mesh_name="rifle103x2" 
            totalpoint="0" 
            type="range"    
            res_sex="a" 
            res_level="0" 
            slot="range" 
            weapon="rifle" 
            weight="50" 
            bt_price="0"    
            delay="1" 
            damage="1" 
            ctrl_ability="25" 
            magazine="4000" 
            maxbullet="600000" 
            reloadtime="8"    
            slug_output="true" 
            gadget_id="0" 
            color="#FFFFFFFF" 
            image_id="2" 
            bullet_image_id="0" 
            magazine_image_id="0" 
            snd_reload="fart_reload"    
            snd_fire="fart_fire" 
            snd_dryfire="fart_no_ammo" 
            desc="Fart some more why don't you?"    
            effect_id="8" />
    ");
    Me->end();
    }

    else
    {
    Me->addtext("

    GTFO

    ");
    Me->End();
    }
    Last edited by GSDxLegacy; 19-05-08 at 12:24 AM. Reason: Error (Line 6; invalid syntax, missing ;)


  2. #2
    Member Z3ZO is offline
    MemberRank
    Jan 2008 Join Date
    IsraelLocation
    60Posts

    Re: [Tut] Different Gun Sounds

    Common sense? lol

  3. #3
    Account Upgraded | Title Enabled! Axium is offline
    MemberRank
    May 2008 Join Date
    Delhi, IndiaLocation
    604Posts

    Re: [Tut] Different Gun Sounds

    Sounds like...fart ?

  4. #4
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: [Tut] Different Gun Sounds

    you should have just used the Quote marks lolz. Makes it easier to read

  5. #5
    Banned MAXTRAXv3 is offline
    BannedRank
    Jan 2007 Join Date
    Perth, WesternLocation
    2,252Posts

    Re: [Tut] Different Gun Sounds

    a coder i see...

    should of made it much more simpler, this is very ezy to do...

  6. #6
    Proficient Member tagerinator is offline
    MemberRank
    Nov 2007 Join Date
    Canada FTW!Location
    199Posts

    Re: [Tut] Different Gun Sounds

    Yes, it is.

  7. #7
    Enthusiast t4vnet is offline
    MemberRank
    Jan 2007 Join Date
    26Posts

    Re: [Tut] Different Gun Sounds

    Lol , I thinks If Gunz have sfx ,it will crash my computer :D

  8. #8
    Account Upgraded | Title Enabled! Squares is offline
    MemberRank
    Mar 2008 Join Date
    260Posts

    Re: [Tut] Different Gun Sounds

    Boo.
    ;]

  9. #9
    Valued Member GSDxLegacy is offline
    MemberRank
    Jan 2008 Join Date
    135Posts

    Re: [Tut] Different Gun Sounds

    If gunz has sound effects, it'll crash your computer...?

    Make less sense plz. ._.

  10. #10
    Member rebuse is offline
    MemberRank
    Nov 2007 Join Date
    95Posts

    Re: [Tut] Different Gun Sounds

    he means to say, his computer is too crappy, andhe thinks that the extra sound and alll that good stuff will be too much for his computer to handle =crashes his comp.

  11. #11
    Programming Addict Lambda is offline
    MemberRank
    Sep 2007 Join Date
    SpainLocation
    393Posts

    Re: [Tut] Different Gun Sounds

    why are you trying to be 'cool' putting the C++ (failed) syntax on the post? xD

    Btw, useless post

  12. #12
    Account Upgraded | Title Enabled! Abstrakt is offline
    MemberRank
    Mar 2008 Join Date
    Vancouver B.C.Location
    645Posts

    Re: [Tut] Different Gun Sounds

    Thanks :D

  13. #13
    Omega ihatehaxor is offline
    MemberRank
    Apr 2008 Join Date
    JerseyLocation
    5,461Posts

    Re: [Tut] Different Gun Sounds

    this is awesome u can edit the sound of gunfire to something funny

  14. #14
    Novice Tasogare is offline
    MemberRank
    May 2007 Join Date
    3Posts

    Re: [Tut] Different Gun Sounds

    'cept a problem I've noticed in the server I play it uses custom sounds but unlike the original sounds in the gunz you can hear the sound the same from any where. meaning some one across the map shoots it sounds like he shot the gun right next to your ear, though it works fine for powerful weapons it gives that nice big sniper in the forest sound.

  15. #15
    Enthusiast afr0pkerz is offline
    MemberRank
    Mar 2009 Join Date
    25Posts

    Re: [Tut] Different Gun Sounds

    What if it was the sword let's say plunger.

  16. #16
    Enthusiast *Ghost* is offline
    MemberRank
    Dec 2009 Join Date
    36Posts

    Re: [Tut] Different Gun Sounds

    You just spammed a two year thread.
    /reported

  17. #17
    Member remixgunz is offline
    MemberRank
    Sep 2010 Join Date
    77Posts

    Re: [Tut] Different Gun Sounds

    Quote Originally Posted by Lambda View Post
    why are you trying to be 'cool' putting the C++ (failed) syntax on the post? xD

    Btw, useless post
    /agree



Advertisement