Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: .30 cal Browning in multiplayer????

  1. #11

    Default

    DoubleKill: That's perfect, mate.

    Funny thing happened. I placed your last code into a thread set by a trigger on the existing 30 cal.
    I added the gun's coordinates to your script and when triggered it produced a second gun. lol
    But it worked flawlessly, mount, shoot (without sound) and dismount.
    Thank you.

    I take it that it doesn't need triggering. lol
    I call the thread from the main after prespawn.


    Might go looking for the sound file before crawling into bed.
    Cheers.

  2. #12

    Default

    Quote Originally Posted by AccadaccA View Post
    I added the gun's coordinates to your script and when triggered it produced a second gun. lol
    That happend because the map script is called 2 times.

    But you can fix that if you add a check with a variable like this



    if(level.30call != 1)
    {

    //spawn 30call here

    level.30call = 1

    }
    Last edited by DoubleKill; December 31st, 2019 at 06:39 AM.

  3. #13

    Default

    My son just told me that he recalls doing the single player missions and the .30 cal sounded exactly like the MG42.
    He's somewhat of a gun buff and he swears it was the same sound file.
    Dang his memory, that was when he played it in 2002.

    I've just gone through all of the sound folders in every pk3 for the game and it's two expansions and the ONLY 30cal is in Breakthru "wpnfire_30cal_leftwing.wav" & "wpnfire_30cal_rightwing.wav" ("pak1\sound\weapons\Fire").
    So perhaps they did use the MG42 for the 30 cal sound???

  4. #14

    Default

    Quote Originally Posted by DoubleKill View Post
    That happend because the map script is called 2 times.

    But you can fix that if you add a check with a variable like this



    if(level.30call != 1)
    {

    //spawn 30call here

    level.30call = 1

    }
    Yep, gotcha. Thanks again, mate.


    edit: It's working, cheers.
    I moved the exsting 30cal and it's trigger.
    Then I called the thread like this.
    Code:
    	level waittill spawn
    	thread browning
    end
    
    browning:
    	local.call = spawn "vehicles/jeep_30cal.tik" classname TurretGun
    	local.call.origin = ( 1240.00 -738.00 10.00 )
    	local.call viewOffset "-42 0 100"
    	local.call idleCheckOffset "-56 0 0"
    end
    Funny how you edited after i quoted you. lol Sorry about that.
    Last edited by AccadaccA; December 31st, 2019 at 06:55 AM.

  5. #15

    Default

    No, the 30call use a different sound.

    Is on this alias, i have find them on the ubersound.scr:


    aliascache jeep_snd_fire sound/weapons/fire/50CalFire2.wav soundparms 1.05 0.2 0.95 0.1 800 4000 weapon loaded maps "m1l3a m1l3b"

  6. #16

    Default

    I stand corrected.

    I saw that (50cal) and even played it for my son to listen to. lol

  7. #17

    Default

    I made a 30cal work like the MG42 by changing the 30cal model in Lightray (so origin is at the right height for bullets), and included a new tik with some modifications (all commented).

    I've emailed you the files.

    Extra work may need doing to tweak the look and feel but it's a good starting point. Hope it helps.

  8. #18

    Default

    1337Smithy: You never cease to amaze me.
    I wasn't sure if you were still going ahead since DoubleKill posted a work-around script to resolve the issue.
    Both versions work well.
    I would never have thought it could be resolved by tweaking the model itself and as you know it's best to keep a distance between me and scripts. lol

    Thanks mate, it's much appreciated.

    P.S. I'm totally clueless on how to call the weapon to make sound. Changing the alias is easy enough but how do I link the gun firing to it?

  9. #19

    Default

    Only just change the alias to this and put on the ScriptMaster:


    local.master = spawn ScriptMaster
    local.master aliascache jeep_snd_fire sound/weapons/fire/50CalFire2.wav soundparms 1.05 0.2 0.95 0.1 800 4000 weapon loaded maps "dm obj m1l3a m1l3b"

  10. #20

    Default

    I added that the other day, mate.
    I don't know how or where to tell the 30cal thread to play that alias.

    Sorry, I told you I was hopeless with scripts. lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •