zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/perf/shared/rewrite_entity_index.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

18 lines
325 B
Lua

local M_Entity = FindMetaTable("Entity")
local E_GetTable = M_Entity.GetTable
local val
local et
function M_Entity:__index(key)
val = M_Entity[key]
if val ~= nil then return val end
et = E_GetTable(self)
if et then
return et[key]
end
-- Obsolete
--if key == "Owner" then return M_Entity.GetOwner( self ) end
end