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

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