AmmoType Property

Usage:
   ObjectTemplate.AmmoType number

Argument values:

argument 1:    range is 1 to 15; most commonly 1

Description: Ammo type sets the type of ammo the weapon uses:

1 - rifles, handguns, SMGs
2 - exppack, landmine
3 - bazooka, Calliope tank shells
6 - jeep and scout car horn
7 - axis bombs
8 - MG42, axis plane guns
9 - allied bombs, Junkers bombs
10 - Browning MG, allied plane guns, Junkers' belly gun
14 - PT boat machineguns
15 - PT boat torpedoes

This characteristic is mostly important for resupply, as ammo boxes and airfields have only certain types of ammunition available. See AddAmmoType.

Related properties: AddAmmoType

Used in object types (and how often in each type): FireArms (60%), HandFireArms (78%), Projectile (1%)

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

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

Example: (from objects/HandWeapons/BrenLMG/Objects.con)
   ObjectTemplate.Create HandFireArms BrenLMG
   ObjectTemplate.ItemIndex 3
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ProjectileTemplate barProjectile
   rem ObjectTemplate.setTracerTemplate Tracer_Projectile CRD_UNIFORM/2/4/0
   ObjectTemplate.ProjectilePosition 0/0/0
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.MagSize 30
   ObjectTemplate.NumOfMag 5
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 4.3
   ObjectTemplate.RoundOfFire 9
   ObjectTemplate.GUIIndex 7
   ObjectTemplate.SetHudAmmoType ATAmmoBar
   ObjectTemplate.SetAmmoBar "Ingame/Magbar_Sg44_empty_32x64.tga"
   ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Sg44_full_32x64.tga"
   ObjectTemplate.SetAmmoBarSize 64
   ObjectTemplate.SetAmmoBarPosX 3
   ObjectTemplate.SetAmmoBarPosY -11
   ObjectTemplate.SetAmmoBarTextPosX 8
   ObjectTemplate.SetAmmoBarTextPosY 4
   ObjectTemplate.SetCrossHairType CHTCrossHair
   ObjectTemplate.AiTemplate BrenLMGAI
   ObjectTemplate.ZoomFov 0.6
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierZoomPosition 0.05/-0.05/0.15
   ObjectTemplate.SoldierCameraPosition 0.02/-0.04/0.09
   ObjectTemplate.AddRootSpeed 0
   ObjectTemplate.AmmoType 1
   rem ObjectTemplate.allowReloadOnEmptyClipOnly 1
   ObjectTemplate.MinDamage 0.5
   ObjectTemplate.DistToStartLoseDamage 50
   ObjectTemplate.DistToMinDamage 100
   rem ObjectTemplate.autoReload 1
   Rem *** Deviation Begin *****
   ObjectTemplate.Velocity 1000
   ObjectTemplate.SetRecoilForceUp CRD_UNIFORM/0.28/0.32/0
   ObjectTemplate.SetRecoilForceLeftRight CRD_UNIFORM/-0.2/0.2/0
   ObjectTemplate.SetHasRecoilForce 1
   ObjectTemplate.SetGoBackOnRecoil 1
   rem ** FireDev harge large a reticule/how quickly it expands/how quickly it returns
   rem ** setDevMod(float devModStand, float devModCrouch, float devModLie)
   rem ** Mindev sets the size of the reticule/deviation of bullets
   rem ** Turndev setTurnDev(float max, float addPitch, float addYaw, float sub)
   rem ** SpeedDev setSpeedDev(float max, float addForward, float addStrafe, float sub)
   rem ** MiscDev setMiscDev(float max, float addJump, float sub)
   ObjectTemplate.SetFireDev 3.6 0.3 0.05
   ObjectTemplate.SetDevMod 1.1 0.85 0.1
   ObjectTemplate.SetMinDev 0.7
   ObjectTemplate.SetTurnDev 0 0 0 0
   ObjectTemplate.SetSpeedDev 2.3 0.2 0.2 0.1
   ObjectTemplate.SetMiscDev 2.5 2.5 0.1
   Rem *** Deviation End *****
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.LoadSoundScript Sounds/brenLMG.ssc
   ObjectTemplate.CreateSkeleton animations/BrenLMG.ske
   ObjectTemplate.UseSkeletonPartAsMain Base
   ObjectTemplate.AddTemplate BrenLMGLod
   ObjectTemplate.AddTemplate e_MuzzThomp
   ObjectTemplate.SetPosition 0/0.03/0.6
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_Shell9mm
   ObjectTemplate.SetPosition 0/0.02/0.13
   ObjectTemplate.SetRotation 0/0/0


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