aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorRoyalBlue1 <malte.hoermeyer@web.de>2022-05-12 14:44:23 +0200
committerRoyalBlue1 <malte.hoermeyer@web.de>2022-05-12 14:44:23 +0200
commit11b7f3e52f69560f357575f57d282533198ab283 (patch)
tree8082e51ccd31d12b230f658434f7e90210ae8030 /Northstar.CustomServers
parent9d77289574cf8e410ec66264c1d7bd542fa5d6d7 (diff)
downloadNorthstarMods-11b7f3e52f69560f357575f57d282533198ab283.tar.gz
NorthstarMods-11b7f3e52f69560f357575f57d282533198ab283.zip
give medals at game end
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut40
1 files changed, 33 insertions, 7 deletions
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<data.scoreThisRound)
+ {
+ highestScore = data.scoreThisRound
+ highestScore_player = player
+ }
+
+ }
+ file.players[highestScore_player].totalMVPs += 1
+ AddPlayerScore(highestScore_player,"FDWaveMVP")
+ wait 1
+ foreach(entity player in GetPlayerArray())
+ if(!file.havesterWasDamaged)
+ AddPlayerScore(player,"FDTeamFlawlessWave")
SetRoundBased(false)
SetWinner(TEAM_MILITIA)
return true
@@ -1041,8 +1068,10 @@ void function spawnSuperSpectre(SmokeEvent smokeEvent,SpawnEvent spawnEvent,Wait
entity npc = CreateSuperSpectre(TEAM_IMC,spawnEvent.origin,spawnEvent.angles)
SetSpawnOption_AISettings(npc,"npc_super_spectre_fd")
file.spawnedNPCs.append(npc)
-
- thread spawnSuperSpectre_threaded(npc)
+ wait 4.7
+ DispatchSpawn(npc)
+ thread SuperSpectre_WarpFall(npc)
+ thread ReaperMinionLauncherThink(npc)
}
void function spawnDroppodGrunts(SmokeEvent smokeEvent,SpawnEvent spawnEvent,WaitEvent waitEvent,SoundEvent soundEvent)
@@ -1144,10 +1173,7 @@ void function SpawnTick(SmokeEvent smokeEffect,SpawnEvent spawnEvent,WaitEvent w
void function spawnSuperSpectre_threaded(entity npc)
{
- wait 4.7
- DispatchSpawn(npc)
- thread SuperSpectre_WarpFall(npc)
- thread ReaperMinionLauncherThink(npc)
+
}
void function CreateTrackedDroppodSoldier( vector origin, int team)