RecoilSpeed Property

Usage:
   ObjectTemplate.RecoilSpeed number

Argument values:

argument 1:    range is 6 to 50.0; most commonly 10

Description: How fast a gun recoils. Used for the barrels of machineguns, tanks, artillery, A-T gun, and twice (in an odd way) in the Yamato (but not any other ships).

Typical values: 50 for machineguns, 10 for almost everything else (30 for M3Grant gun, 6/7 for Yamato).

Related properties: MagSize, NumOfMag, ProjectilePosition, ProjectileTemplate, Reloadtime, RecoilSize, RoundOfFire

Used in object types (and how often in each type): FireArms (40%)

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

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

Example: (from objects/Stationary_Weapons/Coaxial_Mg42/Objects.con)
   ObjectTemplate.Create FireArms Coaxial_MG42
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.SetNetworkableInfo Coaxial_MG42_Info
   ObjectTemplate.SaveInSeparateFile 1
   rem ObjectTemplate.geometry MG42_m1
   ObjectTemplate.ProjectileTemplate MG42_Projectile
   ObjectTemplate.SetTracerTemplate Tracer_Projectile CRD_NONE/2/0/0
   ObjectTemplate.ProjectilePosition 0/0/0.2
   ObjectTemplate.MagSize 400
   ObjectTemplate.NumOfMag 1
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 0.1
   ObjectTemplate.RecoilSpeed 50.0
   ObjectTemplate.RoundOfFire 12
   ObjectTemplate.AutoReload 1
   ObjectTemplate.AiTemplate Coaxial_MG42AI
   rem ObjectTemplate.positionalSpeedInDof CRD_NONE/600/0/0
   rem ObjectTemplate.positionalSpeedInUp CRD_UNIFORM/-0.04/0.04/0
   rem ObjectTemplate.positionalSpeedInRight CRD_UNIFORM/-0.04/0.04/0
   Rem *** Deviation Begin *****
   ObjectTemplate.Velocity 1000
   ObjectTemplate.SetFireDev 1.9 0.26 0.05
   ObjectTemplate.SetMinDev 0.75
   Rem *** Deviation End *****
   ObjectTemplate.HeatAddWhenFire 0.05
   ObjectTemplate.CoolDownPerSec 0.3
   ObjectTemplate.TimeDelayOnOverHeat 2
   ObjectTemplate.SetInputFire c_PIAltFire
   rem ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.10/0.14/-0.65 0/120/90
   rem ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.12/0.12/-0.65 0/-80/-45
   ObjectTemplate.AddTemplate e_MuzzB17
   ObjectTemplate.Startoneffects 1
   ObjectTemplate.SetPosition 0/0.1/1
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_shell792mm
   ObjectTemplate.Startoneffects 1
   ObjectTemplate.SetPosition 0.01/0.07/0.37
   ObjectTemplate.SetRotation 0/0/0
   rem *** Sound Browning ***
   ObjectTemplate.LoadSoundScript Sounds/mg42.ssc


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