forked from opentomb/OpenTomb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
105 lines (90 loc) · 2.86 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
-- LUA config file
screen =
{
x = 50;
y = 20;
width = 1200;
height = 800;
fov = 75.0;
debug_view_state = 0;
fullscreen = 0;
crosshair = 1;
}
audio =
{
sound_volume = 0.8;
music_volume = 0.9;
use_effects = 1;
listener_is_player = 0;
stream_buffer_size = 128;
}
render =
{
mipmap_mode = 3;
mipmaps = 3; -- It's not recommended to set it higher than 3 to prevent border bleeding.
lod_bias = 0;
anisotropy = 4; -- Maximum depends and is limited by hardware capabilities.
antialias = 1;
antialias_samples = 4; -- Maximum depends and is limited by hardware capabilities.
z_depth = 24; -- Maximum and recommended is 24.
texture_border = 16;
fog_color = {r = 255, g = 255, b = 255};
}
controls =
{
mouse_sensitivity_x = 0.25; -- to inverse mouse axis use negative values
mouse_sensitivity_y = 0.25;
use_joy = 0; -- Use joystick - yes (1) or no (0)
joy_number = 0; -- If you have one joystick in system, it will be 0.
joy_rumble = 0; -- Force feedback
joy_move_axis_x = 0; -- Movement axes options.
joy_move_axis_y = 1;
joy_move_invert_x = 0;
joy_move_invert_y = 0;
joy_move_sensitivity = 1.5;
joy_move_deadzone = 1500;
joy_look_axis_x = 2; -- Look axes options.
joy_look_axis_y = 3;
joy_look_invert_x = 0;
joy_look_invert_y = 1;
joy_look_sensitivity = 1.5;
joy_look_deadzone = 1500;
}
console =
{
background_color = {r = 0, g = 0, b = 0, a = 200};
commands_count = 128;
lines_count = 128;
height = 320;
spacing = 0.5;
show_cursor_period = 0.5;
show = 0;
}
-- Keys binding
-- Please note that on XInput game controllers (XBOX360 and such), triggers are NOT
-- coded as joystick buttons. Instead, they have unique names: JOY_TRIGGERLEFT and
-- JOY_TRIGGERRIGHT.
dofile(base_path .. "scripts/config/control_constants.lua");
bind(act.jump, KEY_SPACE, JOY_3);
bind(act.action, KEY_LCTRL, JOY_1);
bind(act.drawweapon, KEY_F);
bind(act.roll, KEY_X, JOY_2);
bind(act.sprint, KEY_CAPSLOCK, JOY_TRIGGERRIGHT);
bind(act.crouch, KEY_V, JOY_TRIGGERLEFT);
bind(act.walk, KEY_LSHIFT, JOY_11);
bind(act.up, KEY_W);
bind(act.down, KEY_S);
bind(act.left, KEY_A);
bind(act.right, KEY_D);
bind(act.look, KEY_O);
bind(act.lookup, KEY_UP, JOY_POVUP);
bind(act.lookdown, KEY_DOWN, JOY_POVDOWN);
bind(act.lookleft, KEY_LEFT, JOY_POVLEFT);
bind(act.lookright, KEY_RIGHT, JOY_POVRIGHT);
bind(act.inventory, KEY_ESCAPE);
bind(act.screenshot, KEY_PRINTSCREEN);
bind(act.console, KEY_BACKQUOTE);
bind(act.savegame, KEY_F5);
bind(act.loadgame, KEY_F6);
bind(act.smallmedi, KEY_9);
bind(act.bigmedi, KEY_0);