Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejAndb committed Feb 2, 2024
1 parent a30bdf7 commit 32e9193
Show file tree
Hide file tree
Showing 2 changed files with 4,134 additions and 4,134 deletions.
106 changes: 53 additions & 53 deletions Scripts/Source/defeat_skse_api.psc
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
scriptName defeat_skse_api Hidden
; ---
; Event OnSLDefeatPlayerKnockDown (ObjectReference akAggressor, string eventName)
; ---
; On Player Knock Downed. Must be attached to ReferenceAlias of Player
; `eventName` can be:
; - "KNONKDOWN"
; - "KNONKOUT"
; - "STANDING_STRUGGLE"
;
; ---
; Event OnSLDefeatQueryActor
; ---
;

Import Debug
Import StorageUtil

; Set state of actor for processing: "ACTIVE", "DISACTIVE"
Function setActorState(actor Actorref, string _state) global native

; 'Temporary' workaround interface for request->response extradata for Hit processing. This data is cashed, and requests no more than once every few minutes per actor
Function responseActorExtraData(actor actorref, Bool IgnoreActorOnHit, int SexLabGender, int SexLabSexuality, Bool SexLabAllowed, String SexLabRaceKey, Float DFWVulnerability) global native
Function requestActorExtraData(actor actorref) global
SexLabFramework SexLab = SexLabUtil.GetAPI()
SexLab.Stats.SeedActor(actorref)

Bool IgnoreActorOnHit = StorageUtil.FormListHas(none, "Defeat_IgnoreActor_OnHit", actorref)
int SexLabGender = SexLab.GetGender(actorref)
int SexLabSexuality = 0
Bool SexLabAllowed = true
String RaceKey = ""
Float DFWVulnerability = 0.0

DefeatPlayer DefPlayerScr = Quest.GetQuest("DefeatPlayerQST").GetAlias(0) as DefeatPlayer
DefPlayerScr.McmConfig.VulnerabilityValueGag

If Game.GetPlayer() == actorref && DefPlayerScr.RessConfig.DeviousFrameworkON && DefPlayerScr.McmConfig.KDWayVulnerabilityUseDFW
DFWVulnerability = DefeatUtil2.DFW_GetVulnerability(actorref)
EndIf

If !actorref.HasKeyWordString("ActorTypeNPC")
SexLabAllowed = SexLab.AllowedCreature(actorref.GetLeveledActorBase().GetRace())
RaceKey = sslCreatureAnimationSlots.GetRaceKey(actorref.GetLeveledActorBase().GetRace())
Else
If DefPlayerScr.McmConfig.SexualityPvic
SexLabSexuality = SexLab.GetSexuality(actorref)
Endif
Endif



responseActorExtraData(actorref, IgnoreActorOnHit, SexLabGender, SexLabSexuality, SexLabAllowed, RaceKey, DFWVulnerability)
scriptName defeat_skse_api Hidden
; ---
; Event OnSLDefeatPlayerKnockDown (ObjectReference akAggressor, string eventName)
; ---
; On Player Knock Downed. Must be attached to ReferenceAlias of Player
; `eventName` can be:
; - "KNOCKDOWN"
; - "KNOCKOUT"
; - "STANDING_STRUGGLE"
;
; ---
; Event OnSLDefeatQueryActor
; ---
;

Import Debug
Import StorageUtil

; Set state of actor for processing: "ACTIVE", "DISACTIVE"
Function setActorState(actor Actorref, string _state) global native

; 'Temporary' workaround interface for request->response extradata for Hit processing. This data is cashed, and requests no more than once every few minutes per actor
Function responseActorExtraData(actor actorref, Bool IgnoreActorOnHit, int SexLabGender, int SexLabSexuality, Bool SexLabAllowed, String SexLabRaceKey, Float DFWVulnerability) global native
Function requestActorExtraData(actor actorref) global
SexLabFramework SexLab = SexLabUtil.GetAPI()
SexLab.Stats.SeedActor(actorref)

Bool IgnoreActorOnHit = StorageUtil.FormListHas(none, "Defeat_IgnoreActor_OnHit", actorref)
int SexLabGender = SexLab.GetGender(actorref)
int SexLabSexuality = 0
Bool SexLabAllowed = true
String RaceKey = ""
Float DFWVulnerability = 0.0

DefeatPlayer DefPlayerScr = Quest.GetQuest("DefeatPlayerQST").GetAlias(0) as DefeatPlayer
DefPlayerScr.McmConfig.VulnerabilityValueGag

If Game.GetPlayer() == actorref && DefPlayerScr.RessConfig.DeviousFrameworkON && DefPlayerScr.McmConfig.KDWayVulnerabilityUseDFW
DFWVulnerability = DefeatUtil2.DFW_GetVulnerability(actorref)
EndIf

If !actorref.HasKeyWordString("ActorTypeNPC")
SexLabAllowed = SexLab.AllowedCreature(actorref.GetLeveledActorBase().GetRace())
RaceKey = sslCreatureAnimationSlots.GetRaceKey(actorref.GetLeveledActorBase().GetRace())
Else
If DefPlayerScr.McmConfig.SexualityPvic
SexLabSexuality = SexLab.GetSexuality(actorref)
Endif
Endif



responseActorExtraData(actorref, IgnoreActorOnHit, SexLabGender, SexLabSexuality, SexLabAllowed, RaceKey, DFWVulnerability)
EndFunction

0 comments on commit 32e9193

Please sign in to comment.