Jump to content

SLP+ and SentientNPC vs NonSentientNPC Creature Checks


Recommended Posts

Posted (edited)

In OG Sexlab, there was a way to different between SentientNPCs and NonSentientNPC for Creature support, and I used that in SLSubmit.
 

bool Function SentientNPC(Actor Target)
    If (_SLConfig.VictimRapeActive && SexlabConfig.bAllowCreatures && Sexlab.AllowedCreature(Target.GetRace()) && (Target.GetRace() == Werewolf || Target.GetRace() == Draugr || Target.GetRace() == DraugrMagic || Target.GetRace() == Falmer || Target.GetRace() == Troll || Target.GetRace() == FrostTroll || Target.GetRace() == DLC1Gargoyle || Target.GetRace() == DLC1GargoyleVariantBoss || Target.GetRace() == DLC1GargoyleVariantGreen || Target.GetRace() == DLC1VampireBeast || Target.GetRace() == SkeletonArmor || Target.GetRace() == DLC1SoulCairnKeeper || Target.GetRace() == DLC1SoulCairnSkeletonArmor || Target.GetRace() == DLC2Seeker || Target.GetRace() == DLC2AshSpawn || Target.GetRace() == Giant))
        return True
    Else
        return False
    EndIf
EndFunction

and 

bool Function NonSentientNPC(Actor Target)
    If (_SLConfig.VictimRapeActive && SexlabConfig.bAllowCreatures && Sexlab.AllowedCreature(Target.GetRace()) && (Target.GetRace() == BearBlack || Target.GetRace() == BearBrown || Target.GetRace() == BearSnow || Target.GetRace() == SabreCat || Target.GetRace() == SabreCatSnowy || Target.GetRace() == Chaurus || Target.GetRace() == ChaurusReaper || Target.GetRace() == Dragon || Target.GetRace() == UndeadDragon || Target.GetRace() == Horse || Target.GetRace() == FrostBiteSpider || Target.GetRace() == FrostBiteSpiderGiant || Target.GetRace() == FrostBiteSpiderLarge || Target.GetRace() == Wolf || Target.GetRace() == Dog || Target.GetRace() == DogCompanion || Target.GetRace() == MG07Dog || Target.GetRace() == DA03BarbasDog || Target.GetRace() == DLC1HuskyArmoredCompanion || Target.GetRace() == DLC1DeathHoundCompanion || Target.GetRace() == DLC1DeathHound))
        return True
    Else
        return False
    EndIf
EndFunction

These both worked perfectly fine.  IIRC, in OG SL, the player can turn on/off each individual one, and if turned on in the Framework, and the correct level of support was turned on in Submit, it would treat it as a valid NPC for purposes of adding actors and such.

 

But now while using SLP+, using that exact same script, testing with a simple default wolf, those return false no matter what.

 

I looked through here:

https://slp-community.github.io/SexLab-Wiki/

But didn't see anything that really mentioned creatures at all, so figured I'd ask here to see if any modders knew what was up.

 

[Edit]Nevermind, it is working.  I had my debug.notification setup incorrectly.

Edited by dkatryl

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