<?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.DistToStartLoseDamage</id>
	<title>ObjectTemplate.DistToStartLoseDamage - 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.DistToStartLoseDamage"/>
	<link rel="alternate" type="text/html" href="https://pilot51.com/w/index.php?title=ObjectTemplate.DistToStartLoseDamage&amp;action=history"/>
	<updated>2026-04-26T21:40:49Z</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.DistToStartLoseDamage&amp;diff=750&amp;oldid=prev</id>
		<title>Pilot 51: New page: == MDT description == A number of hand weapons, namely the medics&#039; submachineguns, the Breda and Bren, the shotgun, and the pistols, have their damage drop off with range. Call this drop-o...</title>
		<link rel="alternate" type="text/html" href="https://pilot51.com/w/index.php?title=ObjectTemplate.DistToStartLoseDamage&amp;diff=750&amp;oldid=prev"/>
		<updated>2008-11-20T02:13:22Z</updated>

		<summary type="html">&lt;p&gt;New page: == MDT description == A number of hand weapons, namely the medics&amp;#039; submachineguns, the Breda and Bren, the shotgun, and the pistols, have their damage drop off with range. Call this drop-o...&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;
A number of hand weapons, namely the medics&amp;#039; submachineguns, the Breda and Bren, the shotgun, and the pistols, have their damage drop off with range. Call this drop-off factor the &amp;#039;&amp;#039;&amp;#039;DistanceMod&amp;#039;&amp;#039;&amp;#039;. For all other weapons this term is always 1.0, i.e. the range does not affect the result. The important factors here are in the objects/handweapons/Common/Weapons.con file. Here is a typical entry, for the shotgun:&lt;br /&gt;
&lt;br /&gt;
  ObjectTemplate.MinDamage 0.5&lt;br /&gt;
  ObjectTemplate.DistToStartLoseDamage 40&lt;br /&gt;
  ObjectTemplate.DistToMinDamage 80&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;DistToStartLoseDamage&amp;#039;&amp;#039; specifies the distance (in meters) at which the damage of the projectile will start to decrease. The MinDamage value is the lowest ratio possible for damage. The DistToMinDamage is the distance beyond which the projectile does its minimum amount of damage. In other words, if a shotgun pellet hits at closer than 40 meters, the &amp;#039;&amp;#039;&amp;#039;DistanceMod&amp;#039;&amp;#039;&amp;#039; is 1.0, beyond 80 meters the &amp;#039;&amp;#039;&amp;#039;DistanceMod&amp;#039;&amp;#039;&amp;#039; is 0.5, between these two the &amp;#039;&amp;#039;&amp;#039;DistanceMod&amp;#039;&amp;#039;&amp;#039; drops linearly from 1.0 to 0.5. Submachineguns start to lose damage at 50 meters and drop to 0.5 at 100 meters. The pistols start to drop at 20 meters and drop to 0.5 at 40 meters. When the distance is between &amp;#039;&amp;#039;DistToStartLoseDamage&amp;#039;&amp;#039; and DistToMinDamage, the equation is this:&lt;br /&gt;
&lt;br /&gt;
  DistanceMod = MinDamage + (1-MinDamage) * (DistToMinDamage - distance) / (DistToMinDamage - DistToStartLoseDamage) &lt;br /&gt;
&lt;br /&gt;
So for a shotgun pellet hitting at, say, 50 meters, the value would be:&lt;br /&gt;
&lt;br /&gt;
  DistanceMod = 0.5 + (1-0.5) * (80 - 50) / (80 - 40) = 0.875&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;[http://mdt.planetbattlefield.gamespy.com/scripting/ObjectTemplate/Properties/DistToStartLoseDamage.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>