Jump to content

XML:Impt: Difference between revisions

m
more copy-editing
m (copy-edit, "self: empty": looks like old dev notes ('reinsurance'/'double-checked') for "has no child nodes" when I looked through all Impt files)
m (more copy-editing)
Line 1: Line 1:
{{XML_File_Header | type=Impt | prev=IPge | next=M3GM | name=Impact }}
{{XML_File_Header | type=Impt | prev=IPge | next=M3GM | name=Impact}}


===general information===
==General information==
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* '''Impt*.oni''' files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat)
* '''Impt*.oni''' files are global (they can be found in AE/AEInstaller/vanilla/level0_Final.dat).
* They are used by [[XML:ONCC#CBPI:_Character_Body_Part_Impacts|CBPI]], [[XML:ONCC#ONIA:_Oni_Character_Impact_Array|ONIA]] and [[XML:BINA/ONIE|ONIE]].
* They are used by [[XML:ONCC#CBPI:_Character_Body_Part_Impacts|CBPI]], [[XML:ONCC#ONIA:_Oni_Character_Impact_Array|ONIA]] and [[XML:BINA/ONIE|ONIE]].
* Impact is only specified by the file name.
* Impact is only specified by the file name.
* Every impact has a parent impact to organize effects in ONIE.
* Every impact has a parent impact to organize effects in ONIE.


===XML structure===
===XML structure===
 
For example, ImptBar_Super_Kick.xml:
For example:<br>ImptBar_Super_Kick.xml
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 19: Line 17:
  </Oni>
  </Oni>


 
Some Impts are used to detect the regular character-environment collision which comes from a character's movement (see [[XML:ONCC#ONCV.2C_death_particle.2C_TRBS.2C_TRMA.2C_TRAC.2C_TRAS.2C_health.2C_daodan.2C_etc.|ONCC]]). It looks like this:
* Some Impt are used to detect the regular character-environment collision which comes from character's movement. See [[XML:ONCC#ONCV.2C_death_particle.2C_TRBS.2C_TRMA.2C_TRAC.2C_TRAS.2C_health.2C_daodan.2C_etc.|ONCC]]. It looks like this:
         <ImpactModifierName>Heavy</ImpactModifierName>
         <ImpactModifierName>Heavy</ImpactModifierName>
         <Impacts>
         <Impacts>
Line 29: Line 26:
         </Impacts>
         </Impacts>


Flags of <ImpactModifierName>
Flags allowed for <ImpactModifierName>:
: Heavy
: Heavy
: Medium
: Medium
: Light
: Light


===Impact tree===
==Impact tree==
If an impact (effect) links to an empty node it will go the hierarchy upwards until it finds content and matching conditions.
If an impact (effect) links to an empty node, it will go up the hierarchy until it finds content and matching conditions.


  Default
  Default
   |
   |
   +--Blunt (groups non-damaging env-obj, env-3rap, but especially env-char collisions ? self: empty)
   +--Blunt (groups non-damaging env/OBJC collisions, env/PAR3 (particle) collisions, and especially env/CHAR collisions)
   |  |
   |  |
   |  +--Fall_Slide (used by? TRAM<ToState>RunSlide : ONCC<ONCCImpact><Name>Fall_Slide</Name></ONCCImpact>)
   |  +--Fall_Slide (used by? TRAM<ToState>RunSlide : ONCC<ONCCImpact><Name>Fall_Slide</Name></ONCCImpact>)
   |  +--Hit (Groups objects and particle attracted by gravity?)
   |  +--Hit (Groups objects and particles attracted by gravity?)
   |  |  |
   |  |  |
   |  |  +--Fall
   |  |  +--Fall
Line 83: Line 80:
   |          +--Footstep_IronDemon_Turn
   |          +--Footstep_IronDemon_Turn
   |
   |
   +--Damaging (Meant to group items by damage type but is unused because particle hold the information about damage types ?)
   +--Damaging (Meant to group items by damage type, but is unused because particles hold the information about damage types?)
   |  |
   |  |
   |  +--Blast (Is this used by any instance? Let's check explosive particles: MadBomber, SBG, WMC, ShinBomb)
   |  +--Blast (Is this used by any instance? Let's check explosive particles: MadBomber, SBG, WMC, ShinBomb)
Line 128: Line 125:
       |  |
       |  |
       |  +--Kick_Blocked
       |  +--Kick_Blocked
       |  +--Kick_Hit (Groups ONIA links. Redundant to ONCP since ONIA <Modifier> is always "Any". Or you think of it as "future-proof" if you add more (actual light and heavy) characters.))
       |  +--Kick_Hit (Groups ONIA links. Redundant of ONCP since ONIA's <Modifier> is always "Any". Or you could think of it as "future-proof" if you add more (actual light and heavy) characters.))
       |  |  |
       |  |  |
       |  |  +--Bar_Super_Kick
       |  |  +--Bar_Super_Kick
Line 149: Line 146:
       |  |
       |  |
       |  +--Punch_Blocked
       |  +--Punch_Blocked
       |  +--Punch_Hit (Groups ONIA links. Redundant to ONCP since ONIA <Modifier> is always "Any". Or you think of it as "future-proof" if you add more (actual light and heavy) characters.)
       |  +--Punch_Hit (Groups ONIA links. Redundant of ONCP since ONIA's <Modifier> is always "Any". Or you could think of it as "future-proof" if you add more (actual light and heavy) characters.)
       |  |  |
       |  |  |
       |  |  +--Bar_Super_Punch
       |  |  +--Bar_Super_Punch
Line 169: Line 166:
       +--Self_Damage
       +--Self_Damage
       +--Self_Damage_Killed
       +--Self_Damage_Killed


{{XML}}
{{XML}}