As it stands, adjusting the view sensitivity for a player can be done in a roundabout way by fiddling with a weapon's FOVScale and DesiredFOV to "trick" the engine into thinking the player has a higher or lower FOV than they actually do.
This pull request implements a canonical way to do the same without "hacks" by adding a simple multiplier LookScale to the weapon. For example, setting LookScale = 0.5 sets the player's look sensitivity to half.
Code: Select all
class PistolTest : Pistol {
override void PostBeginPlay() {
super.PostBeginPlay();
LookScale = 0.1; //10% look sensitivity
}
}