Added censorship to player impostor and player cinematic
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "NakedDesireCharacter.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
#include "NakedDesire/Censorship/CensorshipComponent.h"
|
||||
#include "NakedDesire/Clothing/ClothingManager.h"
|
||||
#include "NakedDesire/Clothing/ClothingVisualsComponent.h"
|
||||
|
||||
@@ -11,6 +12,17 @@ APlayerCinematic::APlayerCinematic()
|
||||
PrimaryActorTick.bCanEverTick = false;
|
||||
|
||||
ClothingVisualsComponent = CreateDefaultSubobject<UClothingVisualsComponent>(TEXT("Clothing Visuals Component"));
|
||||
|
||||
BoobLCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Boob L Censorship"));
|
||||
BoobLCensorship->SetupAttachment(GetMesh(), FName(TEXT("boob_l")));
|
||||
BoobRCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Boob R Censorship"));
|
||||
BoobRCensorship->SetupAttachment(GetMesh(), FName(TEXT("boob_r")));
|
||||
VaginaCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Vagina Censorship"));
|
||||
VaginaCensorship->SetupAttachment(GetMesh(), FName(TEXT("pelvis")));
|
||||
AnalCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Anal Censorship"));
|
||||
AnalCensorship->SetupAttachment(GetMesh(), FName(TEXT("pelvis")));
|
||||
|
||||
CensorshipComponent = CreateDefaultSubobject<UCensorshipComponent>(TEXT("Censorship Component"));
|
||||
}
|
||||
|
||||
void APlayerCinematic::BeginPlay()
|
||||
@@ -24,4 +36,5 @@ void APlayerCinematic::BeginPlay()
|
||||
}
|
||||
|
||||
ClothingVisualsComponent->Initialize(GetMesh(), Player->ClothingManager);
|
||||
CensorshipComponent->Initialize(Player->ClothingManager, BoobLCensorship, BoobRCensorship, VaginaCensorship, AnalCensorship);
|
||||
}
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
class ANakedDesireCharacter;
|
||||
class UClothingVisualsComponent;
|
||||
class UCensorshipComponent;
|
||||
class UStaticMeshComponent;
|
||||
|
||||
UCLASS()
|
||||
class NAKEDDESIRE_API APlayerCinematic : public ACharacter
|
||||
@@ -15,6 +17,21 @@ class NAKEDDESIRE_API APlayerCinematic : public ACharacter
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Clothing")
|
||||
UClothingVisualsComponent* ClothingVisualsComponent;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* BoobLCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* BoobRCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* VaginaCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* AnalCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UCensorshipComponent* CensorshipComponent;
|
||||
|
||||
UPROPERTY()
|
||||
ANakedDesireCharacter* Player;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "NakedDesireCharacter.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
#include "NakedDesire/Censorship/CensorshipComponent.h"
|
||||
#include "NakedDesire/Clothing/ClothingManager.h"
|
||||
#include "NakedDesire/Clothing/ClothingVisualsComponent.h"
|
||||
|
||||
@@ -17,6 +18,17 @@ APlayerImpostor::APlayerImpostor()
|
||||
Mesh->SetupAttachment(RootComponent);
|
||||
|
||||
ClothingVisualsComponent = CreateDefaultSubobject<UClothingVisualsComponent>(TEXT("Clothing Visuals Component"));
|
||||
|
||||
BoobLCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Boob L Censorship"));
|
||||
BoobLCensorship->SetupAttachment(GetMesh(), FName(TEXT("boob_l")));
|
||||
BoobRCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Boob R Censorship"));
|
||||
BoobRCensorship->SetupAttachment(GetMesh(), FName(TEXT("boob_r")));
|
||||
VaginaCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Vagina Censorship"));
|
||||
VaginaCensorship->SetupAttachment(GetMesh(), FName(TEXT("pelvis")));
|
||||
AnalCensorship = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Anal Censorship"));
|
||||
AnalCensorship->SetupAttachment(GetMesh(), FName(TEXT("pelvis")));
|
||||
|
||||
CensorshipComponent = CreateDefaultSubobject<UCensorshipComponent>(TEXT("Censorship Component"));
|
||||
}
|
||||
|
||||
void APlayerImpostor::BeginPlay()
|
||||
@@ -30,4 +42,5 @@ void APlayerImpostor::BeginPlay()
|
||||
}
|
||||
|
||||
ClothingVisualsComponent->Initialize(GetMesh(), Player->ClothingManager);
|
||||
CensorshipComponent->Initialize(Player->ClothingManager, BoobLCensorship, BoobRCensorship, VaginaCensorship, AnalCensorship);
|
||||
}
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
class ANakedDesireCharacter;
|
||||
class UClothingVisualsComponent;
|
||||
class UCensorshipComponent;
|
||||
class UStaticMeshComponent;
|
||||
|
||||
UCLASS()
|
||||
class NAKEDDESIRE_API APlayerImpostor : public APawn
|
||||
@@ -21,6 +23,21 @@ class NAKEDDESIRE_API APlayerImpostor : public APawn
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Clothing")
|
||||
UClothingVisualsComponent* ClothingVisualsComponent;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* BoobLCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* BoobRCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* VaginaCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UStaticMeshComponent* AnalCensorship;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = true), Category = "Censorship")
|
||||
UCensorshipComponent* CensorshipComponent;
|
||||
|
||||
UPROPERTY()
|
||||
ANakedDesireCharacter* Player;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user