HandFireArms Type
The HandFireArms object type is created by ObjectTemplate.Create.
The HandFireArms type is used to create new hand weapons.
Used in a total of 92 .con files: Objects.con Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/M1Garand/Objects.con) Properties used with this type of object: Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.
ObjectTemplate.Create HandFireArms M1Garand
ObjectTemplate.ItemIndex 3
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ProjectileTemplate M1GarandProjectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 8
ObjectTemplate.NumOfMag 4
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 4.0
ObjectTemplate.RoundOfFire 3.2
rem ObjectTemplate.roundOfFire 4
ObjectTemplate.AiTemplate M1GarandAI
ObjectTemplate.ZoomFov 0.6
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.FireOnce 1
ObjectTemplate.AltFireOnce 1
ObjectTemplate.SoldierZoomFov 0.8
ObjectTemplate.SoldierZoomPosition -0.04/-0.03/0
ObjectTemplate.SoldierCameraPosition -0.02/-0.03/0.01
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.AutoReload 0
ObjectTemplate.AllowReloadOnEmptyClipOnly 1
ObjectTemplate.EjectClipTime 0.6
ObjectTemplate.GUIIndex 3
ObjectTemplate.SetHudAmmoType ATAmmoBar
ObjectTemplate.SetAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
ObjectTemplate.SetAmmoBarSize 20
ObjectTemplate.SetAmmoBarPosX 6
ObjectTemplate.SetAmmoBarPosY -17
ObjectTemplate.SetAmmoBarTextPosX 5
ObjectTemplate.SetAmmoBarTextPosY 10
ObjectTemplate.SetCrossHairType CHTCrossHair
Rem *** Deviation Begin *****
ObjectTemplate.Velocity 1000
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.SetFireDev 1.8 0.3 0.08
rem ObjectTemplate.setFireDev 1.8 0.25 0.03
ObjectTemplate.SetDevMod 1 0.7 0.5
rem ObjectTemplate.setDevMod 1 0.7 0.5
ObjectTemplate.SetMinDev 0.25
ObjectTemplate.SetTurnDev 0.3 0.2 0.2 0.1
rem ObjectTemplate.setTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 1.3 0.4 0.4 0.2
rem ObjectTemplate.setSpeedDev 1.2 0.3 0.3 0.1
ObjectTemplate.SetMiscDev 1.8 1.8 0.1
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/M1Garand.ssc
ObjectTemplate.CreateSkeleton animations/M1Garand.ske
ObjectTemplate.UseSkeletonPartAsMain Base
rem *** LodObject must be located as first child to work on handweapons.
ObjectTemplate.AddTemplate M1GarandLod
ObjectTemplate.AddTemplate e_MuzzGun
ObjectTemplate.SetPosition 0/0.05/0.84
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_shellM1Garand
ObjectTemplate.SetPosition 0/0.1/0.41
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddDevFire
ObjectTemplate.AddDevJump
ObjectTemplate.AddDevPitch
ObjectTemplate.AddDevRun
ObjectTemplate.AddDevStrafe
ObjectTemplate.AddDevWalk
ObjectTemplate.AddDevYaw
ObjectTemplate.AddFireArmsPosition
ObjectTemplate.AddRootSpeed
ObjectTemplate.AddTemplate
ObjectTemplate.AiTemplate
ObjectTemplate.AllowReloadOnEmptyClipOnly
ObjectTemplate.AltFireOnce
ObjectTemplate.Altweapon
ObjectTemplate.AltWeaponindex
ObjectTemplate.AmmoBar
ObjectTemplate.AmmoBarFill
ObjectTemplate.AmmoBarPosX
ObjectTemplate.AmmoBarPosY
ObjectTemplate.AmmoBarSize
ObjectTemplate.AmmoBarTextPosX
ObjectTemplate.AmmoBarTextPosY
ObjectTemplate.AmmoIcon
ObjectTemplate.AmmoType
ObjectTemplate.AutoReload
ObjectTemplate.BlastAmmoCount
ObjectTemplate.CantSelectWhenNoAmmo
ObjectTemplate.ChangeWeaponWhenNoAmmo
ObjectTemplate.Create
ObjectTemplate.CreateProjectilesOnDemand
ObjectTemplate.CreateSkeleton
ObjectTemplate.CrossHairType
ObjectTemplate.DetectionTime
ObjectTemplate.DetonateAltWeapon
ObjectTemplate.DisarmMinesDistance
ObjectTemplate.DistToMinDamage
ObjectTemplate.DistToStartLoseDamage
ObjectTemplate.EjectClipTime
ObjectTemplate.FireDelay
ObjectTemplate.FireInCameraDof
ObjectTemplate.FireOnce
ObjectTemplate.ForceOnExplosion
ObjectTemplate.GUIIndex
ObjectTemplate.HasArmor
ObjectTemplate.HasDynamicShadow
ObjectTemplate.HasMag
ObjectTemplate.HealDistance
ObjectTemplate.HealFactor
ObjectTemplate.HeatAddWhenFire
ObjectTemplate.HideDuringFireTime
ObjectTemplate.Hitpoints
ObjectTemplate.InputFire
ObjectTemplate.ItemIndex
ObjectTemplate.LoadSoundScript
ObjectTemplate.MagSize
ObjectTemplate.MagType
ObjectTemplate.Material
ObjectTemplate.MaxDeviation
ObjectTemplate.MaxHeatTTL
ObjectTemplate.Maxhitpoints
ObjectTemplate.MinDamage
ObjectTemplate.MinDevCrouching
ObjectTemplate.MinDeviation
ObjectTemplate.MinDevLying
ObjectTemplate.MinDevStanding
ObjectTemplate.NetworkableInfo
ObjectTemplate.NumOfMag
ObjectTemplate.Projectile2Template
ObjectTemplate.ProjectilePosition
ObjectTemplate.ProjectileTemplate
ObjectTemplate.ProjectileVisible
ObjectTemplate.Reloadtime
ObjectTemplate.RepairDistance
ObjectTemplate.RepairFactor
ObjectTemplate.RotationalSpeed
ObjectTemplate.RoundOfFire
ObjectTemplate.ScopeIcon
ObjectTemplate.SelfHealFactor
ObjectTemplate.SetAmmoBar
ObjectTemplate.SetAmmoBarFill
ObjectTemplate.SetAmmoBarPosX
ObjectTemplate.SetAmmoBarPosY
ObjectTemplate.SetAmmoBarSize
ObjectTemplate.SetAmmoBarTextPosX
ObjectTemplate.SetAmmoBarTextPosY
ObjectTemplate.SetAmmoIcon
ObjectTemplate.SetAmomBarPosX
ObjectTemplate.SetAmomBarPosY
ObjectTemplate.SetAmomBarTextPosX
ObjectTemplate.SetAmomBarTextPosY
ObjectTemplate.SetBlastAmmoCount
ObjectTemplate.SetCrossHairType
ObjectTemplate.SetDevMod
ObjectTemplate.SetFireDev
ObjectTemplate.SetGoBackOnRecoil
ObjectTemplate.SetHasMag
ObjectTemplate.SetHasRecoilForce
ObjectTemplate.SetHudAmmoType
ObjectTemplate.SetInputId
ObjectTemplate.SetMinDev
ObjectTemplate.SetMiscDev
ObjectTemplate.SetPosition
ObjectTemplate.SetRecoilForceLeftRight
ObjectTemplate.SetRecoilForceUp
ObjectTemplate.SetRotation
ObjectTemplate.SetScopeIcon
ObjectTemplate.SetSightIcon
ObjectTemplate.SetSniperSight
ObjectTemplate.SetSpeedDev
ObjectTemplate.SetStartOnEffects
ObjectTemplate.SetTracerTemplate
ObjectTemplate.SetTurnDev
ObjectTemplate.SetWeaponLink
ObjectTemplate.SightIcon
ObjectTemplate.SniperSight
ObjectTemplate.SoldierCameraPosition
ObjectTemplate.SoldierZoomFov
ObjectTemplate.SoldierZoomPosition
ObjectTemplate.StartingMag
ObjectTemplate.Startoneffects
ObjectTemplate.SubDev
ObjectTemplate.SubDevCrouching
ObjectTemplate.SubDevLying
ObjectTemplate.SubDevStanding
ObjectTemplate.TimeToNotAllowChange
ObjectTemplate.TTLDependentOnHeat
ObjectTemplate.UnZoomBetweenFireTime
ObjectTemplate.UseScope
ObjectTemplate.UseSkeletonPartAsMain
ObjectTemplate.Velocity
ObjectTemplate.VelocityDependentOnHeat
ObjectTemplate.ZoomFov