Jump to content

Disabling bed use with creatures


Recommended Posts

Posted

Is there a way to stop/disable the use of beds, when that option is toggled in the MCM, for both the player and npcs when having sex with creatures? Some setting I could change in the esp, or script? Or is there a way when making the call to SexLab when setting up a sex animation to say that I don't want the player or npcs to use a bed, regardless of the MCM toggle?

  • 1 month later...
Posted

Going to bump this since it's still somewhat relevant to what I'm working on. I would like some way to prevent a sex animation from using nearby beds, even if the option is toggled in the MCM.

Posted

Depends. Without changing core scripts, you can only do it globally at AnimationStarting:

sslSystemConfig config = SexLabUtil.GetConfig()

askBedSaved = config.AskBed
npcBedSaved = config.NPCBed

config.AskBed = 0
config.NPCBed = 0

You can then restore them at AnimationStart if there is no chance of actors getting relocated (non-player scenes).

 

Unfortunately, some SexLab features are not coded like they should be in a framework and are only modifiable by changing and recompiling core scripts. If you are okay with that, change the following function within sslThreadModel.psc:

bool function CenterOnBed(bool AskPlayer = true, float Radius = 750.0)

and add an evaluation at the beginning of the function to return false under your specified conditions.

 

EDIT:

 

Actually, further reading the code, you can do this at AnimationStarting instead of changing global config parameters:

SexLab.GetController(tid).DisableBedUse()

The AnimationStarting event is sent before CenterOnBed is called, but there is no wait between them, so you still might get a race condition when doing it like this.

 

EDIT2:

 

Actually, start your scene with:

SexLab.StartSex(... AllowBed = false)

Problem solved and no race conditions.

Archived

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

  • Recently Browsing   0 members

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