Jump to content

Howto: Best practice for filtering Sexlab animations


Recommended Posts

Posted

What I am doing

Usecase 1: Creatures (always two actors - actor 0 always player)

Step 1

SexLab.GetCreatureAnimationsByRace(2,actors[1].GetRace())

or SexLab.PickAnimationsByActors(actors,999,true)

what shall I use?

Step 2

sslUtility.FilterTaggedAnimations(animations,PapyrusUtil.StringSplit(mustHaveTags))

return if result = none

Step 3

sslUtility.FilterTaggedAnimations(animations,PapyrusUtil.StringSplit(shoudNotHaveTags))

replace animations if return != none

Step 4

If player wears cuffs  - sslUtility.FilterTaggedAnimations(animations,PapyrusUtil.StringSplit("Armbinder,Bound,Wrists,Binding"))

return result if result != none

 

Usecase 2: Humans (actor 0 always player)

Step 1

if player is gagged - shoudNotHaveTags += "Oral"

if player wears anal plug or chastity belt - shoudNotHaveTags += "Anal"

if player wears vaginal plug or chastity belt - shoudNotHaveTags += "Vaginal"

SexLab.GetAnimationsByTags(actorCount,mustHaveTags,shoudNotHaveTags,requireAll)

Step 2

If player wears cuffs  - sslUtility.FilterTaggedAnimations(animations,PapyrusUtil.StringSplit("Armbinder,Bound,Wrists,Binding"))

return result if result != none

 

 

Is it better to drive usecase 1 even for human sex? Is there a better way for filtering?

Archived

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

  • Recently Browsing   0 members

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