Jump to content

NiOverride actions *other than scale* don't stick


Recommended Posts

(I'm posting this here as I suspect it has as much to do with HDT-PE as NiOverride/Netimmerse.)

 

I am attempting to cause non-scale breast changes via either scripting or adding Nioverrides directly to the NIF.

 

In either case, it works only in the equip menu, but as soon as the physics kick back in on exiting menu, the changes revert to normal physics-driven behavior.

 

Anyone have an experience with this, or any suggestions for making the changes stick?

 

Specifically trying rotation (roll) and positional movement (Z and Y axis)

 

Sample of the script:

 

Scriptname ChainPiercingLiftMagicEffect extends ActiveMagicEffect 

float property LZ = 0.0 auto
float property RZ = 0.0 auto
float property LY = 0.0 auto
float property RY = 0.0 auto
float property LB = 1.0 auto
float property RB = 1.0 auto

Event OnEffectStart(actor akTarget,Actor akCaster)
    if akTarget
        LZ = NetImmerse.GetNodeLocalPositionZ(akTarget,"NPC L Breast", false)
        RZ = NetImmerse.GetNodeLocalPositionZ(akTarget,"NPC R Breast", false)
        LY = NetImmerse.GetNodeLocalPositionY(akTarget,"NPC L Breast", false)
        RY = NetImmerse.GetNodeLocalPositionY(akTarget,"NPC R Breast", false)
        NetImmerse.SetNodeLocalPositionZ(akTarget,"NPC L Breast", 2.5, false)
        NetImmerse.SetNodeLocalPositionZ(akTarget,"NPC R Breast", 2.5, false)
        NetImmerse.SetNodeLocalPositionY(akTarget,"NPC L Breast", -2, false)
        NetImmerse.SetNodeLocalPositionY(akTarget,"NPC R Breast", -2, false)
        LB = NetImmerse.GetNodeScale(akTarget,"NPC L Breast", false)
        RB = NetImmerse.GetNodeScale(akTarget,"NPC R Breast", false)
        float LBMod = LB*1.3
        float RBMod = RB*1.3
        NetImmerse.SetNodeScale(akTarget,"NPC L Breast", LBMod, false)
        NetImmerse.SetNodeScale(akTarget,"NPC R Breast", RBMod, false)
    EndIf
EndEvent

Event OnEffectFinish(actor akTarget,Actor akCaster)
    if akTarget
        NetImmerse.SetNodeLocalPositionZ(akTarget,"NPC L Breast", LZ, false)
        NetImmerse.SetNodeLocalPositionZ(akTarget,"NPC R Breast", RZ, false)
        NetImmerse.SetNodeLocalPositionY(akTarget,"NPC L Breast", LY, false)
        NetImmerse.SetNodeLocalPositionY(akTarget,"NPC R Breast", RY, false)
        NetImmerse.SetNodeScale(akTarget,"NPC L Breast", LB, false)
        NetImmerse.SetNodeScale(akTarget,"NPC R Breast", RB, false)
    EndIf
EndEvent

I've tried this (or a variation of it) as an effect atted to the object, a magic enchantment, and as a modification to the nif.

 

Note that with the NIF, none of these worked except height (as with high heel effects).  I couldn't get scaling to work either in that case, so it may be a conflict with Racemenu?  As a note, I do have several Racemenu-based modifications already on the target character, but these don't prevent the initial changes, only in them lasting once exiting the menu.

 

Works for the briefest moment, until time starts again (exiting the menu).

 

Suggestions?  Is this impossible without losing HDT physics as well?

 

Thanks.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use