XML:BINA/ONIE: Difference between revisions
(→Particle - Character: oh yeah) |
|||
Line 413: | Line 413: | ||
::I guess you're right, I forgot to think about the AI that wouldn't know to aim for the head. --[[User:Iritscen|Iritscen]] 17:57, 18 May 2009 (UTC) | ::I guess you're right, I forgot to think about the AI that wouldn't know to aim for the head. --[[User:Iritscen|Iritscen]] 17:57, 18 May 2009 (UTC) | ||
::AI can be learnt to score "headshots", however, that requires all characters to have similar height. In [[ONWC]], some values around 0x100 - 0x120 in primary firing component if I recall correctly are used to tell AI where to aim according to its target's root (pelvis) when shooting with primary fire. It is set zero or low, so AI tends to shoot into stomach. Set Y component a bit higher to achieve chest/headshots. But then be prepared for consequences - if character is minimized (lenght from root to head is smaller), AI will be happily missing character. Good luck with it, if you want to try it. P.S.: delete this immediately if you don't like it. I don't want to waste space.--[[User:Loser|Loser]] 18:11, 18 May 2009 (UTC) | |||
<!-- | <!-- |
Revision as of 18:11, 18 May 2009
BINA/ONIE: impact effects
XML notes
- More than one particle possible in particle part.
- Location #5: particle is fixed to character if origin is particle-character collision, not fixed if origin is character-character collision*. (* example: look up plasma shot "w3_phr_x02" and add it in particle section of <Impact Name="Kick_Hit">)
<div class="NavFrame collapsed" style="width:
<Orientation>0</Orientation> <Location>0</Location>
<Orientation>0</Orientation> <Location>4</Location> <Decal1>false</Decal1> <Decal2>true</Decal2>
<Orientation>3</Orientation> <Location>1</Location> <Offset>0.2</Offset>
<Orientation>0</Orientation> <Location>1</Location> <Offset>-1</Offset>
">
Visual guides: weapon, melee, environment
Note about philosophy in here:
- These visual guides don't claim be hundred percent right in technical way. I can't look into engine. But they should give a good hint which files are worth to care 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. =)
overview of involved files when modding ONIE in relation to weapons | |||
if weapon shall have impact effect on environment | if weapon shall have impact effect on characters | ||
|
|
overview of involved files when modding ONIE in relation to animations | |||
special attack | normal attack | ||
ONCC(ONIA) holds special attack modifier information (Any/Light/Medium/Heavy) for ONIE. |
Main difference is that ONIA is not used here but CBPI. Hurt sounds: So far, I'm not sure how hurt sounds (Light/Medium/Heavy) are chosen to be played. |
overview of involved files when modding ONIE in relation to characters | ||
if character hits ground | something left ? | |
For example, this is used when running around. Every step will trigger a step sound, different to ground's material: dirt, snow, metal, etc.. |
ONCC holds impact modifier information (Any/Light/Medium/Heavy) for ONIE.
|
examples
Particle - Character
Extra damage for head hits
<div class="NavFrame collapsed" style="width:
w1_tap and w2_sap deals additional damage, amount depends on material "head"/"helmet". Feel free to
extend/tweak/criticize.
damage overview:
w1_tap
- helmet: 4-5 damage; 0.6-1.7 knockback
- head: 8-10 damage; 1.7-2.8 knockback
w2_sap
- helmet: 2-3 damage; 0.3-0.8 knockback
- head: 4-5 damage; 0.8-1.4 knockback
basic modifications / new files:
MtrlHelmet.xml <?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.37.0"> <Instance id="0" type="Mtrl"> <ParentMaterial>MtrlArmor</ParentMaterial> </Instance> </Oni> ------------------------------------------------------------------------ MtrlHead.xml <?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.37.0"> <Instance id="0" type="Mtrl"> <ParentMaterial>MtrlFlesh</ParentMaterial> </Instance> </Oni> ------------------------------------------------------------------------ ONCCelite_hard_1.xml (Helmet is registered in eleventh link) [...] <Instance id="3" type="CBPM"> <Materials> [...] <Link>MtrlHelmet</Link> [...] [...] ------------------------------------------------------------------------ BINA3RAPhitheadW2_e01.xml [...] <Events> <HitCharacter> <DamageChar> <Damage> <Random Min="4" Max="5" /> </Damage> <StunDamage>0</StunDamage> <KnockBack> <Random Min="0.8" Max="1.4" /> </KnockBack> <DamageType>0</DamageType> <SelfImmune>1</SelfImmune> </DamageChar> <Die /> </HitCharacter> <Create> <FindAttractor> <DelayTime>0.1</DelayTime> </FindAttractor> <AttractHoming> <TurnSpeed>400</TurnSpeed> <PredictPosition>10</PredictPosition> <HorizontalOnly>0</HorizontalOnly> </AttractHoming> </Create> </Events> [...] ------------------------------------------------------------------------ BINA3RAPhithead_e01.xml, BINA3RAPhithelmet_e01.xml, BINA3RAPhithelmetW2_e01.xml similar to above ------------------------------------------------------------------------ BINAEINOimpact_effects.xml <?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.37.0"> <ImpactEffects> [...] <Impact Name="w1_tap"> [...] <Material Name="Helmet"> <ImpactEffect> <Component>Impact</Component> <Modifier>Any</Modifier> <Sound> <Name>ap_hit_hard</Name> <AICanHear>false</AICanHear> <AISoundType>0</AISoundType> <AISoundRadius>0</AISoundRadius> </Sound> <Particles> <Particle> <Name>hithelmet_e01</Name> <Orientation>0</Orientation> <Location>0</Location> </Particle> </Particles> </ImpactEffect> </Material> <Material Name="Head"> <ImpactEffect> <Component>Impact</Component> <Modifier>Any</Modifier> <Sound> <Name>ap_hit_body</Name> <AICanHear>false</AICanHear> <AISoundType>0</AISoundType> <AISoundRadius>0</AISoundRadius> </Sound> <Particles> <Particle> <Name>hithead_e01</Name> <Orientation>0</Orientation> <Location>0</Location> </Particle> </Particles> </ImpactEffect> </Material> [...]">
<div class="NavFrame collapsed" style="width:
Known bugs:
- vdg refused to work properly so I modified it to keep the original effect at least.
- screamers does too much damage in short time
Changes:
- Particle becomes attached now after spawning, should be more precise than being attracted.
- Added w15_smg into ONIE.
- Material Flesh and Cloth uses same damage dealing particle, "unprotected".
- files
material damage stun knockback (notes) w1_tap x 8-10 0 0.6-1.7 head +4 +0.2 +0.8 unprotected +2 +0 +0.2 helmet +3 +0.1 +0.4 w2_sap x 3-4 1 0.65-0.75 head +2 +0.3 +0.4 unprotected +1 +0.1 +0.1 helmet +1-2 +0.2 +0.25 w3_phr x M10 S1 10 3-5 head +4 +4 +3 unprotected +2 +2 +1 helmet +2 +1 +2 w4_psm x [4->1] 60-120 M2 S3 (less base damage now) head +1 +6 +0.7 (because there are more impact triggering particle) unprotected +0-1 +5 +0.3 (wall reflected beam deals no base damage but the additional, so yea, the beam get weaker) helmet +0-1 +1 +0.1 w5_sbg x 30-32 30 25 ("perfect shot" dealt already over 200 points) head +5 +4 +1 (therefore let's keep additional damage low here) unprotected +3 +2 +1 helmet +4 +3 +0.8 w6_vdg x 1 200 15 (needs debugging before getting released) head +0-1 +10 +0.7 unprotected +0 +6 +0.2 helmet +0 +0 +0 (no file) w7_scc x M7 S2 0 5-8 head +3 +0 +0.5 unprotected +1-2 +0 +0.3 helmet +1 +0 +0.4 w8_mbo x 60-80 40-60 30-40 head +15 +4 +3 unprotected +10 +2 +2 helmet +5 +3 +2-3 w9_scr (whatever .. it became too deadly) w10_sni x 40-60 10 10 head +4 +1 +0.6 unprotected +3 +0-1 +0.5 helmet +2 +0 +0.1 w11_ba1 x 12-30 20 20 head +3 +2 +1.2 unprotected +2 +1 +1 helmet +1 +0 +0.2 w12_ba2 x 2-8 10 0.5 head +3 +2 +0.15 unprotected +2 +1 +0.1 helmet +1 +0 +0.05 w13_muro - w14_muro - w15_smg x 7-9 1 0.65-0.75 head +4 +0.3 +0.4 unprotected +2 +0.2 +0.25 helmet +3 +0.1 +0.1 M=Mean S=StdDev (bell curve values)">
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:
- a couple weapons don't make sense with this system; the Screaming Cell doesn't strike your body at all, it absorbs life energy, so this idea is not applicable to this weapon; but I guess you've already dropped it from this system, so that's good
- secondly, the VDG also doesn't strike a point on the body to make its effect, it shocks the entire body. So I don't think the body part being "hit" is actually relevant for that weapon's stun effect, particularly since you can't really "aim" branching electricity at someone; also, the damage of 1HP is just a token value and should probably stay that way
- the Mercury Bow is an odd weapon; it fires a sliver at you which somehow is supposed to do great injury even though a bullet would probably do a lot more damage to someone's body in real life (supposed "mercury poisoning" effect of the sliver aside). What do you think about making the Bow do a good bit less damage to the body, and a lot more damage to the head? Since it's such a precise weapon, it seems more in line with the nature of the Bow to require accurate shots to do real damage (and I believe we might still be considering adding the sniper scope script to the AE, so long-range shots could also be accurate).
Anyway, thanks for the work, this looks cool! --Iritscen 17:27, 18 May 2009 (UTC)
- Yep
- Yep
- Disagree: the AI doesn't really do headshots.
- Gumby 17:30, 18 May 2009 (UTC)
- I guess you're right, I forgot to think about the AI that wouldn't know to aim for the head. --Iritscen 17:57, 18 May 2009 (UTC)
- AI can be learnt to score "headshots", however, that requires all characters to have similar height. In ONWC, some values around 0x100 - 0x120 in primary firing component if I recall correctly are used to tell AI where to aim according to its target's root (pelvis) when shooting with primary fire. It is set zero or low, so AI tends to shoot into stomach. Set Y component a bit higher to achieve chest/headshots. But then be prepared for consequences - if character is minimized (lenght from root to head is smaller), AI will be happily missing character. Good luck with it, if you want to try it. P.S.: delete this immediately if you don't like it. I don't want to waste space.--Loser 18:11, 18 May 2009 (UTC)
Mod ideas
- 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. Gumby 03:54, 10 May 2009 (UTC)
- For example, Ninja's PPK looks like it doesn't care whether it hit the head or an arm. It just has <HitAnimationType>HitHead</HitAnimationType> and this is played on target as long as PPK wasn't blocked, right? :/ Paradox-01 13:41, 10 May 2009 (UTC)
- D'oh. Yeah, forgot. Lazy\overworked Oni devs. >_< Hmm. Well we could almost implement locational attacks, except for a few problems. The most major one being the blue shield effect. ;) Gumby 00:54, 11 May 2009 (UTC)
- For example, Ninja's PPK looks like it doesn't care whether it hit the head or an arm. It just has <HitAnimationType>HitHead</HitAnimationType> and this is played on target as long as PPK wasn't blocked, right? :/ Paradox-01 13:41, 10 May 2009 (UTC)
- Footprints in snow. Should be possible through character-environment collision plus decals or particle which becomes fixed to the ground.
- Not quite. What would need to be done is have a particle attached to the character by spawning them and doing a single frame (basically 0, if interpolated, i think) animation to activate some attached particles that spawn decals. :)
- I think I know what you mean. The decal is every time dropped in first TRAM frame. An alternative might be to set CollideWithWalls=true in attached particle and use HitWall event to drop the decal. Paradox-01 13:41, 10 May 2009 (UTC)
- No, the decal emitter is attached in the frame of a special animation that spawns it. The alternative version is the easiest way to go, and won't get buggered by other things.Gumby 00:54, 11 May 2009 (UTC)
- I think I know what you mean. The decal is every time dropped in first TRAM frame. An alternative might be to set CollideWithWalls=true in attached particle and use HitWall event to drop the decal. Paradox-01 13:41, 10 May 2009 (UTC)
- We could also have this activate cold breath effects. :) The former would only be good if we had an actual snow level (or dirt :P), but the latter would be good for Compound. Gumby 03:54, 10 May 2009 (UTC)
- Yeah, that would be fun. ^^ Paradox-01 13:41, 10 May 2009 (UTC)
- Guns doing more damage to flesh\cloth than armour\metal.
- I had the same thought as you a while ago, when we first had ONIE modding unlocked for us. However, I think a better application might be for guns to deal less damage to armour than to flesh. In fact, all the neccessary materials are already in place, there are seperate effects for bullet hits already. :) Gumby 03:54, 10 May 2009 (UTC)
- Okay, I will add damage dealing particle for flesh/cloth material around next week. Paradox-01 13:41, 10 May 2009 (UTC)
- Coolio. Make sure to upload your files somewhere, or catch me on Yahoo. I'll include it as a package in the next AE. (Not that I don't know how to do it myself, but the installer is taking up all my Oni time atm...) Gumby 00:54, 11 May 2009 (UTC)
- Okay, I will add damage dealing particle for flesh/cloth material around next week. Paradox-01 13:41, 10 May 2009 (UTC)