;/ Decompiled by Champollion V1.0.1
Source   : NA_MainScript.psc
Modified : 2015-09-27 10:45:54
Compiled : 2015-09-27 10:46:10
User     : tma
Computer : TMA-LT
/;
scriptName na_mainscript extends Quest

;-- Properties --------------------------------------
cell property AnimalMansionCell auto
globalvariable property NA_JobCounter auto
actor property Werewolf auto
race property WerewolfRace auto
globalvariable property NA_JalaWorkActive auto
globalvariable property NA_MainQuestState auto
globalvariable property NA_MQAvailable auto
sexlabframework property SexLab auto
Quest property CurrentQuest auto
faction property NA_WorkerFaction auto
globalvariable property NA_NPCCheering auto
Quest property NA_JalaPrivateShow auto
Int property iNextStage auto
actor property PlayerRef auto
globalvariable property NA_NumJobs auto
race property OriginalRace auto

;-- Variables ---------------------------------------

;-- Functions ---------------------------------------

function StartSexNextStageNoCheering(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, none, none, none, none, "NextStageSex", "")
endFunction

function PlayerDogTrain(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage)

	actor[] sexActors = new actor[2]
	sexActors[0] = akActor1
	sexActors[1] = akActor2
	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTag(2, "dog", "", "", "", true)
	SexLab.StartSex(sexActors, anims, none, akActor1 as objectreference, true, "NextStageSex")
endFunction

function NextStageSexEvent(String eventName, String argString, Float argNum, form sender)

	CurrentQuest.SetStage(iNextStage)
	NA_NPCCheering.SetValue(0 as Float)
	self.UnregisterForModEvent("AnimationEnd_NextStageSex")
endFunction

function LeitoLesbian1(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage)

	; Empty function
endFunction

; Skipped compiler generated GetState

function UnderarmSpankingBlowjob(actor akActor1, actor akActor2)

	; Empty function
endFunction

function AssToMouth(actor akActor1, actor akActor2)

	sslthreadmodel thread = SexLab.NewThread(30.0000)
	sslbaseanimation[] anims1 = new sslbaseanimation[1]
	sslbaseanimation[] anims2 = new sslbaseanimation[1]
;	sslbaseanimation[] anims3 = new sslbaseanimation[1]
;	sslbaseanimation[] anims4 = new sslbaseanimation[1]
	anims1 = SexLab.GetAnimationsByTags(2, "anal", "aggressive", true)
;	anims2 = SexLab.GetAnimationsByTags(2, "anal", "aggressive", true)
;	anims3 = SexLab.GetAnimationsByTags(2, "anal", "aggressive", true)
	anims2 = SexLab.GetAnimationsByTags(2, "blowjob", "aggressive", true)
	thread.AddActor(akActor1, false, none, false)
;	thread.AddActor(akActor1, false, none, false)
;	thread.AddActor(akActor1, false, none, false)
	thread.AddActor(akActor2, false, none, false)
	thread.SetLeadAnimations(anims1)
;	thread.SetAnimations(anims2)
;	thread.SetAnimations(anims3)
	thread.SetAnimations(anims2)
	thread.CenterOnObject(akActor1 as objectreference, true)
	thread.StartThread()
endFunction

function StartGangbang(actor akActor1, actor akActor2, actor akActor3, actor akActor4, actor akActor5)

	SexLab.Quickstart(akActor1, akActor2, akActor3, akActor4, akActor5, none, "", "")
endFunction

function SpankingBlowjob(actor akActor1, actor akActor2)

	; Empty function
endFunction

function StartSpecificSex(actor akActor1, actor akActor2, String AnimationTag, String TagSuppress)

	actor[] sexActors = new actor[2]
	sexActors[0] = akActor1
	sexActors[1] = akActor2
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTags(2, AnimationTag, TagSuppress, true)
	SexLab.StartSex(sexActors, anims, none, none, true, "")
endFunction

function CheckJobCount()

	self.UpdateCurrentInstanceGlobal(NA_NumJobs)
	self.UpdateCurrentInstanceGlobal(NA_JobCounter)
	if NA_JobCounter.GetValue() > NA_NumJobs.GetValue()
		NA_MQAvailable.SetValue(1 as Float)
		NA_JobCounter.SetValue(1 as Float)
	endIf
endFunction

function StartSpecificSexNextStage(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage, String AnimationTag, String TagSuppress)

	actor[] sexActors = new actor[2]
	sexActors[0] = akActor1
	sexActors[1] = akActor2
	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTags(2, AnimationTag, TagSuppress, true)
	SexLab.StartSex(sexActors, anims, none, none, true, "NextStageSex")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function StartSpecific3PSexNextStage(actor akActor1, actor akActor2, actor akActor3, Quest myCurrentQuest, Int myNextStage, String AnimationTag, String TagSuppress)

	actor[] sexActors = new actor[3]
	sexActors[0] = akActor1
	sexActors[1] = akActor2
	sexActors[2] = akActor3
	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTags(2, AnimationTag, TagSuppress, true)
	SexLab.StartSex(sexActors, anims, none, none, true, "NextStageSex")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function WerewolfSex(actor akActor1, actor akActor2)

	Werewolf = akActor2
	OriginalRace = Werewolf.GetRace()
	Werewolf.SetRace(WerewolfRace)
	self.RegisterForModEvent("AnimationEnd_WerewolfSex", "WerewolfSexEvent")
	SexLab.Quickstart(akActor1, Werewolf, none, none, none, none, "WerewolfSex", "")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function StartAggressiveSexNextStageNoCheering(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, none, none, none, akActor1, "NextStageSex", "")
endFunction

function Start4P(actor akActor1, actor akActor2, actor akActor3, actor akActor4)

	SexLab.Quickstart(akActor1, akActor2, akActor3, akActor4, none, none, "", "")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function Start5P(actor akActor1, actor akActor2, actor akActor3, actor akActor4, actor akActor5)

	SexLab.Quickstart(akActor1, akActor2, akActor3, akActor4, akActor5, none, "", "")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function Start3PNextStageNoCheering(actor akActor1, actor akActor2, actor akActor3, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, akActor3, none, none, none, "NextStageSex", "")
endFunction

function WerewolfSexNextStage(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage, String AnimationTag, String AnimationTag2)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	Werewolf = akActor2
	OriginalRace = Werewolf.GetRace()
	Werewolf.SetRace(WerewolfRace)
	actor[] sexActors = new actor[2]
	sexActors[0] = akActor1
	sexActors[1] = Werewolf
	self.RegisterForModEvent("AnimationEnd_WerewolfSexNext", "WerewolfSexNextEvent")
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTag(2, AnimationTag, AnimationTag2, "", "", true)
	SexLab.StartSex(sexActors, anims, akActor1, none, true, "WerewolfSexNext")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

; Skipped compiler generated GotoState

function WerewolfSexEvent(String eventName, String argString, Float argNum, form sender)

	Werewolf.SetRace(OriginalRace)
	NA_NPCCheering.SetValue(0 as Float)
	self.UnregisterForModEvent("AnimationEnd_WerewolfSex")
endFunction

function FFMThreeway(actor akActor1, actor akActor2, actor akActor3)
;function MMFThreeway(actor akActor1, actor akActor2, actor akActor3)

	; Empty function
endFunction

function StartDP(actor akActor1, actor akActor2, actor akActor3)

	SexLab.Quickstart(akActor1, akActor2, akActor3, none, none, none, "", "")
endFunction

function StartNormalSex(actor akActor1, actor akActor2)

	SexLab.Quickstart(akActor1, akActor2, none, none, none, none, "", "")
endFunction

function DraugrPunishmentFuck(actor akActor1, actor akActor2, actor akActor3, actor akActor4, Quest myCurrentQuest, Int myNextStage)

	actor[] sexActors = new actor[4]
	sexActors[0] = akActor1
	sexActors[1] = akActor2
	sexActors[2] = akActor3
	sexActors[3] = akActor4
	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	sslbaseanimation[] anims = new sslbaseanimation[1]
	anims = SexLab.GetAnimationsByTag(4, "draugr", "", "", "", true)
	SexLab.StartSex(sexActors, anims, akActor1, akActor2 as objectreference, true, "NextStageSex")
endFunction

function StartAggressiveSex(actor akActor1, actor akActor2)

	SexLab.Quickstart(akActor1, akActor2, none, none, none, akActor1, "", "")
endFunction

function CheckJalaWork(Float fInterval)

	; Empty function
endFunction

function StartSexNextStage(actor akActor1, actor akActor2, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, none, none, none, none, "NextStageSex", "")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function Start5PNextStageNoCheering(actor akActor1, actor akActor2, actor akActor3, actor akActor4, actor akActor5, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, akActor3, akActor4, akActor5, none, "NextStageSex", "")
endFunction

function WerewolfSexNextEvent(String eventName, String argString, Float argNum, form sender)

	Werewolf.SetRace(OriginalRace)
	CurrentQuest.SetStage(iNextStage)
	NA_NPCCheering.SetValue(0 as Float)
	self.UnregisterForModEvent("AnimationEnd_WerewolfSex")
endFunction

function StartDPNextStage(actor akActor1, actor akActor2, actor akActor3, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, akActor3, none, none, none, "", "")
	NA_NPCCheering.SetValue(1 as Float)
endFunction

function Start4PNextStageNoCheering(actor akActor1, actor akActor2, actor akActor3, actor akActor4, Quest myCurrentQuest, Int myNextStage)

	CurrentQuest = myCurrentQuest
	iNextStage = myNextStage
	self.RegisterForModEvent("AnimationEnd_NextStageSex", "NextStageSexEvent")
	SexLab.Quickstart(akActor1, akActor2, akActor3, akActor4, none, none, "NextStageSex", "")
endFunction
