SetFireDev Property

Usage:
   ObjectTemplate.SetFireDev number number number

Argument values:

argument 1:    range is 0 to 10.0; most commonly 1.9
argument 2:    range is 0 to 10; most commonly 0.26
argument 3:    range is 0 to 0.5; most commonly 0.05

Description: How much deviance should be added when you fire. The arguments mean:

 x - the base deviance of a shot
 y - amount added per shot
 z - amount reduced per server-frame (30 per second)

For example, the BAR 1918 is:

 ObjectTemplate.SetFireDev 3.5 0.25 0.03

so the shot itself have a deviance of 3.5, each preceeding shot adds 0.25 to this deviance (so a burst of fire has each successive shot be less accurate), and 0.03 is how much deviance is subtracted each server frame (30 per second) from that added by previous shots.

The sniper/engineer rifles are all:

 ObjectTemplate.SetFireDev 0 0 0

so have no deviation due to firing.

All x-values (maximum deviation) of SetFireDev, SetMiscDev, SetSpeedDev, and SetTurnDev are added together.

Related properties: SetDevMod, SetMinDev, SetMiscDev, SetSpeedDev, SetTurnDev

Used in object types (and how often in each type): FireArms (15%), HandFireArms (46%)

Used in a total of 65 .con files: Objects.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/HandWeapons

Example: (from objects/Stationary_Weapons/Browning/Objects.con)
   ObjectTemplate.Create FireArms Browning
   ObjectTemplate.SetNetworkableInfo Vehicle_Browning_Info
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.Geometry RiBro_Body_m1
   ObjectTemplate.AiTemplate Browning
   ObjectTemplate.ProjectileTemplate Browning_Projectile
   ObjectTemplate.SetTracerTemplate Tracer_Projectile CRD_NONE/2/0/0
   ObjectTemplate.ProjectilePosition 0/0/1
   ObjectTemplate.MagSize 500
   ObjectTemplate.NumOfMag 1
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 0.1
   ObjectTemplate.RecoilSpeed 50.0
   ObjectTemplate.RoundOfFire 10
   ObjectTemplate.AutoReload 1
   ObjectTemplate.AddDevFire 0
   ObjectTemplate.SetFireCameraShakeAnimationState FireMachineGunShake
   Rem *** Deviation Begin *****
   ObjectTemplate.Velocity 1000
   ObjectTemplate.SetFireDev 0.7 0.3 0.048
   ObjectTemplate.SetMinDev 0.5
   Rem *** Deviation End *****
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.HeatAddWhenFire 0.04
   ObjectTemplate.CoolDownPerSec 0.4
   ObjectTemplate.TimeDelayOnOverHeat 2
   ObjectTemplate.AddSkeletonIK Bip01_R_Hand 0.12/0.08/-0.68 -30/80/90
   ObjectTemplate.AddSkeletonIK Bip01_L_Hand -0.12/0.08/-0.68 30/-100/-90
   ObjectTemplate.AddTemplate e_MuzzHeavy
   ObjectTemplate.Startoneffects 1
   ObjectTemplate.SetPosition 0/0.1/0.8
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_Shell1250mm
   ObjectTemplate.Startoneffects 1
   ObjectTemplate.SetPosition 0/0.12/0.16
   ObjectTemplate.SetRotation 0/0/0
   rem *** Sound Browning ***
   ObjectTemplate.LoadSoundScript Sounds/Browning.ssc


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.