Shotgun .odf properties questions [solved]

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
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Shotgun .odf properties questions [solved]

Post by YaNkFaN »

I'm trying to make a shotgun that fires 1 round of 8 bullets and then has to reload here is the com_weap_inf_shotgun.odf I've tried editing the round per clip to 1 the salvo count to 8 and the shots per salvo to 8 can anyone help me out with what numbers to change to what
Hidden/Spoiler:
[code][WeaponClass]
ClassLabel = "cannon"

[Properties]
ScoreForMedalsType = 5
MedalsTypeToLock = 5

AnimationBank = "rifle"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RoundsPerClip = "1"
ReloadTime = "0.80"

SecondaryOrdnanceName = "com_weap_inf_shotgun_tracer"
SecondaryOrdnancePeriod = 1

ZoomMin = "2.0"
ZoomMax = "2.0"
ZoomRate = "0.0"

TriggerSingle = "1"
ShotDelay = "1.0"

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"

LockOnRange = "40.0"
LockTime = "0.0"
AutoAimSize = "1.0"

MinRange = "0"
OptimalRange = "24"
MaxRange = "48"
AIUseBubbleCircle = "1"
AIBubbleSizeMultiplier = "1.25"

SalvoCount = "8"
ShotsPerSalvo = "8"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"
[/code]
Last edited by YaNkFaN on Mon May 18, 2009 5:50 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Shotgun .odf properties questions

Post by Fiodis »

What results did you get with the changes you described?

Change the salvo count to 1, the shots per salvo keep as 8, and rounds per clip as 1. At the moment you have 8 salvos X 8 shots each = 64 shots. Ouch.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Shotgun .odf properties questions

Post by YaNkFaN »

actually the results i got were quite different it shot one shot with reloading everytime i took a shot
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Shotgun .odf properties questions

Post by AQT »

If you change the RoundsPerClip to let say 32 then you'll get four shots (8 salvos each) before reloading. You should also change SalvoCount or ShotsPerSalvo to one because the amount of bolts fired at once is product of these two values.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Shotgun .odf properties questions

Post by Fiodis »

AQT wrote:If you change the RoundsPerClip to let say 32 then you'll get four shots (8 salvos each) before reloading. You should also change SalvoCount or ShotsPerSalvo to one because the amount of bolts fired at once is product of these two values.
More or less what I said, except I didn't know one salvo with eight shots = eight rounds. I thought 1 salvo with however many shots = 1 round. Eh.
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: Shotgun .odf properties questions

Post by Bantha55 »

So you want a shotgun that can fire one shot, then reload?

RoundsPerClip = How many shots are in ONE ammo clip. (After clip is empty > reload)
SalvoCount = How many salvos are fired in a row. For example the proton torpedoes in shipped space maps fire two salvos. (Know what I mean?)
ShotsPerSalvo = How many shots will be fired per salvo. (SalvoCount=2 , ShotsPerSalvo=1 >>> two shots are fired one by one.)
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Shotgun .odf properties questions

Post by YaNkFaN »

thanks guys it's been solved
Post Reply