AltFireOnce Property

Usage:
   ObjectTemplate.AltFireOnce boolean

Argument values:

argument 1:    1, c_True; most commonly 1

Description: When AltFireOnce is set to 1, the alternate weapon (normally activated with the right mouse button) will fire only once if the right mouse button is held down. If not set, holding down the right mouse button will continuously fire the weapon.

Related properties: FireOnce

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

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

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

Example: (from objects/HandWeapons/EliteKnife/Objects.con)
   ObjectTemplate.Create HandFireArms EliteKnife
   ObjectTemplate.ItemIndex 1
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ProjectileTemplate EliteKnifeThrowProjectile
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.MagSize 5
   ObjectTemplate.NumOfMag 1
   ObjectTemplate.MagType 0
   ObjectTemplate.FireDelay 0.43
   ObjectTemplate.Reloadtime 1
   ObjectTemplate.RoundOfFire 2
   ObjectTemplate.FireOnce c_True
   ObjectTemplate.AltFireOnce c_True
   ObjectTemplate.GUIIndex 82
   ObjectTemplate.AutoReload 1
   ObjectTemplate.SetHudAmmoType ATIcon
   ObjectTemplate.SetAmmoIcon "Ammo/Ammobar_icon_EliteKnife_64x32.tga"
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetHasMag 0
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.LoadSoundScript Sounds/knife.ssc
   ObjectTemplate.SoldierCameraPosition 0/-0.03/0.1
   ObjectTemplate.AiTemplate EliteKnifeThrowAI
   ObjectTemplate.RotationalSpeed 8/0/0
   ObjectTemplate.Velocity 30
   ObjectTemplate.CantSelectWhenNoAmmo 1
   ObjectTemplate.ChangeWeaponWhenNoAmmo 1
   ObjectTemplate.Hitpoints 10000
   ObjectTemplate.Maxhitpoints 10000
   ObjectTemplate.AmmoType 2
   rem -------------------------------------
   ObjectTemplate.CreateSkeleton animations/EliteKnife.ske
   ObjectTemplate.UseSkeletonPartAsMain Base
   ObjectTemplate.AddTemplate EliteKnifeLod
   rem -------------------------------------
   rem *** Used for Alternative fire stabing!
   ObjectTemplate.AddTemplate EliteKnifeStab


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