About
News
Tutorials
Tools
Tools Guide
Scripting
Forums
Contact
setHudAmmoType
setHudAmmoType <Hud type>
setHudAmmoType allows you to set the type of ammo user interface item you want.
ATAmmoBar - Rifles, Pistols, SMGs, Sniper rifles
ATIcon - Bazooka, Exppack, Detonator, Landmine
ATIconAndHeatBar - Medical pack
ATIconAndReloadBar - Rrepair pack
ATIconAndStrengthBar - Strength bar (see
HeatAddWhenFire
and
VelocityDependentOnHeat
)
ATNone - Knife, no ammo
Example:
ObjectTemplate.
create
HandFireArms
Sg44
ObjectTemplate.
itemIndex
3
ObjectTemplate.
networkableInfo
HandFireArmsInfo
ObjectTemplate.
projectileTemplate
sg44Projectile
ObjectTemplate.
projectilePosition
0/0/0
ObjectTemplate.
magSize
30
ObjectTemplate.
numOfMag
5
ObjectTemplate.
magType
0
ObjectTemplate.
reloadtime
3.8
ObjectTemplate.
roundOfFire
9
objectTemplate.
aiTemplate
SG44AI
ObjectTemplate.
hasDynamicShadow
1
ObjectTemplate.
zoomFov
0.5
ObjectTemplate.
altFireOnce
1
ObjectTemplate.
soldierZoomFov
0.6
ObjectTemplate.
soldierZoomPosition
-0.04/-0.01/0
ObjectTemplate.
soldierCameraPosition
-0.02/-0.04/0.03
ObjectTemplate.
addRootSpeed
0
ObjectTemplate.
ammoType
1
ObjectTemplate.
GUIIndex
3
ObjectTemplate.
setHudAmmoType
ATAmmoBar
ObjectTemplate.
setAmmoBar
"Ingame/Magbar_Sg44_empty_32x64.tga"
ObjectTemplate.
setAmmoBarFill
"Ingame/Magbar_Sg44_full_32x64.tga"
ObjectTemplate.
setAmmoBarSize
64
ObjectTemplate.
setAmmoBarPosX
3
ObjectTemplate.
setAmmoBarPosY
-11
ObjectTemplate.
setAmmoBarTextPosX
8
ObjectTemplate.
setAmmoBarTextPosY
4
Valid object types
HandFireArms