AmmoBarSize Property [Vietnam]

Usage:
   ObjectTemplate.AmmoBarSize number

Argument values:

argument 1:    range is 58 to 64; most commonly 58

Description: This property is used exclusively in Battlefield Vietnam. Equivalent to SetAmmoBarSize.

Related properties: AmmoBar, AmmoBarFill, AmmoBarPosX, AmmoBarPosY, AmmoBarTextPosX, AmmoBarTextPosY, GUIIndex

Used in object types (and how often in each type): HandFireArms (37%)

Used in a total of 34 .con files: Objects.con

Parent directory of these .con files: vietnamObjects/HandWeapons

Example: (from vietnamObjects/HandWeapons/M91/Objects.con)
   rem ----------------------------------------------------------
   rem Firearm: M91
   rem ----------------------------------------------------------
   ObjectTemplate.Create HandFireArms M91
   ObjectTemplate.NetworkableInfo HandFireArmsInfo
   ObjectTemplate.ProjectileTemplate SniperProjectile
   rem ObjectTemplate.setTracerTemplate Tracer_Projectile CRD_UNIFORM/2/4/0
   ObjectTemplate.ProjectilePosition 0/0/0
   rem ObjectTemplate.unZoomBetweenFireTime 2
   ObjectTemplate.MagSize 5
   ObjectTemplate.NumOfMag 5
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 3
   ObjectTemplate.RoundOfFire 0.3
   ObjectTemplate.AiTemplate sniperAI
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.ZoomFov 0.3
   ObjectTemplate.FireOnce 1
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.SoldierZoomFov 0.6
   ObjectTemplate.SoldierCameraPosition 0.05/-0.04/0.05
   ObjectTemplate.AddRootSpeed 0
   ObjectTemplate.AmmoType 1
   ObjectTemplate.CrossHairType CHTCrossHair
   ObjectTemplate.UseScope 1
   ObjectTemplate.SniperSight 1
   ObjectTemplate.GUIIndex 3
   ObjectTemplate.SetHudAmmoType ATAmmoBar
   rem objectTemplate.primaryAmmoIcon "Ammo/Icon_bullet.tga"
   ObjectTemplate.AmmoBar "Menu/hud/Ammo_Meter_Box.tga"
   ObjectTemplate.AmmoBarFill "Menu/hud/Ammo_Meter_Box_full.tga"
   ObjectTemplate.AmmoBarSize 58
   ObjectTemplate.AmmoBarPosX -187
   ObjectTemplate.AmmoBarPosY 36
   ObjectTemplate.AmmoBarTextPosX 52
   ObjectTemplate.AmmoBarTextPosY -1
   Rem *** Deviation Begin *****
   rem ** FireDev how 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.Velocity 2000
   ObjectTemplate.SetHasRecoilForce 1
   ObjectTemplate.SetGoBackOnRecoil 1
   ObjectTemplate.SetRecoilForceUp CRD_UNIFORM/1.3/2.6/0
   ObjectTemplate.SetRecoilForceLeftRight CRD_UNIFORM/-0.1/-0.5/0
   ObjectTemplate.SetHasRecoilForce 1
   ObjectTemplate.SetGoBackOnRecoil 1
   ObjectTemplate.SetFireDev 3.0 9 0.04
   ObjectTemplate.SetDevMod 0.9 0.5 0.1 0
   ObjectTemplate.SetMinDev 0.15
   ObjectTemplate.SetTurnDev 0.85 0.2 0.2 0.175
   ObjectTemplate.SetSpeedDev 2.1 1.2 1.1 0.1
   ObjectTemplate.SetMiscDev 3.0 0.3 0.3
   Rem *** Deviation End *****
   ObjectTemplate.FireInCameraDof 1
   ObjectTemplate.LoadSoundScript Sounds/M91.ssc
   ObjectTemplate.CreateSkeleton animations/M91.ske
   ObjectTemplate.UseSkeletonPartAsMain base
   ObjectTemplate.AddTemplate M91Lod
   ObjectTemplate.AddTemplate e_MuzzM91
   rem ObjectTemplate.inputId -1
   rem ObjectTemplate.startOnEffects 0
   ObjectTemplate.SetPosition 0/0.045/0.745
   ObjectTemplate.SetRotation 0/0/0
   ObjectTemplate.AddTemplate e_shellAk47
   rem ObjectTemplate.inputId -1
   rem 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.