Hello there,
I would like to inform you that the Killing Floor 2 sensitivity calculator needs to be updated.
First of all, the "Sensitivity 1" and "Multiplier 1" text boxes in the calculator adjust the wrong variables:
"Sensitivity 1" should be "MouseSensitivity" in the configuration file.
"Multiplier 1" should be "MouseLookRightScale".
At the moment, the variables are reversed: "Sensitivity 1" sets the value of the "MouseLookRightScale" multiplier, and "Multiplier 1" controls the actual sensitivity variable, which is "MouseSensitivity".
When the "Conversion Source" is set to "Distance", the calculator takes a "Sensitivity 1" from the user, assigns it to "MouseLookRightScale", and automatically picks the "MouseSensitivity" value for the requested 360° distance. The value suggested by the calculator feels correct, but the problem is that the locked text box in the calculator is "Multiplier 1" when it should be "Sensitivity 1".
Secondly, the minimum and maximum values need to be updated as well.
In the game's source code (which comes with the Killing Floor 2 SDK), the minimum and maximum sensitivity values are defined as 0.01 and 0.7, but what the user sees and manipulates in the game are these values multiplied by 100: from 1 to 70. The default value is 30.
Please note that these boundaries are only applicable to the GUI slider. It is possible to go beyond them using the "SetSensitivity" console command or by setting "MouseSensitivity" to the desired value in the configuration file ("KFInput.ini").
The multiplier, MouseLookRightScale, ranges from 20 to 500, both in the code and in the user interface. Default: 100.
Those numbers can be checked in the following file for the Steam version of the game:
[Killing Floor 2 root directory]\Development\Src\KFGame\Classes\KFGFxOptionsMenu_Controls.uc
defaultproperties
{
// ...
MinMouseLookSensitivity=.01
MaxMouseLookSensitivity=.7
// ...
MinMouseLookRightScale=20
MaxMouseLookRightScale=500
}
And here is the multiplication of the MouseLookSensitivity sensitivity limits by 100 in the UI:
[Killing Floor 2 root directory]\Development\Src\KFGame\Classes\KFGame\Classes\KFGFxControlsContainer_Input.uc
function InitializeOptions()
{
local GFxObject ValuesObject;
local KFPlayerInput KFPI;
// ...
if ( !GetPC().WorldInfo.IsConsoleBuild() )
{
ValuesObject.SetFloat("sensitivityValue" , KFPI.MouseSensitivity);
ValuesObject.SetFloat("sensitivityValueMin" , 100 * ControlsMenu.MinMouseLookSensitivity);
ValuesObject.SetFloat("sensitivityValueMax" , 100 * ControlsMenu.MaxMouseLookSensitivity);
// ...
ValuesObject.SetFloat("lookRightScaleValue" , KFPI.MouseLookRightScale);
ValuesObject.SetFloat("lookRightScaleMin" , ControlsMenu.MinMouseLookRightScale);
ValuesObject.SetFloat("lookRightScaleMax" , ControlsMenu.MaxMouseLookRightScale);
// ...
}
}
There is no separate category for UnrealScript, and the existing color scheme for C++ makes the code hard to read. Sorry about that.