Jump to content

Falling after shock for Devious Devices Integration 4.0


Recommended Posts

On 5/11/2023 at 4:47 PM, krzp said:

Tried implementing it for the 5.2 release version.

 

 

  Hide contents

        if vPiercing && (vPiercing.HasKeyword(libs.zad_EffectShocking))
            libs.NotifyPlayer("The piercings within you let out a painful jolt!")
            Game.ForceThirdPerson()
            libs.Trip(akActor)

            libs.Log("zadEventPeriodicShocker: vPiercing")
        ElseIf vPlug && (vPlug.HasKeyword(libs.zad_EffectShocking))
            libs.NotifyPlayer("The plug within you let out a painful jolt!")
            Game.ForceThirdPerson()
            libs.Trip(akActor)

            libs.Log("zadEventPeriodicShocker: vPlug")
        Else
            libs.NotifyPlayer("A painful jolt courses through you!")
            Game.ForceThirdPerson()
            libs.Trip(akActor)

            libs.Log("zadEventPeriodicShocker: generic")
        EndIf

 

  Hide contents

Event OnVibrateStop(string eventName, string argString, float argNum, form sender)
    libs.Log("OnVibrateStop("+argString+", "+Target.GetLeveledActorBase().GetName()+")")
    if Target && argString == Target.GetLeveledActorBase().GetName()
        if Target == libs.playerRef
            libs.NotifyPlayer("Your plugs jolt you with an electric shock!")
            libs.Log("zadShockVibEffect: ShockActor")
            Game.ForceThirdPerson()
            libs.Trip(Target)

        Else
            libs.NotifyNPC(Target.GetName() + " squirms uncomfortably as the plugs within her let out a painful jolt!")
        EndIf
 

 

Does make the game a little bit more annoying, but also adds to the challenge. 

Overwrite /scripts/.

 

(backups are mandatory, naturally)

zadEventPeriodicShocker.pex 2.46 kB · 15 downloads zadShockVibEffect.pex 2.51 kB · 14 downloads

 

Does this work with SSE?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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