User:Migck

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

I hate red links.

Damage testing[edit | edit source]

Did some testing of damage output with an OnHealthDamage handler.

Hand to Hand blocking only reduces the damage of unarmed attacks, from creature or NPCs. It does not affect weapon damage taken, at all. The only benefit it gives when trying to block weapons is the occasional recoil when being a Block journeyman (iPerkHandToHandBlockRecoilChance, but it still causes an "impact event" with blood and knockback and no blockhit anim), or the assured recoil (and blockhit anim with no knockback nor blood) when being a H2H journeyman.
This makes one wonder what's the point of the fBlockAmountHandToHandMult setting applying a lower multiplier than shield or weapon blocking, since it is only going to affect blocking unarmed attacks anyway, shouldn't it be the same as regular shield blocking to compensate?

Bow damage is the sum of the damage from the bow and from the arrow used. It will ignore any normal weapon resistance values if either the bow or the arrow have the flag for it.

Creatures' unarmed damage is independent of strength or H2H skill. Base is the creature's unarmed damage as set in the editor, plus its level x fCreatureCalcDamage if it has the PC level offset flag. It ignores all normal weapon resistance values unless the target has 100% of it to avoid even the hit connecting AND the creature's base H2H is under journeyman level. It is affected by the creature's fatigue rating, rounded up and floored to a minimum of 1 before applying reductions from armor rating, block, etc.

All normal weapon resistance values are ignored when either the weapon/bow or arrow are poisoned or enchanted, even if the weapon has no enchantment charge left. Normal weapon resistance/weakness is thus useless in a great too many cases where it could help. And normal weapon weakness values (< 0) don't even do anything unless using the AVUncapper plugin by JRoush, which as it seems has only fixed one of the many problems with it.

Damage Order[edit | edit source]

  1. When attacking with bow and arrow, OnHitWith goes first, with the arrow as the weapon.
  2. OnMagicEffectHit goes first in any other case, if applicable.
  3. OnMagicApply goes next, once for each effect in the magic item, if applicable.
  4. OnHit goes next. Applies to any weapon/unarmed/spell hit. If there are several magic effects, OnHit goes after the first of them.
  5. OnMagicEffectHit and OnMagicApply from poisons, if present, go after OnHit.
  6. OnHitWith goes next, if attacking with an actual weapon.
    1. In the case of bow and arrow, OnHitWith only returns the arrow. After OnHit, the effects from the poison and on the bow if present are returned by OnMagicEffectHit and OnMagicApply.
  7. OnHealthDamage goes at the end. First goes the damage done by the weapon itself, then by poison, then enchantment if applicable. Arrow's enchantment goes before bow's.

Block testing[edit | edit source]

Block looks like an engine code crapshot when the perks come into play.

When blocking with H2H, the block hit animation, and the attacker block recoil if suitable, can be triggered when not even facing the attacker. Damage is correctly calculated though.

The block master perk (attacker disarm) in theory should be triggered by a shield bash from the block expert perk (shield bash). In practice, they are "semi-independent". If a block bash is triggered (iPerkBlockStaggerChance), the chance to disarm (iPerkBlockDisarmChance) can only be rolled from there, if it connects with an actor (gotta wonder what's the max distance/angle for the block bash to connect). BUT, the attacker may be disarmed if his hit is blocked without a shield bash being triggered just as well, if the chance happens to roll. What's more egregious is that this can happen when blocking arrows, with the actor who fired the bow dropping it to the ground no matter the distance to the target who blocked.

Not to mention, when the block bash triggers, the blocker is no longer blocking: you lose your cover in a non-controlled manner with this perk.

The exact same problems happen when blocking with H2H, except in that case the H2H skill level is used instead of Block to determine perks available.

Miscellaneous fail[edit | edit source]

  • The LifeDetected shader is so speshiul... other shaders lose intensity together with the actor's alpha. Even an exact copy of it, so you can be sure it's at the engine level and not because of its record properties.
    • Oh well Saebel figured that changing the blend type to One/Chroma or whatever solves that, but particle shaders with that go square on my PC, so whatever.
  • GetNthAEEnchantObject is the arrow in all cases when firing an enchanted bow.
  • OnMurder event handler doesn't work, I could have sworn it did work before though.
  • Nor does GetCurrentEventName work inside any handler.
  • Long version of IsMEDetrimental --> IsMagicEffectDetrmimental.
  • IsThirdPerson always returns 1 when in a function, or in the compiler override, or what the fuck is happening man?
  • GetBookSkillTaught always returns -1 if trying to call it from OnActorEquip? And what's with skill nº21 (conjuration) when trying to manipulate it? Is that still the MenuQue issue?