Usage:
ObjectTemplate.SetAmmoBarPosY
number
Argument values:
argument 1: | range is -17 to -11; most commonly -17 |
Description: For adjusting the Y position of the ammo bar image in the HUD. The spelling of this control is also (incorrectly) spelled SetAmomBarPosY; either is valid.
Related properties: SetAmmoBarPosX, AmmoBarTextPosX, AmmoBarTextPosY
Used in object types (and how often in each type): HandFireArms (5%)
Used in a total of 5 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/M1Garand/Objects.con)
ObjectTemplate.Create HandFireArms M1Garand
ObjectTemplate.ItemIndex 3
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ProjectileTemplate M1GarandProjectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 8
ObjectTemplate.NumOfMag 4
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 4.0
ObjectTemplate.RoundOfFire 3.2
rem ObjectTemplate.roundOfFire 4
ObjectTemplate.AiTemplate M1GarandAI
ObjectTemplate.ZoomFov 0.6
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.FireOnce 1
ObjectTemplate.AltFireOnce 1
ObjectTemplate.SoldierZoomFov 0.8
ObjectTemplate.SoldierZoomPosition -0.04/-0.03/0
ObjectTemplate.SoldierCameraPosition -0.02/-0.03/0.01
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.AutoReload 0
ObjectTemplate.AllowReloadOnEmptyClipOnly 1
ObjectTemplate.EjectClipTime 0.6
ObjectTemplate.GUIIndex 3
ObjectTemplate.SetHudAmmoType ATAmmoBar
ObjectTemplate.SetAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
ObjectTemplate.SetAmmoBarSize 20
ObjectTemplate.SetAmmoBarPosX 6
ObjectTemplate.SetAmmoBarPosY -17
ObjectTemplate.SetAmmoBarTextPosX 5
ObjectTemplate.SetAmmoBarTextPosY 10
ObjectTemplate.SetCrossHairType CHTCrossHair
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 1.8 0.3 0.08
rem ObjectTemplate.setFireDev 1.8 0.25 0.03
ObjectTemplate.SetDevMod 1 0.7 0.5
rem ObjectTemplate.setDevMod 1 0.7 0.5
ObjectTemplate.SetMinDev 0.25
ObjectTemplate.SetTurnDev 0.3 0.2 0.2 0.1
rem ObjectTemplate.setTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 1.3 0.4 0.4 0.2
rem ObjectTemplate.setSpeedDev 1.2 0.3 0.3 0.1
ObjectTemplate.SetMiscDev 1.8 1.8 0.1
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/M1Garand.ssc
ObjectTemplate.CreateSkeleton animations/M1Garand.ske
ObjectTemplate.UseSkeletonPartAsMain Base
rem *** LodObject must be located as first child to work on handweapons.
ObjectTemplate.AddTemplate M1GarandLod
ObjectTemplate.AddTemplate e_MuzzGun
ObjectTemplate.SetPosition 0/0.05/0.84
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_shellM1Garand
ObjectTemplate.SetPosition 0/0.1/0.41
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.