Walkers detect vehicles while walking.

Improvements in the settings
This commit is contained in:
CVC\jbelon 2018-02-23 15:30:13 +01:00
parent 1529a5a5f6
commit fa436b1fb8
3 changed files with 26 additions and 12 deletions

View File

@ -14,24 +14,24 @@ TransitionMap=/Game/Maps/Town01.Town01
[/Script/Engine.RendererSettings] [/Script/Engine.RendererSettings]
r.DefaultFeature.MotionBlur=False r.DefaultFeature.MotionBlur=False
r.AllowStaticLighting=False r.AllowStaticLighting=True
r.DiscardUnusedQuality=True r.DiscardUnusedQuality=True
r.DefaultFeature.Bloom=False r.DefaultFeature.Bloom=False
r.DefaultFeature.AmbientOcclusion=False r.DefaultFeature.AmbientOcclusion=True
r.DefaultFeature.AmbientOcclusion=0
r.AmbientOcclusionLevels=0 r.AmbientOcclusionLevels=0
r.DefaultFeature.AmbientOcclusionStaticFraction=False r.DefaultFeature.AmbientOcclusionStaticFraction=0
r.DefaultFeature.AutoExposure=False r.DefaultFeature.AutoExposure=0
r.CustomDepth=3 r.CustomDepth=3
r.RHICmdBypass=0 r.RHICmdBypass=0
r.DefaultFeature.AntiAliasing=2 r.DefaultFeature.AntiAliasing=2
r.Streaming.PoolSize=2000 r.Streaming.PoolSize=2000
r.HZBOcclusion=0 r.HZBOcclusion=0
r.EarlyZPass=2 r.MinScreenRadiusForLights=0.01
r.EarlyZPassMovable=1
r.SeparateTranslucency=0 r.SeparateTranslucency=0
r.FinishCurrentFrame=1 r.FinishCurrentFrame=1
r.MotionBlurQuality=0 r.MotionBlurQuality=0
r.PostProcessAAQuality=3 r.PostProcessAAQuality=1
r.BloomQuality=1 r.BloomQuality=1
r.SSR.Quality=0 r.SSR.Quality=0
r.DepthOfFieldQuality=0 r.DepthOfFieldQuality=0
@ -43,10 +43,13 @@ r.LensFlareQuality=0
r.SceneColorFringeQuality=0 r.SceneColorFringeQuality=0
r.FastBlurThreshold=0 r.FastBlurThreshold=0
r.SSR.MaxRoughness=0.1 r.SSR.MaxRoughness=0.1
r.AllowOcclusionQueries=True r.AllowOcclusionQueries=1
r.SSR=0 r.SSR=0
r.StencilForLODDither=True r.StencilForLODDither=1
r.EarlyZPassOnlyMaterialMasking=True r.EarlyZPass=1
r.EarlyZPassMovable=1
r.Foliage.DitheredLOD=0
r.ForwardShading=False
[/Script/AIModule.AISense_Sight] [/Script/AIModule.AISense_Sight]
bAutoRegisterAllPawnsAsSources=False bAutoRegisterAllPawnsAsSources=False

View File

@ -224,6 +224,12 @@ void AWalkerAIController::SenseActors(const TArray<AActor *> Actors)
} }
} }
void AWalkerAIController::TrySetMovement(bool paused)
{
if(paused) TryPauseMovement(false);
else TryResumeMovement();
}
void AWalkerAIController::TryResumeMovement() void AWalkerAIController::TryResumeMovement()
{ {
if (Status != EWalkerStatus::Moving) { if (Status != EWalkerStatus::Moving) {

View File

@ -41,6 +41,7 @@ public:
virtual void OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult &Result) override; virtual void OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult &Result) override;
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
void SenseActors(TArray<AActor *> Actors); void SenseActors(TArray<AActor *> Actors);
@ -49,6 +50,9 @@ public:
return Status; return Status;
} }
UFUNCTION(BlueprintCallable)
void TrySetMovement(bool paused);
private: private:
void TryResumeMovement(); void TryResumeMovement();
@ -63,4 +67,5 @@ private:
UPROPERTY(VisibleAnywhere) UPROPERTY(VisibleAnywhere)
EWalkerStatus Status = EWalkerStatus::Unknown; EWalkerStatus Status = EWalkerStatus::Unknown;
}; };