FireOnce Property

Usage:
   ObjectTemplate.FireOnce boolean

Argument values:

argument 1:    0, 1, c_True; most commonly 1

Description: When FireOnce is set to 1, the standard weapon (normally activated with the left mouse button) will fire only once if the left mouse button is held down. Examples are the bazooka and the sniper rifles. If not set, holding down the left mouse button will continuously fire the weapon.

Related properties: MagSize, MagType, NumOfMag, ProjectilePosition, Reloadtime

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

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

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

Example: (from objects/HandWeapons/No4/Objects.con)
   rem ----------------------------------------------------------
   rem Firearm: No4
   rem ----------------------------------------------------------
   ObjectTemplate.Create HandFireArms No4
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ItemIndex 3
   ObjectTemplate.ProjectileTemplate no4Projectile
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.MagSize 5
   ObjectTemplate.NumOfMag 5
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 1.6
   ObjectTemplate.RoundOfFire 0.37
   ObjectTemplate.FireOnce 1
   ObjectTemplate.AiTemplate No4AI
   ObjectTemplate.ZoomFov 0.4
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.GUIIndex 6
   ObjectTemplate.SetHudAmmoType ATAmmoBar
   ObjectTemplate.SetAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
   ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
   ObjectTemplate.SetAmmoBarSize 20
   ObjectTemplate.SetAmomBarPosX 6
   ObjectTemplate.SetAmomBarPosY -17
   ObjectTemplate.SetAmomBarTextPosX 5
   ObjectTemplate.SetAmomBarTextPosY 10
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierZoomPosition -0.07/0/0
   ObjectTemplate.SoldierCameraPosition -0.02/-0.03/0.01
   ObjectTemplate.AddRootSpeed 0
   ObjectTemplate.AmmoType 1
   ObjectTemplate.TimeToNotAllowChange 0.25
   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 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/no4.ssc
   ObjectTemplate.CreateSkeleton animations/No4.ske
   ObjectTemplate.UseSkeletonPartAsMain No4
   ObjectTemplate.AddTemplate No4Lod
   ObjectTemplate.AddTemplate e_MuzzGun
   ObjectTemplate.SetInputId -1
   ObjectTemplate.Startoneffects 0
   ObjectTemplate.SetPosition 0/0.045/0.745
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_Shell792D
   ObjectTemplate.SetInputId -1
   ObjectTemplate.Startoneffects 1
   ObjectTemplate.SetPosition 0/0.03/0.39
   ObjectTemplate.SetRotation 0/0/0


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