mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
Upload
This commit is contained in:
23
gamemodes/helix/plugins/teleporters/cl_plugin.lua
Normal file
23
gamemodes/helix/plugins/teleporters/cl_plugin.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
ix.teleporters = ix.teleporters or {}
|
||||
ix.teleporters.selected = ix.teleporters.selected or {}
|
||||
ix.teleporters.data = ix.teleporters.data or {}
|
||||
|
||||
function ix.teleporters:RetrieveData(entity)
|
||||
if (entity and isentity(entity) and ix.teleporters.data and !table.IsEmpty(ix.teleporters.data)) then
|
||||
for k, v in ipairs(ix.teleporters.data) do
|
||||
if (v["id"] == entity:EntIndex()) then
|
||||
return v
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user