reverting scoring changes and probably some fucking eol bullshit

This commit is contained in:
AJ Kelly
2011-08-28 19:09:39 -05:00
2 changed files with 11 additions and 6 deletions
+10 -5
View File
@@ -319,8 +319,13 @@ end
-- Formulas end here.
for v in ivalues(DisabledScoringModes) do r[v] = nil end
Scoring = {}
setmetatable(Scoring, { __index = function(...) return function(params,pss)
--put any code here that should run before every scoring function
if not GAMESTATE:IsHumanPlayer(params.Player) and type(r[key]) == "function" then
return r[key](...) end
end })
setmetatable(Scoring, {
__metatable = { "Letting you change the metatable sort of defeats the purpose." },
__index = function(tbl, key)
for v in ivalues(DisabledScoringModes) do
if key == v then return r['DDR Extreme'] end
end
return r[key]
end,
}
);