Understanding Weapon Deviation Coding

In this example (from Desert Combat) the deviation settings are explained somewhat.

ObjectTemplate.create HandFireArms Ak47
ObjectTemplate.networkableInfo HandFireArmsInfo
ObjectTemplate.projectileTemplate Ak47Projectile
ObjectTemplate.setTracerTemplate GrnTracer_Short CRD_UNIFORM/2/4/0
ObjectTemplate.projectilePosition 0/0/0
ObjectTemplate.magSize 30
ObjectTemplate.numOfMag 5
ObjectTemplate.magType 0
ObjectTemplate.reloadtime 3.8
ObjectTemplate.roundOfFire 9
objectTemplate.aiTemplate multishotAI
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.zoomFov 0.5
ObjectTemplate.altFireOnce 1
ObjectTemplate.soldierZoomFov 0.6
ObjectTemplate.soldierZoomPosition -0.03/-0.04/0.0
ObjectTemplate.soldierCameraPosition -0.03/-0.04/0.0
ObjectTemplate.addRootSpeed 0
ObjectTemplate.ammoType 1

ObjectTemplate.GUIIndex 3
ObjectTemplate.setHudAmmoType ATAmmoBar
objectTemplate.ammoBar "Menu/hud/Ammo_Meter_Box.tga"
objectTemplate.ammoBarFill "Menu/hud/Ammo_Meter_Box_full.tga"
objectTemplate.ammoBarSize 58
ObjectTemplate.AmmoBarPosX -187
ObjectTemplate.AmmoBarPosY 36
ObjectTemplate.AmmoBarTextPosX 52
ObjectTemplate.AmmoBarTextPosY -1
ObjectTemplate.crossHairType CHTCrossHair

Rem *** Deviation Begin *****
rem ** FireDev harge large a reticule/how quickly it expands/how quickly it returns
rem ** setDevMod(float devModStand, float devModCrouch, float devModLie, float devModZoomedFactor)
rem ** Mindev sets the size of the reticule/deviation of bullets
rem ** Turndev setTurnDev(float max, float addPitch, float addYaw, float sub)
rem ** SpeedDev setSpeedDev(float max, float addForward, float addStrafe, float sub)
rem ** MiscDev setMiscDev(float max, float addJump, float sub)

ObjectTemplate.velocity 1600
ObjectTemplate.setRecoilForceUp CRD_UNIFORM/0.6/0.25/0
ObjectTemplate.setRecoilForceLeftRight CRD_UNIFORM/-0.2/0.2/0
ObjectTemplate.setHasRecoilForce 1
ObjectTemplate.setGoBackOnRecoil 1
ObjectTemplate.setFireDev 2.5 0.85 0.15
ObjectTemplate.setDevMod 1.1 1.0 0.9 0.8
ObjectTemplate.setMinDev 0.6
ObjectTemplate.setTurnDev 0.9 0.2 0.2 0.175
ObjectTemplate.setSpeedDev 0.9 0.2 0.2 0.1
ObjectTemplate.setMiscDev 2.5 0.7 0.1

Rem *** Deviation End *****