Jump to content

How do sexlab determine which cum texture to apply and which file does it.


Recommended Posts

Posted
1 hour ago, A random name said:

but how does it detect which kind? like anal, oral, etc

It uses the tags for the sex act.  If the tags say "vaginal" then those get applied, if the tag have multiple such as "Oral, Anal" then cum is applied to all.   If you want to get the tags then you need to use the events sent out by Sexlab so you can examine the tags yourself.

 

In your case you'll want to subscribe to catch orgasm event notifications so you can apply your own cum.

Posted
46 minutes ago, A random name said:

How do I check the events? @WaxenFigure

I did it like this:

Spoiler

event OnInit()

	parent.OnInit() ; Don't forget to call the parent!

	; Register for Sexlab Events
	;Debug.Notification("SLAS - Initialization")
	;Debug.Trace("SLAS - Initialization")
	RegisterForModEvent("AnimationStart","SLAS_SexIsStarting")
	RegisterForModEvent("AnimationEnding","SLAS_SexIsEnding")

endEvent

event OnGameReload()

	parent.OnGameReload() ; Don't forget to call the parent!
	;Debug.Notification("SLAS - Game reloaded - re-registering events")
	;Debug.Trace("SLAS - Game reloaded - re-registering events")
	; Register for Sexlab Events
	
	UnRegisterForModEvent("AnimationStart")
	UnRegisterForModEvent("AnimationEnding")
	
	RegisterForModEvent("AnimationStart","SLAS_SexIsStarting")
	RegisterForModEvent("AnimationEnding","SLAS_SexIsEnding")
	

endEvent

event SLAS_SexIsStarting(string eventName, string argString, float argNum, form sender)
	Actor[] actorList = SexLab.HookActors(argString)
	sslThreadController controller = SexLab.HookController(argString)
	sslBaseAnimation anim = SexLab.HookAnimation(argString)
	If PlayerInvolved && Sexlab.GetPlayerController() != controller
		;Debug.Notification("SLAS Not player involved")
		;Debug.Trace("SLAS Not player involved")
		Return
	endIf
	if actorList.Length > 1
		int i = 0
		while (i < actorList.Length)
			CheckForTransparency(Actorlist[i])
			i += 1
		endWhile
	endIf
endEvent

event SLAS_SexIsEnding(string eventName, string argString, float argNum, form sender)
	Actor[] actorList = SexLab.HookActors(argString)
	sslThreadController controller = SexLab.HookController(argString)
	sslBaseAnimation anim = SexLab.HookAnimation(argString)
	if actorList.Length > 1
		int i = 0
		while (i < actorList.Length)
			if ActorList[i].GetFactionRank(SLAS_ActorIsTransparent) == 1
				SetActorSolid(Actorlist[i])
			endIf
			i += 1
		endWhile
	endIf
endEvent

 

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...