oberien / refunct-tas

Tool for Tool assisted Speedruns for the game Refunct
31 stars 8 forks source link

Third-person view #309

Open LukeSaward1 opened 9 months ago

oberien commented 9 months ago

I used this in the past to get a high orthographic view of the map to take screenshots from a bird's eye view for creating a map overview.

b UCameraComponent::GetCameraView
UCameraComponent.ProjectionMode.Value = 1
UCameraComponent.OrthoWidth
UCameraComponent.RelativeLocation.Z = -10000
AShooterCharacter.Controller->CastToPlayerController()->PlayerCameraManager->ViewPitchMax = 90
AShooterCharacter.Controller->CastToPlayerController()->PlayerCameraManager->ViewPitchMin = -90

Maybe these notes about the render distance may be relevant as well? maybe not

b ACullDistanceVolume::ACullDistanceVolume
((FCullDistanceSizePair*)((ACullDistanceVolume*)0x21fef400)->CullDistances.AllocatorInstance.Data)->Size
((FCullDistanceSizePair*)((ACullDistanceVolume*)0x21fef400)->CullDistances.AllocatorInstance.Data)->CullDistance
LukeSaward1 commented 9 months ago

For proper third-person, I was thinking of using a SpringArmComponent and attaching the camera as a child to it. That should work, providing the camera is able to be attached to other components and isn't entangled in inheritance bullshit.