This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
switch(inputs.mode) { | |
case "zoom" : | |
return { | |
zoomSens: 100 * Math.tan(51*Math.PI/360) / Math.tan(103*Math.PI/360) | |
}; | |
case "custom" : | |
return { | |
zoomSens: 100 * Math.atan(inputs.coef*Math.tan(51*Math.PI/360)) / Math.atan(inputs.coef*Math.tan(103*Math.PI/360)) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "set FOV & Sensitivity", | |
"keybinds": [ | |
{ | |
"keybind_id": "set_fov_sens", | |
"name": "set FOV & Sensitivity", | |
"script_path": "set.lua", | |
"run_in_menu": true, | |
"run_in_game": true, | |
"localized": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MenuManager:set_mouse_sensitivity(zoomed) | |
local zoom_sense = zoomed | |
local sense_x, sense_y | |
if zoom_sense then | |
sense_x = managers.user:get_setting("camera_zoom_sensitivity_x") | |
sense_y = managers.user:get_setting("camera_zoom_sensitivity_y") | |
else | |
sense_x = managers.user:get_setting("camera_sensitivity_x") | |
sense_y = managers.user:get_setting("camera_sensitivity_y") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kf2ads; | |
import java.math.RoundingMode; | |
import java.text.DecimalFormat; | |
public class Normalization { | |
double rfov, coef; | |
double[] zoom, rzoom; | |
String[] bind; |