Remove formatting

This commit is contained in:
David Vogel 2018-07-17 19:24:31 +02:00
parent c8d2c23048
commit 4eedec5bb7

View File

@ -56,11 +56,11 @@ local function resetVariables()
end
local function postStatistics(mapParams, timesPlayed, freqMult, zombiePercentCalcMap)
PrintMessage(HUD_PRINTTALK,"<c=0,255,255>This map has been played "..timesPlayed.." times with humans winning "..(mapParams.TimesWon).." times.("..(math.Round((mapParams.TimesWon/timesPlayed)*100)).."%)</c>")
PrintMessage(HUD_PRINTTALK,"<c=0,255,255>Zombies were playing this map for "..math.Round(zombiePercentCalcMap * 100).."% of the time.</c>")
PrintMessage(HUD_PRINTTALK,"<c=0,255,255>frequency multiplier for this map is "..freqMult..". play maps infrequently for a higher value!</c>")
PrintMessage(HUD_PRINTTALK,"<c=0,255,255>Special boost for this map is "..(mapParams.Boost)..". tell an admin if you think it should be changed!</c>")
PrintMessage(HUD_PRINTTALK,"<c=204,204,0>Map jackpot is now "..(mapParams.Jackpot)..".</c>")
PrintMessage(HUD_PRINTTALK,"This map has been played "..timesPlayed.." times with humans winning "..(mapParams.TimesWon).." times.("..(math.Round((mapParams.TimesWon/timesPlayed)*100)).."%)")
PrintMessage(HUD_PRINTTALK,"Zombies were playing this map for "..math.Round(zombiePercentCalcMap * 100).."% of the time.")
PrintMessage(HUD_PRINTTALK,"frequency multiplier for this map is "..freqMult..". Play maps infrequently for a higher value!")
PrintMessage(HUD_PRINTTALK,"Special boost for this map is "..(mapParams.Boost)..". Tell an admin if you think it should be changed!")
PrintMessage(HUD_PRINTTALK,"Map jackpot is now "..(mapParams.Jackpot)..".")
end
-- TODO: When round is lost, take away points from human players that were there at the beginning of the game (All Human players that were there at the end of round 1, when late joiners join as zombies)
@ -128,7 +128,7 @@ hook.Add("PostEndRound", "pointsave_givedapoints", function(winner)
if winner == TEAM_HUMAN then
local finalMultiply = (mapParams.Boost * freqMult * (mapParams.TimesLost / timesPlayed) * zombiePercentCalcMap)
PrintMessage(HUD_PRINTTALK,"<c=0,255,255>Congratulations, you won the jackpot of "..mapParams.Jackpot.." for winning this round</c>")
PrintMessage(HUD_PRINTTALK, "Congratulations, you won the jackpot of "..mapParams.Jackpot.." for winning this round")
pointsToGive = math.Round((settings.EndroundPoints * finalMultiply) + mapParams.Jackpot)
mapParams.Jackpot = settings.JackpotStart
else
@ -155,9 +155,9 @@ hook.Add("PostEndRound", "pointsave_givedapoints", function(winner)
ply:SetSavedPoints(points + pointsToGivePly)
-- Display message
if pointsToGivePly > 0 then
ply:PrintMessage(HUD_PRINTTALK,"<c=255,0,0>You gained "..(pointsToGivePly).." this round for playing to the end!</c>")
ply:PrintMessage(HUD_PRINTTALK, "You gained "..(pointsToGivePly).." this round for playing to the end!")
elseif pointsToGivePly < 0 then
ply:PrintMessage(HUD_PRINTTALK,"<c=255,0,0>You lost "..(-pointsToGivePly).." points this round!</c>")
ply:PrintMessage(HUD_PRINTTALK, "You lost "..(-pointsToGivePly).." points this round!")
end
end