About
News
Tutorials
Tools
Tools Guide
Scripting
Forums
Contact
ammoType
ammoType <ammo type>
Ammo type allows you to set the type of ammo the weapon takes,
1 - rifles, handguns, SMGs
2 - exppack, landmine
3 - bazooka
7 - axis bombs
8 - MG42, axis plane guns
9 - allied bombs
10 - Browning MG, allied plane guns
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