KotH goal now announces new king on the death of the old (log)

stable-5.1
David Dormagen 2010-12-14 19:10:53 +01:00
parent 8e51b6ddc9
commit d5dfdf4185
3 changed files with 13 additions and 2 deletions

View File

@ -152,6 +152,15 @@ func OnClonkDeath(object clonk, int killer)
return;
}
func GetAdditionalPlayerRelaunchString(object clonk, int plr, int killed_by)
{
if(!Hostile(killed_by, plr)) return;
if(!location->GetKing()) return;
if(location->GetKing()->GetOwner() != killed_by) return;
var msg=Format("$IsNowKing$", GetTaggedPlayerName(killed_by));
return msg;
}
private func CheckForWinner()
{
for (var i = 0; i < GetPlayerCount(); i++)

View File

@ -1,3 +1,4 @@
Name=King of the Hill
MsgGoalDesc=Das Ziel sind %d Punkte.
MsgGoalDesc=Das Ziel sind %d Punkte.
IsNowKing=%s ist der neue König!

View File

@ -1,3 +1,4 @@
Name=King of the Hill
MsgGoalDesc=The goal is %d points.
MsgGoalDesc=The goal is %d points.
IsNowKing=%s is the new king!