Usage:
ObjectTemplate.SetAmomBarPosY
number
Argument values:
argument 1: | range is -17 to -11; most commonly -11 |
Description: DEPRECATED! For adjusting the Y position of the ammo bar image in the HUD. The spelling of this control was corrected to SetAmmoBarPosX; either is valid, but the other is preferable.
Related properties: SetAmmoBarPosX, SetAmmoBarPosY, AmmoBarTextPosX, AmmoBarTextPosY
Used in object types (and how often in each type): HandFireArms (19%)
Used in a total of 16 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/Type99/Objects.con)
ObjectTemplate.Create HandFireArms Type99
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 20
ObjectTemplate.NumOfMag 6
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 4.0
ObjectTemplate.RoundOfFire 8
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.SetAmomBarPosX 3
ObjectTemplate.SetAmomBarPosY -11
ObjectTemplate.SetAmomBarTextPosX 8
ObjectTemplate.SetAmomBarTextPosY 4
ObjectTemplate.SetCrossHairType CHTCrossHair
ObjectTemplate.AiTemplate Type99AI
ObjectTemplate.ZoomFov 0.6
ObjectTemplate.AltFireOnce 1
ObjectTemplate.SoldierZoomFov 0.6
ObjectTemplate.SoldierZoomPosition -0.05/0.02/0.06
ObjectTemplate.SoldierCameraPosition -0.01/-0.04/0.09
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 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 0
ObjectTemplate.SetFireDev 3.0 0.25 0.03
ObjectTemplate.SetDevMod 1.0 0.85 0.5
ObjectTemplate.SetMinDev 0.5
ObjectTemplate.SetTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 1.8 0.2 0.2 0.1
ObjectTemplate.SetMiscDev 2.5 2.5 0.1
`
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/Type99.ssc
ObjectTemplate.CreateSkeleton animations/Type99.ske
ObjectTemplate.UseSkeletonPartAsMain Type99Base
ObjectTemplate.AddTemplate Type99Lod
ObjectTemplate.AddTemplate e_MuzzSG44
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 0
ObjectTemplate.SetPosition 0/0.04/0.70
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_Shell9mm
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 0
ObjectTemplate.SetPosition 0.02/0.06/0.17
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.