https://pilot51.com/w/index.php?title=ObjectTemplate.SetSecondaryAmmoIcon&feed=atom&action=historyObjectTemplate.SetSecondaryAmmoIcon - Revision history2024-03-29T15:43:17ZRevision history for this page on the wikiMediaWiki 1.35.2https://pilot51.com/w/index.php?title=ObjectTemplate.SetSecondaryAmmoIcon&diff=632&oldid=prevPilot 51: New page: == MDT description == This is one of a few related properties. These are: ObjectTemplate.SetNumberOfWeaponIcons # ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_*.tga" ObjectTemplate....2008-11-17T22:59:30Z<p>New page: == MDT description == This is one of a few related properties. These are: ObjectTemplate.SetNumberOfWeaponIcons # ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_*.tga" ObjectTemplate....</p>
<p><b>New page</b></p><div>== MDT description ==<br />
This is one of a few related properties. These are:<br />
<br />
ObjectTemplate.SetNumberOfWeaponIcons #<br />
ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_*.tga"<br />
ObjectTemplate.SetPrimaryAmmoBar ABTypeName<br />
ObjectTemplate.SetSecondaryAmmoIcon "Ammo/Icon_*.tga"<br />
ObjectTemplate.SetSecondaryAmmoBar ABTypeName<br />
<br />
These all have to do with the ammunition/overheating status display for each weapon, the primary (left mouse fire) and secondary (right mouse), if any. SetNumberOfWeaponIcons specifies the number of weapons that have a display on the HUD, a value from 0 to 2. SetPrimaryAmmoBar sets the type of display needed for the weapon, similar to how handweapons use this value in SetHudAmmoType. Note that the defined names are different, though, starting with AB instead of AT. Here are the values used for vehicle weapons:<br />
<br />
ABNone - for positions that have no weapons; set for vehicles without weapons<br />
ABAmmoBar - for weapons with no reload wait time but can run out of ammo, like fighter plane guns<br />
ABAmmoBarHeatBar - for weapons that overheat and run out of ammo, like machineguns on tanks<br />
ABAmmoBarReloadBar - for weapons that need time to reload, like tank or ship guns<br />
ABHeatBarOnly - for weapons that overheat but never run out of ammo, like stationary MGs<br />
ABReloadBarOnly - never runs out of ammo but wait to reload, e.g. destroyer and battleship guns<br />
ABIconOnly - never overheats, never runs out of ammo, never needs to reload, e.g. flak guns<br />
<br />
If SetPrimaryAmmoBar is any setting except for ''ABNone'', the SetPrimaryAmmoIcon property is set, to define an image of the type of ammo used (bullet, rocket, etc).<br />
<br />
See the [http://mdt.planetbattlefield.gamespy.com/Tutorials/HUD%20Tutorial/HUD%20Tutorial.shtm HUD Icon Tutorial] for more details and examples.<br><br />
<br><br />
''[http://mdt.planetbattlefield.gamespy.com/scripting/ObjectTemplate/Properties/SetSecondaryAmmoIcon.shtm Source and more details]''<br />
<br><br />
<br><br />
== Additional Description ==<br />
<br><br />
<br />
[[Category:Battlefield 1942]]</div>Pilot 51