Usage:
ObjectTemplate.CantSelectWhenNoAmmo
boolean
Argument values:
argument 1: | 1; most commonly 1 |
Description: When set, this means that if the weapon has no ammo, it cannot be selected by the soldier. In BF 1942 this applies to grenades, mines, and exppacks.
Related properties: ChangeWeaponWhenNoAmmo, FireInCameraDof
Used in object types (and how often in each type): HandFireArms (24%)
Used in a total of 23 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/GrenadeAllies/Objects.con)
ObjectTemplate.Create HandFireArms GrenadeAllies
ObjectTemplate.ItemIndex 4
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.ProjectileTemplate GrenadeAlliesProjectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.ForceOnExplosion 10
ObjectTemplate.MagSize 3
ObjectTemplate.NumOfMag 1
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 2
ObjectTemplate.RoundOfFire 1
ObjectTemplate.FireOnce 1
rem ObjectTemplate.altFireOnce 1
ObjectTemplate.HasArmor 1
ObjectTemplate.Material 70
ObjectTemplate.Hitpoints 10000
ObjectTemplate.Maxhitpoints 10000
ObjectTemplate.AmmoType 2
ObjectTemplate.AutoReload 1
ObjectTemplate.GUIIndex 13
ObjectTemplate.SetHudAmmoType ATIconAndStrengthBar
ObjectTemplate.SetAmmoIcon "Ammo/Icon_grenadeallies_64x32.tga"
ObjectTemplate.SetCrossHairType CHTIcon
ObjectTemplate.SetHasMag 0
ObjectTemplate.RotationalSpeed 8/0/0
ObjectTemplate.Velocity 25
ObjectTemplate.MinDeviation 0
ObjectTemplate.MaxDeviation 0.08
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.HideDuringFireTime 0.4
ObjectTemplate.FireDelay 1
ObjectTemplate.AiTemplate GrenadeAlliesAI
ObjectTemplate.SoldierCameraPosition 0/-0.03/0.2
ObjectTemplate.CantSelectWhenNoAmmo 1
ObjectTemplate.ChangeWeaponWhenNoAmmo 1
ObjectTemplate.VelocityDependentOnHeat 1
ObjectTemplate.HeatAddWhenFire 0.03
rem ObjectTemplate.coolDownPerSec 0.05
ObjectTemplate.ChangeWeaponWhenNoAmmo 1
ObjectTemplate.CreateSkeleton animations/GrenadeAllies.ske
ObjectTemplate.UseSkeletonPartAsMain Base
ObjectTemplate.AddTemplate GrenadeAlliesLod
ObjectTemplate.LoadSoundScript Sounds/GrenadeAllies.ssc
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.