-
Notifications
You must be signed in to change notification settings - Fork 4
/
control.lua
44 lines (38 loc) · 1.42 KB
/
control.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
-- Carl Frank Otto III
-- carlotto81@gmail.com
-- GitHub: https://github.com/M45-Science/SoftMod
-- License: MPL 2.0
require "banish" -- Banish system
require "commands" -- Slash commands
require "event" -- Event/tick handler
require "info" -- Welcome/Info window
require "log" -- Action logging
require "logo" -- Spawn logo
require "onelife" -- Time until map reset
require "online" -- Players online window
require "perms" -- Permissions system
require "storage" -- Global variable init
require "todo" -- To-Do-list
require "utility" -- Widely used general utility
require "quickbar" -- Save or Restore Quickbar
require "stash" -- Save or Restore Weapon/Ammo/Armor
function RunSetup()
storage.SM_Version = "631-12.15.2024-0702p"
storage.SM_OldVersion = storage.SM_Version
if not storage.SM_OldVersion then
storage.SM_OldVersion = "OldVersion"
end
--Only rerun on version change
if not storage.SM_Store or storage.SM_OldVersion ~= storage.SM_Version then
STORAGE_CreateGlobal()
BANISH_MakeJail()
TODO_Init()
LOGO_DrawLogo(true)
UTIL_MapPin()
PERMS_MakeUserGroups()
PERMS_SetPermissions()
game.forces["player"].friendly_fire = false -- disable friendly fire
game.disable_replay() -- Smaller saves, prevent desync on script upgrade
game.surfaces[1].show_clouds = false
end
end