SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Delta327 on September 12, 2015, 01:50:22 PM

Title: Sniper rifle problem
Post by: Delta327 on September 12, 2015, 01:50:22 PM
How do you have the sniper rifle fire multiple shots
Title: Re: Sniper rifle problem
Post by: Anyder on September 12, 2015, 09:01:20 PM
I dont have now the modding tools, but just compare the rebel vanguard with the sniper...

Edit: thx for the fast answer, phobos  :cheers:
Title: Re: Sniper rifle problem
Post by: Phobos on September 12, 2015, 09:07:19 PM
Quote from: Delta327 on September 12, 2015, 01:50:22 PM
How do you have the sniper rifle fire multiple shots
this line
TriggerSingle = "1"

change to 0 for auto fire
TriggerSingle = "0"
Title: Re: Sniper rifle problem
Post by: Delta327 on September 13, 2015, 08:25:08 AM
Quote from: Phobos on September 12, 2015, 09:07:19 PM
this line
TriggerSingle = "1"

change to 0 for auto fire
TriggerSingle = "0"

Ok can have it fire 6 times at once with the trigger on 0?
Title: Re: Sniper rifle problem
Post by: Phobos on September 13, 2015, 11:27:52 AM
Quote from: Delta327 on September 13, 2015, 08:25:08 AM
Ok can have it fire 6 times at once with the trigger on 0?
Set the shotdelay to 0.0 or 0.1 also and it will shoot all bullets in the clip very fast.
Title: Re: Sniper rifle problem
Post by: Shazam on September 13, 2015, 12:42:49 PM
I think he's wanting the sniper rifle to act like a shotgun, not an automatic weapon (if I am understanding him correctly)

Compare the sniperrifle.odf to the shotgun.odf and look for "salvo"

I think it would be something similar to this:
SalvoCount = 1
SalvoShots = 6

I'm not at my PC, so I'm not completely certain if those are the correct lines--someone with the mod tools handy can tell you exactly what they would be.

You can also tweak the spread to improve the accuracy.
Title: Re: Sniper rifle problem
Post by: Delta327 on September 13, 2015, 03:04:44 PM
Quote from: Shazam on September 13, 2015, 12:42:49 PM
I think he's wanting the sniper rifle to act like a shotgun, not an automatic weapon (if I am understanding him correctly)

Compare the sniperrifle.odf to the shotgun.odf and look for "salvo"

I think it would be something similar to this:
SalvoCount = 1
SalvoShots = 6

I'm not at my PC, so I'm not completely certain if those are the correct lines--someone with the mod tools handy can tell you exactly what they would be.

You can also tweak the spread to improve the accuracy.

Well it works but I fires 6 times instead of fireing multiple time like a rifle would.
Title: Re: Sniper rifle problem
Post by: Shazam on September 13, 2015, 03:34:08 PM
Quote from: Delta327 on September 13, 2015, 03:04:44 PM
Well it works but I fires 6 times instead of fireing multiple time like a rifle would.

What I said above is if you want it to shoot multiple shots at once, like a shotgun would.

To have it fire like a rifle would, follow Phobos's instructions.
Title: Re: Sniper rifle problem
Post by: Delta327 on September 13, 2015, 05:06:42 PM
Quote from: Shazam on September 13, 2015, 03:34:08 PM
What I said above is if you want it to shoot multiple shots at once, like a shotgun would.

To have it fire like a rifle would, follow Phobos's instructions.

Ok sorry I got confused.  Thanks.
EhPortal 1.34 © 2024, WebDev