Usage:
ObjectTemplate.SetAmmoBarFill
image
Argument values:
argument 1: | "Ingame/Magbar_Bar_full_32x64.tga", "Ingame/Magbar_Pistol_full_32x64.tga", "Ingame/Magbar_Rifle_full_32x64.tga", "Ingame/Magbar_SMG_full_32x64.tga", "Ingame/Magbar_Sg44_full_32x64.tga", "Ingame/magbar_shotgun_full_32x64.dds" |
Description: Sets the icon to show the ammo clip, along with SetAmmoBar and SetAmmoBarSize. The filepath is relative to the Menu.rfa's Texture directory, e.g. "Ingame[/Magbar Pistol full 32x64].tga". It specifies the 32 wide by 64 high DDS (not Targa, despite the name) image of the full ammo level on the heads up display (i.e. in the lower right corner of the screen).
See SetHudAmmoType for more explanation, and the HUD Icon Tutorial for related information.
Related properties: SetHudAmmoType, SetAmmoBar, SetAmmoBarSize
Used in object types (and how often in each type): HandFireArms (25%)
Used in a total of 22 .con files: Objects.con
Parent directory of these .con files: objects/HandWeapons
Example: (from objects/HandWeapons/K98Bayonet/Objects.con)
rem ----------------------------------------------------------
rem Firearm: K98Bayonet
rem ----------------------------------------------------------
ObjectTemplate.Create HandFireArms K98Bayonet
ObjectTemplate.NetworkableInfo HandFireArmsInfo
ObjectTemplate.ItemIndex 1
ObjectTemplate.ProjectileTemplate k98Projectile
ObjectTemplate.ProjectilePosition 0/0/0
ObjectTemplate.MagSize 5
ObjectTemplate.NumOfMag 5
ObjectTemplate.MagType 0
ObjectTemplate.Reloadtime 1.6
ObjectTemplate.RoundOfFire 0.37
ObjectTemplate.FireOnce 1
ObjectTemplate.AltFireOnce 1
ObjectTemplate.AiTemplate K98AI
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.SoldierCameraPosition 0.02/-0.06/0.01
ObjectTemplate.AddRootSpeed 0
ObjectTemplate.AmmoType 1
ObjectTemplate.TimeToNotAllowChange 0.25
ObjectTemplate.GUIIndex 6
ObjectTemplate.SetHudAmmoType ATAmmoBar
ObjectTemplate.SetAmmoBar "Ingame/Magbar_Rifle_empty_32x64.tga"
ObjectTemplate.SetAmmoBarFill "Ingame/Magbar_Rifle_full_32x64.tga"
ObjectTemplate.SetAmmoBarSize 20
ObjectTemplate.SetAmomBarPosX 6
ObjectTemplate.SetAmomBarPosY -17
ObjectTemplate.SetAmomBarTextPosX 5
ObjectTemplate.SetAmomBarTextPosY 10
ObjectTemplate.SetCrossHairType CHTIcon
ObjectTemplate.SetWeaponLink 3
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 0 0 0
ObjectTemplate.SetDevMod 1 0.7 0.5
ObjectTemplate.SetMinDev 0.25
ObjectTemplate.SetTurnDev 0 0 0 0
ObjectTemplate.SetSpeedDev 1.5 0.4 0.4 0.1
ObjectTemplate.SetMiscDev 2.5 2.5 0.1
Rem *** Deviation End *****
ObjectTemplate.FireInCameraDof 1
ObjectTemplate.LoadSoundScript Sounds/K98.ssc
ObjectTemplate.CreateSkeleton animations/K98Bayonet.ske
ObjectTemplate.UseSkeletonPartAsMain BaseK98
ObjectTemplate.AddTemplate K98BayonetLod
rem *** Used for Alternativ fire stabbing!
ObjectTemplate.AddTemplate K98BayonetStabFireArm
ObjectTemplate.AddTemplate e_MuzzGun
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 0
ObjectTemplate.SetPosition 0/0.05/0.84
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate e_shell792D
ObjectTemplate.SetInputId -1
ObjectTemplate.Startoneffects 1
ObjectTemplate.SetPosition 0/0.05/0.41
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.