30 lines
478 B
Plaintext
30 lines
478 B
Plaintext
-- @name Input System
|
|
-- @author DarkSupah
|
|
-- @shared
|
|
-- @include ./cl_input.txt
|
|
-- @include ./sv_input.txt
|
|
local Axles = {
|
|
Horizontal = {
|
|
Negative = KEY.D,
|
|
Positive = KEY.A,
|
|
Gravity = 0.1,
|
|
Sensitivity = 0.2
|
|
}
|
|
}
|
|
|
|
local options = {
|
|
Axles = Axles
|
|
}
|
|
|
|
if SERVER then
|
|
require('./sv_input.txt')
|
|
else
|
|
require('./cl_input.txt')
|
|
end
|
|
|
|
local input = Input:new(options)
|
|
|
|
hook.add('tick', 'InputUpdate', function()
|
|
input:update()
|
|
end)
|