Weapon spread

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
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Weapon spread

Post by DrDrSheldonLeeCooper »

How can I make that the gun fire doesn´t spread?
Thank you.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Weapon spread

Post by Marth8880 »

http://www.secretsociety.com/forum/down ... _Notes.txt

Specifically this part:
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".
One easy way to completely remove spread is to add these lines:

Code: Select all

StandStillSpread    = "0.0"
StandMoveSpread     = "0.0"
CrouchStillSpread   = "0.0"
CrouchMoveSpread    = "0.0"
ProneStillSpread    = "0.0"
ProneMoveSpread     = "0.0"
DrDrSheldonLeeCooper
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sat Apr 26, 2014 1:50 pm
Projects :: Times before Empire
Games I'm Playing :: SWBF2-BF-Skyrim
xbox live or psn: No gamertag set
Location: Coruscant City [Germany]

Re: Weapon spread

Post by DrDrSheldonLeeCooper »

Marth8880 wrote:http://www.secretsociety.com/forum/down ... _Notes.txt

Specifically this part:
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".
One easy way to completely remove spread is to add these lines:

Code: Select all

StandStillSpread    = "0.0"
StandMoveSpread     = "0.0"
CrouchStillSpread   = "0.0"
CrouchMoveSpread    = "0.0"
ProneStillSpread    = "0.0"
ProneMoveSpread     = "0.0"
Thx man!And one question , did you know were I can download new lasers?Because in assets is a mod called cool lasers but the download was deleted,i want a laser which is more realistic
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Weapon spread

Post by Kingpin »

Check the Battlefront Extreme (BFX) Assets.
Post Reply