XML:Impt: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(+ Impact tree)
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{XML_File_Header | type=Impt | prev=IPge | next=M3GM | name=Impact }}
{{XML_File_Header | prev=IGSt | type=Impt | next=IPge | 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'''.
* '''Mtrl*.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#Variants.2C_geometry.2C_health.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 up the hierarchy until it finds content and matching conditions.
Default
{{Tree list}}
  |
*Default
  +--Blunt
**Blunt
  |  |
***Fall_Slide
  |  +--Fall_Slide
***Hit
  |  +--Hit (Groups objects and particle attracted by gravity?)
****Fall
  |  |  |
*****Fall_Knockdown
  |  |  +--Fall
*****Fall_Land
  |  |  |  |
******Fall_LandHard
  |  |  |  +--Fall_Knockdown
****Fall_Object
  |  |  |  +--Fall_Land
*****Powerup
  |  |  |      |
*****Weapon
  |  |  |      +--Fall_LandHard
****Shrapnel
  |  |  |
****Weapon_Bounce
  |  |  +--Fall_Object
***Footstep
  |  |  |  |
****Footstep_Run
  |  |  |  +--Powerup
*****Footstep_RunMain
  |  |  |  +--Weapon
*****Footstep_RunSprint
  |  |  |
*****Footstep_RunStop
  |  |  +--Shrapnel
*****Footstep_Shuffle
  |  |  +--Weapon_Bounce (Maybe triggered when weapon is kicked by a running character or in older game versions weapon used to bounce on the ground when dropped ?)
******Footstep_RunStart
  |  |
******Footstep_SingleStep
  |  +--Footstep
******Footstep_Turn
  |      |
****Footstep_Walk
  |      +--Footstep_Run
*****Footstep_WalkMain
  |      |  |
*****Footstep_WalkStop
  |      |  +--Footstep_RunMain
*****Footstep_Crouch
  |      |  +--Footstep_RunSprint
****Footstep_Zombie
  |      |  +--Footstep_RunStop
****Footstep_IronDemon
  |      |  +--Footstep_Shuffle
*****Footstep_IronDemon_Turn
  |      |      |
**Damaging
  |      |      +--Footstep_RunStart
***Blast
  |      |      +--Footstep_SingleStep
***Projectile
  |      |      +--Footstep_Turn
****Bullet
  |      |
*****w1_tap
  |      +--Footstep_Walk
*****w2_sap
  |      |  |
*****w7_scc
  |      |  +--Footstep_WalkMain
*****w8_mbo
  |      |  +--Footstep_WalkStop
****Energy
  |      |  +--Footstep_Crouch
*****w3_phr
  |      |
*****w4_psm
  |      +--Footstep_Zombie
*****w6_vdg
  |      +--Footstep_IronDemon
*****w10_sni
  |          |
*****w12_ba2
  |          +--Footstep_IronDemon_Turn
*****w13_muro
  |
*****w14_muro
  +--Damaging (Meant to group items by damage type but is unused because particle hold the information about damage types ?)
****Grenade
  |  |
*****w5_sbg
  |  +--Blast
*****w9_scr
  |  +--Projectile (Groups ONWC names by ONWC flags ??? [0x00/0x01 = UsesAmmo?], UsesCells, Explosive)
*****w11_ba1
  |      |
**Debris
  |      +--Bullet
***Casing
  |      |  |
***Glass_Shard
  |      |  +--w1_tap
***Spark
  |      |  +--w2_sap
**Melee
  |      |  +--w7_scc
***Head
  |      |  +--w8_mbo
****Head_Blocked
  |      |
****Head_Hit
  |      +--Energy
****Head_Killed
  |      |  |
***Kick
  |      |  +--w3_phr
****Kick_Blocked
  |      |  +--w4_psm
****Kick_Hit
  |      |  +--w6_vdg
*****Bar_Super_Kick
  |      |  +--w10_sni
*****Com_Super_Kick
  |      |  +--w12_ba2
*****Eli_Super_Kick
  |      |  +--w13_muro
*****Gri_Super_Kick
  |      |  +--w14_muro
*****Kon_Super_Kick
  |      |
*****Mur_Super_Kick
  |      +--Grenade
*****Nin_Super_Kick
  |          |
*****Red_Super_Kick
  |          +--w5_sbg
*****Str_Super_Kick
  |          +--w9_scr (Is actually an energy weapon (ONWC flag "UsesCells"), wrong cat.?)
*****Swt_Super_Kick
  |          +--w11_ba1
*****Tan_Super_Kick
  |
*****Tcl_Super_Kick
  +--Debris
*****Thu_Super_Kick
  |  |
****Kick_Killed
  |  +--Casing
***Punch
  |  +--Glass_Shard
****Punch_Blocked
  |  +--Spark
****Punch_Hit
  |
*****Bar_Super_Punch
  +--Melee (H2H attack impacts)
*****Com_Super_Punch
      |
*****Eli_Super_Punch
      +--Head (head nut, huh?)
*****Gri_Super_Punch
      |  |
*****Kon_Super_Punch
      |  +--Head_Blocked
*****Mur_Super_Punch
      |  +--Head_Hit
*****Nin_Super_Punch
      |  +--Head_Killed
*****Red_Super_Punch
      |
*****Str_Super_Punch
      +--Kick
*****Swt_Super_Punch
      |  |
*****Tan_Super_Punch
      |  +--Kick_Blocked
*****Tcl_Super_Punch
      |  +--Kick_Hit (Groups ONIA links)
*****Thu_Super_Punch
      |  |  |
****Punch_Killed
      |  |  +--Bar_Super_Kick
***Self_Damage
      |  |  +--Com_Super_Kick
***Self_Damage_Killed
      |  |  +--Eli_Super_Kick
{{Tree list/end}}
      |  |  +--Gri_Super_Kick
      |  |  +--Kon_Super_Kick
      |  |  +--Mur_Super_Kick
      |  |  +--Nin_Super_Kick
      |  |  +--Red_Super_Kick
      |  |  +--Str_Super_Kick
      |  |  +--Swt_Super_Kick
      |  |  +--Tan_Super_Kick
      |  |  +--Tcl_Super_Kick
      |  |  +--Thu_Super_Kick
      |  |
      |  +--Kick_Killed
      |
      +--Punch
      |  |
      |  +--Punch_Blocked
      |  +--Punch_Hit (Groups ONIA links)
      |  |  |
      |  |  +--Bar_Super_Punch
      |  |  +--Com_Super_Punch
      |  |  +--Eli_Super_Punch
      |  |  +--Gri_Super_Punch
      |  |  +--Kon_Super_Punch
      |  |  +--Mur_Super_Punch
      |  |  +--Nin_Super_Punch
      |  |  +--Red_Super_Punch
      |  |  +--Str_Super_Punch
      |  |  +--Swt_Super_Punch
      |  |  +--Tan_Super_Punch
      |  |  +--Tcl_Super_Punch
      |  |  +--Thu_Super_Punch
      |  |
      |  +--Punch_Killed
      |
      +--Self_Damage
      +--Self_Damage_Killed


'''Notes'''


;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>
;Hit
:Groups objects and particles attracted by gravity?
;Shrapnel
:used by: BINA3RAPw5_sbg_f05, BINA3RAPw11_ba1_f03
;Weapon_Bounce
:used by: BINA3RAPw5_sbg_p01, BINA3RAPw9_scr_p08, BINA3RAPw9_scr_p01, BINA3RAPw10_sni_p01
;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
;Projectile
:Groups ONWC names by ONWC flags??? [0x00/0x01 = UsesAmmo?], UsesCells, Explosive
;w9_scr
:Is actually an energy weapon (ONWC flag "UsesCells"), wrong cat.?
;Debris
:FX?
;Melee
:H2H attack impacts
;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.)
;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.
{{XML}}
{{XML}}

Latest revision as of 20:14, 6 December 2023

Impt : Impact
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

IGSt << Other file types >> IPge

switch to OBD page

General information

  • 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).
  • They are used by CBPI, ONIA and ONIE.
  • Impact is only specified by the file name.
  • Every impact has a parent impact to organize effects in ONIE.

XML structure

For example, ImptBar_Super_Kick.xml:

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Impt id="0">
       <ParentImpact>ImptKick_Hit</ParentImpact>
   </Impt>
</Oni>

Some Impts are used to detect the regular character-environment collision which comes from a character's movement (see ONCC). It looks like this:

       <ImpactModifierName>Heavy</ImpactModifierName>
       <Impacts>
           <ONCCImpact>
               <Name>Footstep_Walk</Name>
           </ONCCImpact>
           [...]
       </Impacts>

Flags allowed for <ImpactModifierName>:

Heavy
Medium
Light

Impact tree

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

  • Default
    • Blunt
      • Fall_Slide
      • Hit
        • Fall
          • Fall_Knockdown
          • Fall_Land
            • Fall_LandHard
        • Fall_Object
          • Powerup
          • Weapon
        • Shrapnel
        • Weapon_Bounce
      • Footstep
        • Footstep_Run
          • Footstep_RunMain
          • Footstep_RunSprint
          • Footstep_RunStop
          • Footstep_Shuffle
            • Footstep_RunStart
            • Footstep_SingleStep
            • Footstep_Turn
        • Footstep_Walk
          • Footstep_WalkMain
          • Footstep_WalkStop
          • Footstep_Crouch
        • Footstep_Zombie
        • Footstep_IronDemon
          • Footstep_IronDemon_Turn
    • Damaging
      • Blast
      • Projectile
        • Bullet
          • w1_tap
          • w2_sap
          • w7_scc
          • w8_mbo
        • Energy
          • w3_phr
          • w4_psm
          • w6_vdg
          • w10_sni
          • w12_ba2
          • w13_muro
          • w14_muro
        • Grenade
          • w5_sbg
          • w9_scr
          • w11_ba1
    • Debris
      • Casing
      • Glass_Shard
      • Spark
    • Melee
      • Head
        • Head_Blocked
        • Head_Hit
        • Head_Killed
      • Kick
        • Kick_Blocked
        • Kick_Hit
          • Bar_Super_Kick
          • Com_Super_Kick
          • Eli_Super_Kick
          • Gri_Super_Kick
          • Kon_Super_Kick
          • Mur_Super_Kick
          • Nin_Super_Kick
          • Red_Super_Kick
          • Str_Super_Kick
          • Swt_Super_Kick
          • Tan_Super_Kick
          • Tcl_Super_Kick
          • Thu_Super_Kick
        • Kick_Killed
      • Punch
        • Punch_Blocked
        • Punch_Hit
          • Bar_Super_Punch
          • Com_Super_Punch
          • Eli_Super_Punch
          • Gri_Super_Punch
          • Kon_Super_Punch
          • Mur_Super_Punch
          • Nin_Super_Punch
          • Red_Super_Punch
          • Str_Super_Punch
          • Swt_Super_Punch
          • Tan_Super_Punch
          • Tcl_Super_Punch
          • Thu_Super_Punch
        • Punch_Killed
      • Self_Damage
      • Self_Damage_Killed

Notes

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>
Hit
Groups objects and particles attracted by gravity?
Shrapnel
used by: BINA3RAPw5_sbg_f05, BINA3RAPw11_ba1_f03
Weapon_Bounce
used by: BINA3RAPw5_sbg_p01, BINA3RAPw9_scr_p08, BINA3RAPw9_scr_p01, BINA3RAPw10_sni_p01
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
Projectile
Groups ONWC names by ONWC flags??? [0x00/0x01 = UsesAmmo?], UsesCells, Explosive
w9_scr
Is actually an energy weapon (ONWC flag "UsesCells"), wrong cat.?
Debris
FX?
Melee
H2H attack impacts
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.)
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.