Fix server and client scripts on cyka
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
-- luacheck: globals MyModGlobal
|
-- luacheck: globals MyModGlobal
|
||||||
-- luacheck: read_globals Character SERVER Keys LuaUserData Hook Descriptors PlayerInput Timer
|
-- luacheck: read_globals Character SERVER Keys LuaUserData Hook Descriptors PlayerInput Timer
|
||||||
-- luacheck: max line length 420
|
-- luacheck: max line length 420
|
||||||
if SERVER then return end
|
|
||||||
-- Docs: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/common-questions/
|
-- Docs: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/common-questions/
|
||||||
|
|
||||||
|
if SERVER then
|
||||||
|
require("Cyka.xpticker")
|
||||||
|
else
|
||||||
---@class MyModGlobal
|
---@class MyModGlobal
|
||||||
---@field CONFIG {QUICKSTACK_KEYS: Keys, FABRICATOR_KEY: Keys, MAX_BUY: Keys, NESTED_CONTAINERS: boolean, DEBUG_MODE: boolean}
|
---@field CONFIG {QUICKSTACK_KEYS: Keys, FABRICATOR_KEY: Keys, MAX_BUY: Keys, NESTED_CONTAINERS: boolean, DEBUG_MODE: boolean}
|
||||||
---@field MOD_NAME string
|
---@field MOD_NAME string
|
||||||
@@ -71,7 +73,6 @@ local quickloot = require("Cyka.quickloot")
|
|||||||
local sonarpinger = require("Cyka.sonarpinger")
|
local sonarpinger = require("Cyka.sonarpinger")
|
||||||
local aoepickup = require("Cyka.aoepickup")
|
local aoepickup = require("Cyka.aoepickup")
|
||||||
local quickaccess = require("Cyka.quickaccess")
|
local quickaccess = require("Cyka.quickaccess")
|
||||||
require("Cyka.xpticker")
|
|
||||||
require("Cyka.zoom")
|
require("Cyka.zoom")
|
||||||
|
|
||||||
-- TODO: Keybind fabricator / medical fabricator / deconstructor on the sub
|
-- TODO: Keybind fabricator / medical fabricator / deconstructor on the sub
|
||||||
@@ -179,3 +180,4 @@ Hook.Patch("Barotrauma.Character", "ControlLocalPlayer", function(instance, ptab
|
|||||||
if not PlayerInput.KeyHit(MyModGlobal.CONFIG.QICK_MEDICAL_FABRICATOR) then return end
|
if not PlayerInput.KeyHit(MyModGlobal.CONFIG.QICK_MEDICAL_FABRICATOR) then return end
|
||||||
quickaccess.tryAccessMedicalFabricator(PlayerInput.IsShiftDown())
|
quickaccess.tryAccessMedicalFabricator(PlayerInput.IsShiftDown())
|
||||||
end, Hook.HookMethodType.After)
|
end, Hook.HookMethodType.After)
|
||||||
|
end
|
||||||
|
Reference in New Issue
Block a user