mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-07-26 18:36:23 +09:00
@@ -14,7 +14,7 @@ Roles.define_flag_trigger("is_spectator", function(player, state)
|
|||||||
end)
|
end)
|
||||||
Roles.define_flag_trigger("is_jail", function(player, state)
|
Roles.define_flag_trigger("is_jail", function(player, state)
|
||||||
if player.character then
|
if player.character then
|
||||||
player.character.active = not state
|
player.character.disabled_by_script = not state
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ function Warps.make_warp_area(warp_id)
|
|||||||
}
|
}
|
||||||
entity.destructible = false
|
entity.destructible = false
|
||||||
entity.health = 0
|
entity.health = 0
|
||||||
entity.minable = false
|
entity.minable_flag = false
|
||||||
entity.rotatable = false
|
entity.rotatable = false
|
||||||
|
|
||||||
-- Save reference of the last power pole
|
-- Save reference of the last power pole
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ local function prevent_deconstruction(entity)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Not minable, selectable, or deconstructive
|
-- Not minable, selectable, or deconstructive
|
||||||
if not entity.minable or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
|
if not entity.minable_flag or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ end
|
|||||||
local function protect_entity(entity)
|
local function protect_entity(entity)
|
||||||
if entity and entity.valid then
|
if entity and entity.valid then
|
||||||
entity.destructible = false
|
entity.destructible = false
|
||||||
entity.minable = false
|
entity.minable_flag = false
|
||||||
entity.rotatable = false
|
entity.rotatable = false
|
||||||
entity.operable = false
|
entity.operable = false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user