Guest User

Untitled

a guest
Nov 22nd, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
  2. ;NEXT FRAGMENT INDEX 1
  3. Scriptname slac_TopicCreaturePCOralReceive Extends TopicInfo Hidden
  4.  
  5. ;BEGIN FRAGMENT Fragment_0
  6. Function Fragment_0(ObjectReference akSpeakerRef)
  7. Actor akSpeaker = akSpeakerRef as Actor
  8. ;BEGIN CODE
  9.  
  10. ; Creature performs oral sex on
  11. Actor Creature = CreatureRef.GetActorRef()
  12. String CreatureName = CreatureRef.GetActorRef().GetLeveledActorBase().GetName()
  13. String RejTags = ""
  14.  
  15. If !slacUtility.TestCreature(Creature, invited = True) || !slacUtility.TestVictim(PlayerRef,Creature, inviting = True)
  16. slacUtility.Log("The " + CreatureName + " has no interested in pleasuring you", forceNote = slacConfig.showNotificationsNPC)
  17. Return
  18. EndIf
  19.  
  20. ; Indicate inviting status to block other engagements via TestCreature/TestVictim
  21. PlayerRef.AddToFaction(slacConfig.slac_InvitingFaction)
  22. Creature.AddToFaction(slacConfig.slac_InvitedFaction)
  23.  
  24. If slacUtility.TreatAsSex(playerRef,Creature) == 1
  25. If slacUtility.SexLab.GetGender(Creature) == 2
  26. RejTags = "BlowJob" ; Male creature performs on female PC
  27. EndIf
  28. If slacConfig.inviteAnimationPC
  29. slacUtility.StripActor(PlayerRef)
  30. slacUtility.PlayInviteAnimation(PlayerRef,Creature)
  31. Utility.Wait(3.0)
  32. EndIf
  33. Else
  34. If slacUtility.SexLab.GetGender(Creature) == 3
  35. RejTags = "Cunnilingus" ; Female creature performs on male PC
  36. EndIf
  37. EndIf
  38.  
  39. If slacUtility.StartCreatureSex(PlayerRef, Creature, False, requireTags = "Oral", rejectTags = RejTags)
  40. ; Success: Start sex with reject tags
  41. slacUtility.Log("The aroused " + CreatureName + " is willing",False,slacConfig.showNotificationsNPC)
  42. ElseIf RejTags != "" && slacUtility.StartCreatureSex(PlayerRef, Creature, False, requireTags = "Oral")
  43. ; Fallback: Start sex without reject tags
  44. slacUtility.Log("Could not find oral animations for " + Creature + " without the " + RejTags + " tag")
  45. slacUtility.Log("The aroused " + CreatureName + " wants something else",False,slacConfig.showNotificationsNPC)
  46. Else
  47. ; Failure
  48. slacUtility.UnstripActor(PlayerRef)
  49. slacUtility.StopInviteAnimation(PlayerRef,Creature)
  50. slacUtility.Log("No oral animations available for " + Creature)
  51. slacUtility.Log(CreatureName + " is not interested",False,slacConfig.showNotificationsNPC)
  52. EndIf
  53.  
  54. ; Reset inviting status
  55. PlayerRef.RemoveFromFaction(slacConfig.slac_InvitingFaction)
  56. Creature.RemoveFromFaction(slacConfig.slac_InvitedFaction)
  57.  
  58. slacConfig.slac_CreatureDialogueSignal.SetValue(0)
  59. ;END CODE
  60. EndFunction
  61. ;END FRAGMENT
  62.  
  63. ;END FRAGMENT CODE - Do not edit anything between this and the begin comment
  64.  
  65. Quest Property CreatureDialogueQuest Auto
  66. ReferenceAlias Property CreatureRef Auto
  67. Actor Property PlayerRef Auto
  68. slac_Utility Property slacUtility Auto
  69. slac_Config Property slacConfig Auto
Add Comment
Please, Sign In to add comment