https://differentdirection.youtrack.cloud/issue/OC-3/Replication-Projectiles complete #3

Merged
Keeper317 merged 26 commits from projectilebase into main 2026-01-03 06:14:31 +00:00
6 changed files with 27 additions and 2 deletions
Showing only changes of commit 59bc1a9b22 - Show all commits

View File

@@ -0,0 +1,5 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "DDIGameInstance.h"

View File

@@ -0,0 +1,17 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/GameInstance.h"
#include "DDIGameInstance.generated.h"
/**
*
*/
UCLASS()
class OPENCONFLICT_API UDDIGameInstance : public UGameInstance
{
GENERATED_BODY()
};

View File

@@ -74,7 +74,7 @@ void ADDIPlayerController::Move(const FInputActionValue& Value)
void ADDIPlayerController::Look(const FInputActionValue& Value) void ADDIPlayerController::Look(const FInputActionValue& Value)
{ {
const FVector2D LookAxisVector = Value.Get<FVector2D>(); const FVector2D LookAxisVector = Value.Get<FVector2D>()*mouseSensitivity; //Added mouseSensitivity
if (APawn* ControlledPawn = GetPawn()) if (APawn* ControlledPawn = GetPawn())
{ {

View File

@@ -36,12 +36,15 @@ protected:
UPROPERTY(EditAnywhere, Category="Shooter") UPROPERTY(EditAnywhere, Category="Shooter")
FName PlayerPawnTag = FName("Player"); FName PlayerPawnTag = FName("Player");
/**/
/*Functions*/ /*Functions*/
public: public:
/*Properties*/ /*Properties*/
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Game Settings")
float mouseSensitivity;
/*Functions*/ /*Functions*/
/*C++ only declarations*/ /*C++ only declarations*/