XML:Mtrl: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) (+ temp + cat) |
m (Edition -> AE) |
||
Line 3: | Line 3: | ||
===general information=== | ===general information=== | ||
* The xml code on this page is compatible with onisplit '''v0.9.61.0''' | * The xml code on this page is compatible with onisplit '''v0.9.61.0''' | ||
* '''Mtrl*.oni''' files are global. (They can be found in | * '''Mtrl*.oni''' files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat) | ||
* They are used by [[XML:BINA/ONIE|ONIE]], [[XML:BINA/TMBD|TMBD]] and [[XML:ONCC#CBPM:_Character_Body_Part_Materials|CBPM]]. | * They are used by [[XML:BINA/ONIE|ONIE]], [[XML:BINA/TMBD|TMBD]] and [[XML:ONCC#CBPM:_Character_Body_Part_Materials|CBPM]]. | ||
* Material is only specified by the file name, for example "Mtrl'''Armor'''.oni" | * Material is only specified by the file name, for example "Mtrl'''Armor'''.oni" |
Revision as of 13:13, 18 April 2013
Mtrl : Material | ||
---|---|---|
XML
M3GM << Other file types >> OBAN |
general information
- The xml code on this page is compatible with onisplit v0.9.61.0
- Mtrl*.oni files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat)
- They are used by ONIE, TMBD and CBPM.
- Material is only specified by the file name, for example "MtrlArmor.oni"
- Every material has a parent material (except for "Default") to organize effects in ONIE.
- An example: An effect is looked up from ONIE if a character get hit by a bullet.
- Let's imagine the hit body part has Armor as material. If there's no effect for Armor then the engine looks for the parent material, here Character. And if Character doesn't match then the effect from Default becomes chosen.
XML structure
(e.g. file name "MtrlArmor.xml")
<?xml version="1.0" encoding="utf-8"?> <Oni> <Mtrl id="0"> <ParentMaterial>MtrlCharacter</ParentMaterial> </Mtrl> </Oni>
vanilla material tree
Default | +-- Character | | | +-- Armor | +-- Cloth | +-- Flesh | +-- Shield | | | +-- Super_Shield | +-- Glass | | | +-- Clear_Glass | +-- Small_Glass | +-- Tinted_Glass | +-- Unbreak_Glass | +-- Liquid +-- Mesh +-- Solid | +-- Carpet +-- Hard | | | +-- Metal | | | | | +-- Heavy_Metal | | +-- Light_Metal | | +-- Resonant_Metal | | | +-- Stone | | | | | +-- Asphalt | | +-- Concrete | | | +-- Stucco | +-- Loose_Ground | | | +-- Dirt | +-- Snow | +-- Plastic +-- Soft