e9da54c2f9
Too many changes to list.
19 lines
346 B
Lua
19 lines
346 B
Lua
local M_Player = FindMetaTable("Player")
|
|
local M_Entity = FindMetaTable("Entity")
|
|
|
|
local E_GetTable = M_Entity.GetTable
|
|
|
|
local val
|
|
local pt
|
|
function M_Player:__index(key)
|
|
val = M_Player[key]
|
|
if val ~= nil then return val end
|
|
|
|
val = M_Entity[key]
|
|
if val ~= nil then return val end
|
|
|
|
pt = E_GetTable(self)
|
|
if pt then
|
|
return pt[key]
|
|
end
|
|
end
|