Shotgun

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Minwu325

Shotgun

Post by Minwu325 »

Is it possible to mod the Shotgun so that the bullets spread out more, making it less accurate at mid range?
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Re: Shotgun

Post by SBF_Dann_Boeing »

Minwu325 wrote:Is it possible to mod the Shotgun so that the bullets spread out more, making it less accurate at mid range?

Code: Select all

MinRange            = "0"
OptimalRange        = "24"
MaxRange            = "48"

PitchSpread         = "3.0"
YawSpread           = "4.5"

SpreadPerShot       = "1.1"
SpreadRecoverRate   = "4.8"
SpreadThreshold     = "1.6"
SpreadLimit         = "6.0"

StandStillSpread    = "0.0"
StandMoveSpread     = "0.0"
CrouchStillSpread   = "0.0"
CrouchMoveSpread    = "0.0"
ProneStillSpread    = "0.0"
ProneMoveSpread     = "0.0"
Edit Those
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Shotgun

Post by Caleb1117 »

Hiya Minwu!

This may help explain some of the spread lines.
Also, recoil spread works differently now. I added code to make sure existing values work fine, but here's the new thing:
SpreadPerShot = <spread per shot, in degrees>
SpreadRecoveryRate = <spread per second, in degrees>
SpreadThreshold = <amount of spread to "ignore", in degrees>
SpreadLimit = <maximum spread, in degrees>
The old values still work, but weapons with low SpreadRecovery (e.g. pistol) will act somewhat weird.

FYI: SpreadPerShot actually applies per group of shots, so if you have ShotsPerSalvo larger than one, the kick doesn't apply until the next group in the salvo. I can do the same thing for ammo and heat if you want. At some point I'm going to get the weapon charge state stuff working. :)

In case you're wondering what SpreadThreshold is for, it lets you give the weapon a little leeway before the spread starts to kick in. That's what I meant by "ignore".
From Pyc0freds weapon notes.
Post Reply