Merge pull request #3 from BClark09/patch-1

Fixed first display of worth being incorrect
This commit is contained in:
William Moodhe / JetBoom 2014-10-28 19:03:44 -04:00
commit 397e915a30

View file

@ -1452,6 +1452,10 @@ function GM:PlayerReadyRound(pl)
local classid = pl:GetZombieClass() local classid = pl:GetZombieClass()
pl:SetZombieClass(classid, true, pl) pl:SetZombieClass(classid, true, pl)
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:Team() == TEAM_UNDEAD then if pl:Team() == TEAM_UNDEAD then
-- This is just so they get updated on what class they are and have their hulls set up right. -- This is just so they get updated on what class they are and have their hulls set up right.
pl:DoHulls(classid, TEAM_UNDEAD) pl:DoHulls(classid, TEAM_UNDEAD)
@ -1466,10 +1470,6 @@ function GM:PlayerReadyRound(pl)
gamemode.Call("DoHonorableMentions", pl) gamemode.Call("DoHonorableMentions", pl)
end end
if self.OverrideStartingWorth then
pl:SendLua("GAMEMODE.StartingWorth="..tostring(self.StartingWorth))
end
if pl:GetInfo("zs_noredeem") == "1" then if pl:GetInfo("zs_noredeem") == "1" then
pl.NoRedeeming = true pl.NoRedeeming = true
end end