mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Merge pull request #104 from Cooldude2606/feature/warp-system
Warp System
This commit is contained in:
@@ -37,6 +37,7 @@ return {
|
||||
-- GUI
|
||||
'modules.gui.rocket-info',
|
||||
'modules.gui.science-info',
|
||||
'modules.gui.warp-list',
|
||||
'modules.gui.task-list',
|
||||
'modules.gui.player-list',
|
||||
'modules.commands.debug',
|
||||
|
||||
@@ -59,6 +59,7 @@ Roles.new_role('Administrator','Admin')
|
||||
:set_flag('instance-respawn')
|
||||
:set_parent('Moderator')
|
||||
:allow{
|
||||
'gui/warp-list/no-limit',
|
||||
}
|
||||
|
||||
Roles.new_role('Moderator','Mod')
|
||||
@@ -167,7 +168,8 @@ Roles.new_role('Member','Mem')
|
||||
:set_custom_color{r=24,g=172,b=188}
|
||||
:set_parent('Regular')
|
||||
:allow{
|
||||
'gui/task-list/edit'
|
||||
'gui/task-list/edit',
|
||||
'gui/warp-list/edit'
|
||||
}
|
||||
|
||||
Roles.new_role('Regular','Reg')
|
||||
@@ -201,6 +203,7 @@ local default = Roles.new_role('Guest','')
|
||||
'gui/rocket-info',
|
||||
'gui/science-info',
|
||||
'gui/task-list',
|
||||
'gui/warp-list',
|
||||
}
|
||||
|
||||
--- Jail role
|
||||
|
||||
23
config/warps.lua
Normal file
23
config/warps.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
--- This file contains all the different settings for the warp system and gui
|
||||
return {
|
||||
recharge_time = 60, -- The amount of time in seconds that the player must wait between warps, acts as a balance
|
||||
update_smothing = 10, -- Higher is better, the amount of smothing applied to recharge timer and other gui updates, max is 60
|
||||
minimum_distance = 100, -- The minimum distance that must be between warp points, creating new ones is blocked when too close
|
||||
activation_range = 4, -- The distance the player must be to a warp in order to use the warp gui, gui can still be viewd but not used
|
||||
spawn_activation_range = 20, -- A second activation range which is used for the forces spawn point
|
||||
default_icon = 'discharge-defense-equipment', -- The deafult icon which is used by warps; must be an item name
|
||||
user_can_edit_own_warps = true, -- When true the user can always edit warps which they created regaudless of other settings
|
||||
only_admins_can_edit = false, -- When true only admins can edit warps
|
||||
edit_warps_role_permision = 'gui/warp-list/edit', -- Role permission used by the role system to allow editing warps
|
||||
bypass_warp_limits_permision = 'gui/warp-list/no-limit', -- Role permission used by the role system to allow bypassing the time and distance restrctions
|
||||
entities = { -- The entites which are created for warps
|
||||
{'small-lamp',-3,-2},{'small-lamp',-3,2},{'small-lamp',3,-2},{'small-lamp',3,2},
|
||||
{'small-lamp',-2,-3},{'small-lamp',2,-3},{'small-lamp',-2,3},{'small-lamp',2,3},
|
||||
{'small-electric-pole',-3,-3},{'small-electric-pole',3,3},{'small-electric-pole',-3,3},{'small-electric-pole',3,-3}
|
||||
},
|
||||
base_tile = 'tutorial-grid', -- The tile which is used for the warps
|
||||
tiles = { -- The tiles which are created for warps
|
||||
{-3,-2},{-3,-1},{-3,0},{-3,1},{-3,2},{3,-2},{3,-1},{3,0},{3,1},{3,2},
|
||||
{-2,-3},{-1,-3},{0,-3},{1,-3},{2,-3},{-2,3},{-1,3},{0,3},{1,3},{2,3}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user