18,700
edits
Paradox-01 (talk | contribs) m (surprise of the day: throws don't use ONIE) |
m (minor second pass copy-edit) |
||
Line 1: | Line 1: | ||
{{XML_BINA_Header | prev=TMBD | type=ONIE | next=PAR3 | name=Oni Impact Effects}} | {{XML_BINA_Header | prev=TMBD | type=ONIE | next=PAR3 | name=Oni Impact Effects}} | ||
==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'''. | ||
* BINAEINOimpact_effects.oni is stored ''globally'' (in AE/AEInstaller/vanilla/level0_Final.dat) | * BINAEINOimpact_effects.oni is stored ''globally'' (in AE/AEInstaller/vanilla/level0_Final.dat). | ||
==File structure== | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni> | <Oni> | ||
Line 30: | Line 28: | ||
+-- particle n (multiple (n) particle possible) | +-- particle n (multiple (n) particle possible) | ||
==List of tags, types, and flags== | |||
{| class="wikitable" width=100% | {| class="wikitable" width=100% | ||
|width=180px| '''XML tag''' | |width=180px| '''XML tag''' | ||
Line 61: | Line 57: | ||
::: '''''H2H impacts''''' | ::: '''''H2H impacts''''' | ||
<!--:Special ONCC (CBPI) impacts: a specific body part was hit--> | <!--:Special ONCC (CBPI) impacts: a specific body part was hit--> | ||
:Melee: used to let AI know about fights ? | :Melee: used to let AI know about fights? | ||
:Head: blocked and unblocked ? | :Head: blocked and unblocked? | ||
:Head_Blocked | :Head_Blocked | ||
:Head_Hit | :Head_Hit | ||
Line 73: | Line 69: | ||
:Special ONCC (ONIA) impacts: target was kicked by attacker with this ONIA link, blocked and unblocked | :Special ONCC (ONIA) impacts: target was kicked by attacker with this ONIA link, blocked and unblocked | ||
:Bar_Super_Kick: SP attack flash for Barabas | :Bar_Super_Kick: SP attack flash for Barabas | ||
:Com_Super_Kick: unused, SP attack flash for Comguy ? | :Com_Super_Kick: unused, SP attack flash for Comguy? | ||
:Eli_Super_Kick: SP attack flash for Elite Striker | :Eli_Super_Kick: SP attack flash for Elite Striker | ||
:Gri_Super_Kick: unused, SP attack flash for Griffin ? | :Gri_Super_Kick: unused, SP attack flash for Griffin? | ||
:Kon_Super_Kick: SP attack flash for Konoko | :Kon_Super_Kick: SP attack flash for Konoko | ||
:Mur_Super_Kick: SP attack flash for Muro | :Mur_Super_Kick: SP attack flash for Muro | ||
Line 83: | Line 79: | ||
:Swt_Super_Kick: SP attack flash for SWAT | :Swt_Super_Kick: SP attack flash for SWAT | ||
:Tan_Super_Kick: SP attack flash for Tanker | :Tan_Super_Kick: SP attack flash for Tanker | ||
:Tcl_Super_Kick: unused, SP attack flash for TCTF Lite ? | :Tcl_Super_Kick: unused, SP attack flash for TCTF Lite? | ||
:Thu_Super_Kick: unused, SP attack flash for Thugs | :Thu_Super_Kick: unused, SP attack flash for Thugs | ||
:---- | :---- | ||
Line 94: | Line 90: | ||
:Special ONCC (ONIA) impacts: target was punched by attacker with this ONIA link, blocked and unblocked | :Special ONCC (ONIA) impacts: target was punched by attacker with this ONIA link, blocked and unblocked | ||
:Bar_Super_Punch: SP attack flash for Barabas | :Bar_Super_Punch: SP attack flash for Barabas | ||
:Com_Super_Punch: unused, SP attack flash for Comguy ? | :Com_Super_Punch: unused, SP attack flash for Comguy? | ||
:Eli_Super_Punch: SP attack flash for Elite Striker | :Eli_Super_Punch: SP attack flash for Elite Striker | ||
:Gri_Super_Punch: unused, SP attack flash for Griffin ? | :Gri_Super_Punch: unused, SP attack flash for Griffin? | ||
:Kon_Super_Punch: SP attack flash for Konoko | :Kon_Super_Punch: SP attack flash for Konoko | ||
:Mur_Super_Punch: SP attack flash for Muro | :Mur_Super_Punch: SP attack flash for Muro | ||
Line 104: | Line 100: | ||
:Swt_Super_Punch: SP attack flash for SWAT | :Swt_Super_Punch: SP attack flash for SWAT | ||
:Tan_Super_Punch: SP attack flash for Tanker | :Tan_Super_Punch: SP attack flash for Tanker | ||
:Tcl_Super_Punch: unused, SP attack flash for TCTF Lite ? | :Tcl_Super_Punch: unused, SP attack flash for TCTF Lite? | ||
:Thu_Super_Punch: unused, SP attack flash for Thugs | :Thu_Super_Punch: unused, SP attack flash for Thugs | ||
:---- | :---- | ||
Line 167: | Line 163: | ||
| <AISoundRadius> | | <AISoundRadius> | ||
| float | | float | ||
| sound | | Radius of sound sphere that allows AI to hear the sound | ||
|- | |- | ||
| <Particles> | | <Particles> | ||
Line 193: | Line 189: | ||
| | | | ||
: 0 - impact location | : 0 - impact location | ||
: 1 - impact location + impact direction * offset ? | : 1 - impact location + impact direction * offset? | ||
: 4 - impact location; used for decals | : 4 - impact location; used for decals | ||
: 5 - impact location and attach to character? | : 5 - impact location and attach to character? | ||
:: particle is fixed to character if origin is particle-character collision, not fixed if origin is character-character collision | :: The particle is fixed to character if the origin is a particle-character collision, but not fixed if the origin is a character-character collision (for example, look up the plasma shot "w3_phr_x02" and add it in the particle section of <Impact Name="Kick_Hit">). | ||
|- | |- | ||
| <Offset> | | <Offset> | ||
Line 243: | Line 239: | ||
</Particle> | </Particle> | ||
==Visual guides: weapon, melee, environment== | |||
Note about philosophy in here: | Note about philosophy in here: | ||
:These visual guides don't claim be hundred percent right | :These visual guides don't claim be hundred percent right on a technical level. I can't look into the engine. But they should give a good hint which files are worth caring about and how to debug a mistake: going through all important files, e.g. ''Could it be that my new texture is not registered in TMBD?'' | ||
:However, if you think you should add information, or shape this in a more accurate way, then do it. =) | :However, if you think you should add information, or shape this in a more accurate way, then do it. =) | ||
{|class="wikitable" width="100%" | {|class="wikitable" width="100%" | ||
|colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to weapons''' | |colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to weapons''' | ||
|- | |- | ||
|width="50%"|''' | |width="50%"|'''If weapon shall have impact effect on environment''' | ||
|''' | |'''If weapon shall have impact effect on characters''' | ||
|- | |- | ||
|valign=top| | |valign=top| | ||
Line 263: | Line 256: | ||
|} | |} | ||
* | * Weapon fires a particle | ||
* | * Particle creates a sound and hits textured environment | ||
* | * Texture’s material name is looked up in TMBD (decals do not work) | ||
* | * Material file is looked up (can hold parent material) | ||
* | * Effect is chosen from ONIE by weapon and material | ||
* | * If parent material* exists then it is possible that a second effect is produced | ||
* ONIE effect leads to a particle and sound file which means the effect (however, sound can be also played from released particle) | * ONIE effect leads to a particle and sound file which means the effect (however, sound can be also played from released particle) | ||
---- | ---- | ||
: * Loser’s material “Explosive” has “Glass” as parent material which shatters objects when hit; this can destroy any object - not just the "glassworld". | : *Loser’s material “Explosive” has “Glass” as its parent material, which shatters objects when hit; this can destroy any object - not just the "glassworld". | ||
|valign=top| | |valign=top| | ||
{| border=0 cellspacing=0 cellpadding=0 style="float:right" | {| border=0 cellspacing=0 cellpadding=0 style="float:right" | ||
Line 278: | Line 271: | ||
|} | |} | ||
* | * Weapon fires a particle | ||
* | * Particle creates a sound and hits character part | ||
* | * Character part has an ID (probably through <!--TRMA and-->TRIA), ID is sent to CBPM | ||
* | * Material file is looked up (can hold parent material) | ||
* | * Effect is chosen from ONIE by weapon and material | ||
* ONIE effect leads to a particle and sound file which means the effect (however, sound can be also played from released particle) | * ONIE effect leads to a particle and sound file which means the effect (however, sound can be also played from released particle) | ||
* | * It seems that effects on characters cannot be created through TMBD (still you can see a failed test there called "Character") | ||
* | * Custom materials can be used for characters in case they are registered in ONIE | ||
|} | |} | ||
{|class="wikitable" width="100%" | {|class="wikitable" width="100%" | ||
|colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to animations''' | |colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to animations''' | ||
|- | |- | ||
|width="50%"|''' | |width="50%"|'''Special attack''' | ||
|''' | |'''Normal attack''' | ||
|- | |- | ||
| | | | ||
Line 327: | Line 319: | ||
* Light hurt sound: less than 10 HP. | * Light hurt sound: less than 10 HP. | ||
|} | |} | ||
{|class="wikitable" width="100%" | {|class="wikitable" width="100%" | ||
|colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to characters''' | |colspan="2" align="center"|'''Overview of involved files when modding ONIE in relation to characters''' | ||
|- | |- | ||
|width="50%"|''' | |width="50%"|'''If character hits ground''' | ||
|''' | |'''Something left?''' | ||
|- | |- | ||
|valign=top| | |valign=top| | ||
Line 368: | Line 359: | ||
|} | |} | ||
==Examples== | |||
===Particle - Environment=== | ===Particle - Environment=== | ||
===Particle - Character=== | |||
====Extra damage for head hits==== | |||
{{divhide|first beta}} | {{divhide|first beta}} | ||
w1_tap and w2_sap deals additional damage, amount depends on material "head"/"helmet". Feel free to extend/tweak/criticize. | w1_tap and w2_sap deals additional damage, amount depends on material "head"/"helmet". Feel free to extend/tweak/criticize. | ||
'''Damage overview:''' | |||
''' | |||
w1_tap | w1_tap | ||
Line 391: | Line 377: | ||
: head: 4-5 damage; 0.8-1.4 knockback | : head: 4-5 damage; 0.8-1.4 knockback | ||
'''Basic modifications/new files:''' | |||
''' | |||
<font size="-1"> | <font size="-1"> | ||
Line 517: | Line 502: | ||
Known bugs: | Known bugs: | ||
* VDG refused to work properly so I modified it to keep the original effect at least. | * VDG refused to work properly so I modified it to keep the original effect at least. | ||
* Screaming | * Screaming Cells do too much damage in a short time. | ||
Changes: | Changes: | ||
Line 523: | Line 508: | ||
* Added [[AE:New_weapons#w15_smg_Silenced_Machine_Gun|w15_smg]] into ONIE. | * Added [[AE:New_weapons#w15_smg_Silenced_Machine_Gun|w15_smg]] into ONIE. | ||
* Material Flesh and Cloth uses same damage dealing particle, "unprotected". | * Material Flesh and Cloth uses same damage dealing particle, "unprotected". | ||
material damage stun knockback (notes) | material damage stun knockback (notes) | ||
Line 589: | Line 573: | ||
unprotected +2 +0.2 +0.25 | unprotected +2 +0.2 +0.25 | ||
helmet +3 +0.1 +0.1 | helmet +3 +0.1 +0.1 | ||
M=Mean S=StdDev (bell curve values) | M=Mean S=StdDev (bell curve values) | ||
| | ||
{{divhide|end}} | {{divhide|end}} | ||
I haven't gotten to try these files out yet (hopefully soon), but I like the idea. I just want to give my opinions on a couple things on a conceptual level: | I haven't gotten to try these files out yet (hopefully soon), but I like the idea. I just want to give my opinions on a couple things on a conceptual level: | ||
Line 628: | Line 610: | ||
{{divhide|end}} | {{divhide|end}} | ||
===Character - Character (normal attack)=== | ===Character - Character (normal attack)=== | ||
===Character - Character (special attack)=== | ===Character - Character (special attack)=== | ||
===Character - Environment=== | ===Character - Environment=== | ||
==Mod conflicts== | |||
Oni allows only one ONIE file to be installed. In that file a lot of links come together and can easily create conflicts (crashes or just missing visuals) if various packages holds a version of that file. | Oni allows only one ONIE file to be installed. In that file a lot of links come together and can easily create conflicts (crashes or just missing visuals) if various packages holds a version of that file. | ||
Line 652: | Line 632: | ||
Reason: BINAEINOimpact_effects file from package with highest number gets integrated into level0_Final. | Reason: BINAEINOimpact_effects file from package with highest number gets integrated into level0_Final. | ||
'''Example 2:''' Exploding barrels don't work | '''Example 2:''' Exploding barrels don't work | ||
Line 676: | Line 655: | ||
* The Impt files, Mtrl and BINADBMT are shipped normally to level0_Final because they aren't duplicates. As a consequence, Grey Fury fully works while exploding barrels do not. | * The Impt files, Mtrl and BINADBMT are shipped normally to level0_Final because they aren't duplicates. As a consequence, Grey Fury fully works while exploding barrels do not. | ||
==Mod ideas== | |||
*'''How about melee attacks dealing more damage on head/helmet?''' | *'''How about melee attacks dealing more damage on head/helmet?''' | ||
:Could be more easily\accurately done with an attached particle on the hit_head animations. [[User:Gumby|Gumby]] 03:54, 10 May 2009 (UTC) | :Could be more easily\accurately done with an attached particle on the hit_head animations. [[User:Gumby|Gumby]] 03:54, 10 May 2009 (UTC) | ||
Line 723: | Line 701: | ||
::Surprise, it turns out that throws don't make impacts at all, ONIE is totally unrelated at them. You can test this with making an almost empty ONIE, just use impact Default, material Character and a particle. Any H2H will trigger now this impact but not the throws. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 21:25, 10 June 2018 (CEST) | ::Surprise, it turns out that throws don't make impacts at all, ONIE is totally unrelated at them. You can test this with making an almost empty ONIE, just use impact Default, material Character and a particle. Any H2H will trigger now this impact but not the throws. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 21:25, 10 June 2018 (CEST) | ||
{{XML}} | {{XML}} |