Bugfix Merge Errors
This commit is contained in:
parent
d943495179
commit
fe671e10fc
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/Workbench_WeaponAttachments/BP_WeaponWorkbench.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/Workbench_WeaponAttachments/BP_WeaponWorkbench.uasset
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
Binary file not shown.
@ -53,8 +53,11 @@ void AEndlessVendettaCharacter::BeginPlay()
|
||||
Super::BeginPlay();
|
||||
|
||||
UEVGameInstance* GI = Cast<UEVGameInstance>(GetWorld()->GetGameInstance());
|
||||
PrimaryWeaponClass = GI->MainSaveGameInstanceRef->PrimaryWeaponClassSave;
|
||||
SecondaryWeaponClass = GI->MainSaveGameInstanceRef->SecondaryWeaponClassSave;
|
||||
if (IsValid(GI->MainSaveGameInstanceRef))
|
||||
{
|
||||
PrimaryWeaponClass = GI->MainSaveGameInstanceRef->PrimaryWeaponClassSave;
|
||||
SecondaryWeaponClass = GI->MainSaveGameInstanceRef->SecondaryWeaponClassSave;
|
||||
}
|
||||
|
||||
// Set the fp skeletal mesh for the vault it plugin to use
|
||||
TArray<UActorComponent*> MeshActComps = GetComponentsByClass(USkeletalMeshComponent::StaticClass());
|
||||
@ -481,8 +484,12 @@ void AEndlessVendettaCharacter::WeaponSwitcher(AActor* Outhit)
|
||||
PrimaryWeaponClass = Outhit->GetClass();
|
||||
|
||||
UEVGameInstance* GI = Cast<UEVGameInstance>(GetGameInstance());
|
||||
GI->MainSaveGameInstanceRef->PrimaryWeaponClassSave = Outhit->GetClass();
|
||||
UGameplayStatics::SaveGameToSlot(GI->MainSaveGameInstanceRef, "MainSave", 0);
|
||||
if (IsValid(GI->MainSaveGameInstanceRef))
|
||||
{
|
||||
GI->MainSaveGameInstanceRef->PrimaryWeaponClassSave = Outhit->GetClass();
|
||||
UGameplayStatics::SaveGameToSlot(GI->MainSaveGameInstanceRef, "MainSave", 0);
|
||||
}
|
||||
|
||||
|
||||
Outhit->Destroy();
|
||||
EquipPrimary();
|
||||
@ -497,8 +504,11 @@ void AEndlessVendettaCharacter::WeaponSwitcher(AActor* Outhit)
|
||||
SecondaryWeaponClass = Outhit->GetClass();
|
||||
|
||||
UEVGameInstance* GI = Cast<UEVGameInstance>(GetGameInstance());
|
||||
GI->MainSaveGameInstanceRef->SecondaryWeaponClassSave = Outhit->GetClass();
|
||||
UGameplayStatics::SaveGameToSlot(GI->MainSaveGameInstanceRef, "MainSave", 0);
|
||||
if (IsValid(GI->MainSaveGameInstanceRef))
|
||||
{
|
||||
GI->MainSaveGameInstanceRef->SecondaryWeaponClassSave = Outhit->GetClass();
|
||||
UGameplayStatics::SaveGameToSlot(GI->MainSaveGameInstanceRef, "MainSave", 0);
|
||||
}
|
||||
|
||||
Outhit->Destroy();
|
||||
EquipSecondary();
|
||||
|
Loading…
Reference in New Issue
Block a user