mirror of
https://github.com/fortressforever/enthusiastic-hat-club.git
synced 2024-11-29 07:22:09 +00:00
9ec0b52420
move input to the player controller, need to fwd to character
22 lines
653 B
C++
22 lines
653 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#include "FF.h"
|
|
#include "FFGameModeBase.h"
|
|
#include "Private/FFPlayerController.h"
|
|
|
|
AFFGameModeBase::AFFGameModeBase() : Super()
|
|
{
|
|
static ConstructorHelpers::FClassFinder<APawn> BaseCharacterClassFinder(TEXT("/Game/Blueprints/FFCharacterBase"));
|
|
if (BaseCharacterClassFinder.Succeeded())
|
|
{
|
|
DefaultPawnClass = BaseCharacterClassFinder.Class;
|
|
}
|
|
else
|
|
{
|
|
DefaultPawnClass = ADefaultPawn::StaticClass();
|
|
UE_LOG(LogTemp, Error, TEXT("Failed to find FFCharacterBase, check data blueprint exists"));
|
|
}
|
|
|
|
|
|
PlayerControllerClass = AFFPlayerController::StaticClass();
|
|
}
|