SetDevMod Property

Usage:
   ObjectTemplate.SetDevMod number number number number

Argument values:

argument 1:    range is 0.6 to 1.9; most commonly 1.2
argument 2:    range is 0.5 to 1.5; most commonly 0.7, 0.85, 1.2
argument 3:    range is 0.01 to 1.0; most commonly 0.5
argument 4:    range is 0 to 0.9; most commonly 0.7

Description: This property modifies how a HandFireArms object fires depending on the soldier's stance (standing, crouching, prone). It modifies the deviance (in degrees); typically, a prone soldier is more accurate than one standing, so has a lower deviance modifier. The parameter positions mean:

 x - standing
 y - crouching
 z - prone

See the related properties for more information.

For Vietnam, there is a fourth argument, which is the devModZoomedFactor.

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

Used in object types (and how often in each type): HandFireArms (41%)

Used in a total of 39 .con files: Objects.con

Parent directory of these .con files: objects/HandWeapons

Example: (from objects/HandWeapons/K98RifleGrenade/Objects.con)
   rem ----------------------------------------------------------
   rem Firearm: K98RifleGrenade
   rem ----------------------------------------------------------
   ObjectTemplate.Create HandFireArms K98RifleGrenade
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ItemIndex 4
   ObjectTemplate.ProjectileTemplate K98RifleGrenadeProjectile
   ObjectTemplate.ProjectilePosition 0/0/0
   rem ObjectTemplate.visibleDummyProjectileTemplate K98RifleGrenadeAmmoDummy
   rem ObjectTemplate.addFirearmsPosition 0/0/1.5 0/0/0
   ObjectTemplate.MagSize 1
   ObjectTemplate.NumOfMag 6
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 2.75
   ObjectTemplate.RoundOfFire 1
   ObjectTemplate.FireOnce 1
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.AiTemplate K98RifleGrenadeAI
   ObjectTemplate.ZoomFov 0.4
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierZoomPosition -0.07/0/0
   ObjectTemplate.SoldierCameraPosition 0.03/0.01/-0.02
   ObjectTemplate.AddRootSpeed 0
   ObjectTemplate.AmmoType 2
   ObjectTemplate.AutoReload 1
   ObjectTemplate.GUIIndex 11
   ObjectTemplate.SetHudAmmoType ATIcon
   ObjectTemplate.SetAmmoIcon "Ammo/Ammobar_icon_RifleGranade_64x32.tga"
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetHasMag 1
   Rem *** Deviation Begin *****
   ObjectTemplate.Velocity 32
   ObjectTemplate.SetRecoilForceUp CRD_UNIFORM/1.2/1.2/0
   ObjectTemplate.SetRecoilForceLeftRight CRD_UNIFORM/-0.1/-0.3/0
   ObjectTemplate.SetHasRecoilForce 1
   ObjectTemplate.SetGoBackOnRecoil 1
   ObjectTemplate.CantSelectWhenNoAmmo 1
   ObjectTemplate.ChangeWeaponWhenNoAmmo 1
   ObjectTemplate.SetFireDev 0 0 0
   ObjectTemplate.SetDevMod 1 0.7 0.5
   ObjectTemplate.SetMinDev 0.25
   ObjectTemplate.SetTurnDev 0 0 0 0
   ObjectTemplate.SetSpeedDev 1.5 0.4 0.4 0.1
   ObjectTemplate.SetMiscDev 2.5 2.5 0.1
   Rem *** Deviation End *****
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.LoadSoundScript Sounds/GrenadeAllies.ssc
   rem ObjectTemplate.loadSoundScript Sounds/k98.ssc
   ObjectTemplate.CreateSkeleton animations/K98RifleGrenade.ske
   ObjectTemplate.UseSkeletonPartAsMain BaseK98
   ObjectTemplate.AddTemplate K98RifleGrenadeLod
   ObjectTemplate.AddTemplate e_MuzzGun
   ObjectTemplate.SetPosition 0/0.05/0.84
   ObjectTemplate.SetRotation 0/0/0


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