mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-06-23 23:08:26 +00:00
[NAK_CVR_Mods] Unfucked for 2026r182
This commit is contained in:
parent
c13dc8375a
commit
281403d68b
209 changed files with 3936 additions and 1122 deletions
|
|
@ -58,15 +58,19 @@ public class PlapPlapForAllMod : MelonMod
|
|||
if (!Friends.FriendsWith(player.PlayerId))
|
||||
return;
|
||||
|
||||
// AdvTags check mask
|
||||
CVRAvatarAdvancedTaggingEntry.Tags findTags = 0;
|
||||
findTags |= CVRAvatarAdvancedTaggingEntry.Tags.Explicit;
|
||||
findTags |= CVRAvatarAdvancedTaggingEntry.Tags.Suggestive;
|
||||
|
||||
// Ensure the avatar is NSFW
|
||||
UgcContentTags tags = player.AvatarMetadata.TagsData;
|
||||
if (tags is { Suggestive: false, Explicit: false } // Main tags
|
||||
&& !avatar.TagHandledByAdvancedTagging(CVRAvatarAdvancedTaggingEntry.Tags.Suggestive) // Advanced tags
|
||||
&& !avatar.TagHandledByAdvancedTagging(CVRAvatarAdvancedTaggingEntry.Tags.Explicit))
|
||||
&& !HasAdvTags(avatar.advancedTaggingList, findTags)) // Advanced tags
|
||||
return;
|
||||
|
||||
// Ensure mature content is allowed by user settings
|
||||
if (!MetaPort.Instance.matureContentAllowed)
|
||||
if (!MetaPort.Instance.MatureContentPermitted)
|
||||
return;
|
||||
|
||||
GameObject avatarObject = avatar.gameObject;
|
||||
|
|
@ -102,6 +106,19 @@ public class PlapPlapForAllMod : MelonMod
|
|||
}
|
||||
}
|
||||
|
||||
private static bool HasAdvTags(
|
||||
List<CVRAvatarAdvancedTaggingEntry> list,
|
||||
CVRAvatarAdvancedTaggingEntry.Tags findTags)
|
||||
{
|
||||
foreach (CVRAvatarAdvancedTaggingEntry entry in list)
|
||||
{
|
||||
// If entry is dead or no tags are blocked, go to next entry
|
||||
if (entry == null || (entry.tags & findTags) == 0) continue;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Asset Bundle Loading */
|
||||
|
||||
private const string PlapPlapAssetsName = "PlapPlapForAll.Resources.plap plap.assets";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue