Difference between revisions of "ObjectTemplate.Material"

From Pilot_51's Wiki
Jump to navigation Jump to search
(New page: == MDT description == The material of an object determines how it affects and is affected by other objects. For terrain and objects, it affects the physics engine and how much collision da...)
 
m
 
Line 4: Line 4:
 
The terrain types are stored as 4-bit numbers in the level's terrain map, and are as follows:
 
The terrain types are stored as 4-bit numbers in the level's terrain map, and are as follows:
  
0 - Default
+
0 - Default<br>
1 - Water
+
1 - Water<br>
2 - Dry grass
+
2 - Dry grass<br>
3 - Juicy grass
+
3 - Juicy grass<br>
4 - Dry dirt
+
4 - Dry dirt<br>
5 - Wet dirt
+
5 - Wet dirt<br>
6 - Mud
+
6 - Mud<br>
7 - Outside map
+
7 - Outside map<br>
8 - Gravel
+
8 - Gravel<br>
9 - Frozen ground
+
9 - Frozen ground<br>
10 - Dry sand (El Alamein)
+
10 - Dry sand (El Alamein)<br>
11 - Wet sand
+
11 - Wet sand<br>
12 - Rock (Omaha Beach)
+
12 - Rock (Omaha Beach)<br>
13 - Sand road
+
13 - Sand road<br>
14 - Dirt road
+
14 - Dirt road<br>
15 - Paved road
+
15 - Paved road<br>
  
 
Note that material 7 is special. After nine seconds a soldier on this type of terrain will take damage for leaving the battlefield. By default, the soldier takes 5 hitpoints per second. The property ''Game.DamageForBeingOutsideWorld'' (which is never set in any BF .con file) can be used to set this rate to another number of hitpoints per second.
 
Note that material 7 is special. After nine seconds a soldier on this type of terrain will take damage for leaving the battlefield. By default, the soldier takes 5 hitpoints per second. The property ''Game.DamageForBeingOutsideWorld'' (which is never set in any BF .con file) can be used to set this rate to another number of hitpoints per second.

Latest revision as of 08:54, 20 November 2008

MDT description

The material of an object determines how it affects and is affected by other objects. For terrain and objects, it affects the physics engine and how much collision damage other objects take. For weapon projectiles, mines, etc., the material is the type of attack that the weapon does.

The terrain types are stored as 4-bit numbers in the level's terrain map, and are as follows:

0 - Default
1 - Water
2 - Dry grass
3 - Juicy grass
4 - Dry dirt
5 - Wet dirt
6 - Mud
7 - Outside map
8 - Gravel
9 - Frozen ground
10 - Dry sand (El Alamein)
11 - Wet sand
12 - Rock (Omaha Beach)
13 - Sand road
14 - Dirt road
15 - Paved road

Note that material 7 is special. After nine seconds a soldier on this type of terrain will take damage for leaving the battlefield. By default, the soldier takes 5 hitpoints per second. The property Game.DamageForBeingOutsideWorld (which is never set in any BF .con file) can be used to set this rate to another number of hitpoints per second.

See the Damage Tutorial for more information.

Source and more details

Additional Description