From 11b7f3e52f69560f357575f57d282533198ab283 Mon Sep 17 00:00:00 2001 From: RoyalBlue1 Date: Thu, 12 May 2022 14:44:23 +0200 Subject: give medals at game end --- .../scripts/vscripts/gamemodes/_gamemode_fd.nut | 40 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) (limited to 'Northstar.CustomServers') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut index 58f497a6..8985b477 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut @@ -24,7 +24,8 @@ global struct SmokeEvent{ global struct SpawnEvent{ vector origin vector angles - string route + string route //defines route taken by the ai + int skippedRouteNodes //defines how many route nodes will be skipped int spawnType //Just used for Wave Info but can be used for spawn too should contain aid of spawned enemys int spawnAmount //Just used for Wave Info but can be used for spawn too should contain amound of spawned enemys string npcClassName @@ -420,6 +421,32 @@ bool function runWave(int waveIndex,bool shouldDoBuyTime) if ( isFinalWave() && IsAlive( fd_harvester.harvester ) ) { //Game won code + MessageToTeam(TEAM_MILITIA,eEventNotifications.FD_AnnounceWaveEnd) + foreach(entity player in GetPlayerArray()) + { + AddPlayerScore(player,"FDTeamWave") + } + wait 1 + float highestScore = 0; + entity highestScore_player = GetPlayerArray()[0] + foreach(entity player in GetPlayerArray()) + { + player_struct_fd data = file.players[player] + if(!data.diedThisRound) + AddPlayerScore(player,"FDDidntDie") + if(highestScore