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