<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pilot51.com/w/index.php?action=history&amp;feed=atom&amp;title=ObjectTemplate.SetNumberOfWeaponIcons</id>
	<title>ObjectTemplate.SetNumberOfWeaponIcons - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pilot51.com/w/index.php?action=history&amp;feed=atom&amp;title=ObjectTemplate.SetNumberOfWeaponIcons"/>
	<link rel="alternate" type="text/html" href="https://pilot51.com/w/index.php?title=ObjectTemplate.SetNumberOfWeaponIcons&amp;action=history"/>
	<updated>2026-04-06T06:39:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://pilot51.com/w/index.php?title=ObjectTemplate.SetNumberOfWeaponIcons&amp;diff=618&amp;oldid=prev</id>
		<title>Pilot 51: New page: == MDT description == This sets the number of weapon icons that the UI will display. 2 is the limit unless you editing the menu files. It is one of a few related properties. These are:    ...</title>
		<link rel="alternate" type="text/html" href="https://pilot51.com/w/index.php?title=ObjectTemplate.SetNumberOfWeaponIcons&amp;diff=618&amp;oldid=prev"/>
		<updated>2008-11-17T22:41:13Z</updated>

		<summary type="html">&lt;p&gt;New page: == MDT description == This sets the number of weapon icons that the UI will display. 2 is the limit unless you editing the menu files. It is one of a few related properties. These are:    ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== MDT description ==&lt;br /&gt;
This sets the number of weapon icons that the UI will display. 2 is the limit unless you editing the menu files. It is one of a few related properties. These are:&lt;br /&gt;
&lt;br /&gt;
  ObjectTemplate.SetNumberOfWeaponIcons #&lt;br /&gt;
  ObjectTemplate.SetPrimaryAmmoIcon &amp;quot;Ammo/Icon_*.tga&amp;quot;&lt;br /&gt;
  ObjectTemplate.SetPrimaryAmmoBar ABTypeName&lt;br /&gt;
  ObjectTemplate.SetSecondaryAmmoIcon &amp;quot;Ammo/Icon_*.tga&amp;quot;&lt;br /&gt;
  ObjectTemplate.SetSecondaryAmmoBar ABTypeName&lt;br /&gt;
&lt;br /&gt;
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. &amp;#039;&amp;#039;SetNumberOfWeaponIcons&amp;#039;&amp;#039; 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:&lt;br /&gt;
&lt;br /&gt;
ABNone - for positions that have no weapons; set for vehicles without weapons&lt;br /&gt;
ABAmmoBar - for weapons with no reload wait time but can run out of ammo, like fighter plane guns&lt;br /&gt;
ABAmmoBarHeatBar - for weapons that overheat and run out of ammo, like machineguns on tanks&lt;br /&gt;
ABAmmoBarReloadBar - for weapons that need time to reload, like tank or ship guns&lt;br /&gt;
ABHeatBarOnly - for weapons that overheat but never run out of ammo, like stationary MGs&lt;br /&gt;
ABReloadBarOnly - never runs out of ammo but wait to reload, e.g. destroyer and battleship guns&lt;br /&gt;
ABIconOnly - never overheats, never runs out of ammo, never needs to reload, e.g. flak guns&lt;br /&gt;
&lt;br /&gt;
If SetPrimaryAmmoBar is any setting except for &amp;#039;&amp;#039;ABNone&amp;#039;&amp;#039;, the SetPrimaryAmmoIcon property is set, to define an image of the type of ammo used (bullet, rocket, etc).&lt;br /&gt;
&lt;br /&gt;
See the [http://mdt.planetbattlefield.gamespy.com/Tutorials/HUD%20Tutorial/HUD%20Tutorial.shtm HUD Icon Tutorial] for more details and examples.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;[http://mdt.planetbattlefield.gamespy.com/scripting/ObjectTemplate/Properties/SetNumberOfWeaponIcons.shtm Source and more details]&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Additional Description ==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Battlefield 1942]]&lt;/div&gt;</summary>
		<author><name>Pilot 51</name></author>
	</entry>
</feed>