Usage:
ObjectTemplate.SetAmmoBarTextPosX
number
Argument values:
argument 1: | range is 5 to 8; most commonly 5 |
Description: For adjusting the X position of the ammo bar text number of bullets in the HUD. The spelling of this control is also (incorrectly) spelled SetAmomBarTextPosX; either is valid.
Related properties: SetAmmoBarPosX, SetAmmoBarPosY, AmmoBarTextPosY
Used in object types (and how often in each type): HandFireArms (4%)
Used in a total of 4 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/Shotgun/Objects.con)
rem ----------------------------------------------------------
rem Firearm: ShotGun
rem ----------------------------------------------------------
ObjectTemplate.Create HandFireArms Shotgun
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ItemIndex 3
ObjectTemplate.ProjectileTemplate ShotgunProjectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.MagSize 6
ObjectTemplate.NumOfMag 5
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 3
ObjectTemplate.RoundOfFire 1.5
ObjectTemplate.FireOnce 1
ObjectTemplate.AiTemplate ShotgunAI
ObjectTemplate.ZoomFov 0.7
ObjectTemplate.AltFireOnce 1
ObjectTemplate.GUIIndex 6
ObjectTemplate.SetHudAmmoType ATAmmoBar
ObjectTemplate.SetAmmoBar "Ingame/magbar_shotgun_empty_32x64.dds"
ObjectTemplate.SetAmmoBarFill "Ingame/magbar_shotgun_full_32x64.dds"
ObjectTemplate.SetAmmoBarSize 36
ObjectTemplate.SetAmmoBarPosX 6
ObjectTemplate.SetAmmoBarPosY -17
ObjectTemplate.SetAmmoBarTextPosX 5
ObjectTemplate.SetAmmoBarTextPosY 10
ObjectTemplate.SetCrossHairType CHTCrossHair
ObjectTemplate.AddFireArmsPosition 0/0.03/0 0/-1/0
ObjectTemplate.AddFireArmsPosition -0.03/0/0 -0.5/1/0
ObjectTemplate.AddFireArmsPosition 0.03/0/0 0.5/1/0
ObjectTemplate.AddFireArmsPosition -0.015/-0.03/0 -1/-0.5/0
ObjectTemplate.AddFireArmsPosition 0.015/-0.03/0 1/-0.5/0
ObjectTemplate.SoldierZoomFov 0.8
ObjectTemplate.SoldierZoomPosition -0.01/-0.01/0.1
ObjectTemplate.SoldierCameraPosition -0.02/-0.035/0.02
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.TimeToNotAllowChange 0.25
ObjectTemplate.SetBlastAmmoCount 1
rem *** Deviation Begin *****
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.Velocity 200
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 0.6 0.9 0.5
ObjectTemplate.SetDevMod 0.6 0.5 0.01
ObjectTemplate.SetMinDev 0.5
ObjectTemplate.SetTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 0.6 0.5 0.5 0.1
ObjectTemplate.SetMiscDev 0.6 0.6 0.1
rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/Shotgun.ssc
ObjectTemplate.CreateSkeleton animations/shotgun.ske
ObjectTemplate.UseSkeletonPartAsMain BaseAuto5
ObjectTemplate.AddTemplate ShotgunLod
ObjectTemplate.AddTemplate e_MuzzShotgun
ObjectTemplate.SetPosition 0/0.11/0.445
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_shell_Shotgun
ObjectTemplate.SetPosition 0/0.13/0.03
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.