mirror of
https://github.com/PhantomGamesDevelopment/TWM2.git
synced 2026-04-23 05:15:27 +00:00
6/26 Update
All of the work for 6/26. New challenges, bug fixes, and deprecation of older systems.
This commit is contained in:
parent
c270a1c343
commit
b03f4dd2ef
37 changed files with 2662 additions and 3772 deletions
|
|
@ -517,6 +517,8 @@ function HordeGame::startMatch(%game) {
|
|||
for(%i = 0; %i < ClientGroup.getCount(); %i ++) {
|
||||
%client = ClientGroup.getObject(%i);
|
||||
$HordeGame::Score[%client] = 0;
|
||||
$HordeGame::FirstWaveKills[%client] = 0;
|
||||
$HordeGame::HighestWaveScoreCount[%client] = 0;
|
||||
}
|
||||
|
||||
$HordeGame::InitialGoTime = 300;
|
||||
|
|
@ -1393,6 +1395,13 @@ function HordeGame::OnZombieDeath(%game, %killer, %victim) {
|
|||
}
|
||||
else {
|
||||
CenterPrintAll("<just:center>Wave Highlight \n"@%killer.namebase@" Scores the First Kill!" , 3, 3);
|
||||
if($HordeGame::CurrentWave == 1) {
|
||||
CompleteNWChallenge(%killer, "FirstBlood");
|
||||
}
|
||||
$HordeGame::FirstWaveKills[%killer]++;
|
||||
if($HordeGame::FirstWaveKills[%killer] >= 10) {
|
||||
CompleteNWChallenge(%killer, "SpeedSlayer");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1421,6 +1430,11 @@ function DoWaveHighlights() {
|
|||
%highestKillsCL = %cl;
|
||||
}
|
||||
}
|
||||
//
|
||||
$HordeGame::HighestWaveScoreCount[%highestKillsCL]++;
|
||||
if($HordeGame::FirstWaveKills[%highestKillsCL] >= 10) {
|
||||
CompleteNWChallenge(%highestKillsCL, "HighScorer");
|
||||
}
|
||||
//
|
||||
CenterPrintAll("<just:center>Best Stats For Wave "@%wave@""@
|
||||
"\nHighest Scorer: "@%highestScoreCL.namebase@" with "@%highestScore@" Points"@
|
||||
|
|
@ -1428,100 +1442,6 @@ function DoWaveHighlights() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
function GenerateHordeChallengeMenu(%client, %tag, %index) {
|
||||
if(%client.CheckNWChallengeCompletion("15For15")) {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "15 For 15 - Done.");
|
||||
%index++;
|
||||
}
|
||||
else {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "15 For 15 - Complete Wave 15.");
|
||||
%index++;
|
||||
}
|
||||
//
|
||||
if(%client.CheckNWChallengeCompletion("Milestone25")) {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Milestone 25 - Done.");
|
||||
%index++;
|
||||
}
|
||||
else {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Milestone 25 - Complete Wave 25.");
|
||||
%index++;
|
||||
}
|
||||
//
|
||||
if(%client.CheckNWChallengeCompletion("ArmyOf50Stopped")) {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Army Of 50 Stopped - Done.");
|
||||
%index++;
|
||||
}
|
||||
else {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Army Of 50 Stopped - Complete Horde (All 50 Waves).");
|
||||
%index++;
|
||||
}
|
||||
//
|
||||
if(%client.CheckNWChallengeCompletion("Angel")) {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Angel - Done.");
|
||||
%index++;
|
||||
}
|
||||
else {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Angel - Revive a fallen teammate in Horde.");
|
||||
%index++;
|
||||
}
|
||||
//
|
||||
if(%client.CheckNWChallengeCompletion("ZBomber")) {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Z-Bomber - Done.");
|
||||
%index++;
|
||||
}
|
||||
else {
|
||||
messageClient( %client, 'SetLineHud', "", %tag, %index, "Z-Bomber - Call in a Z-Bomb While Playing Horde.");
|
||||
%index++;
|
||||
}
|
||||
//
|
||||
return %index;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function HordeGame::leaveMissionArea(%game, %playerData, %player) {
|
||||
if(%player.getState() $= "Dead")
|
||||
return;
|
||||
|
|
@ -1546,7 +1466,4 @@ function HordeGame::enterMissionArea(%game, %playerData, %player) {
|
|||
|
||||
%player.client.outOfBounds = false;
|
||||
messageClient(%player.client, 'EnterMissionArea', '\c1You are back in the mission area.');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue