aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-19 17:32:09 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-19 17:32:09 +0000
commitf8685213baf4eef93dae6cc98c8e4a8318565bd3 (patch)
treec5bfb10ee066e5f7fb031376ddb8b435577b2991 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parent7cac56cb9bcaabed9562a7b46718f5c5de3400b8 (diff)
downloadNorthstarMods-f8685213baf4eef93dae6cc98c8e4a8318565bd3.tar.gz
NorthstarMods-f8685213baf4eef93dae6cc98c8e4a8318565bd3.zip
fixes and dropship refactor
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_coliseum.nut16
1 files changed, 15 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_coliseum.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_coliseum.nut
index 88a95fe41..fb0270ccb 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_coliseum.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_coliseum.nut
@@ -31,7 +31,6 @@ void function GamemodeColiseum_Init()
Riff_ForceBoostAvailability( eBoostAvailability.Disabled )
Riff_ForceSetEliminationMode( eEliminationMode.Pilots )
SetLoadoutGracePeriodEnabled( false ) // prevent modifying loadouts with grace period
- SetWeaponDropsEnabled( false )
ClassicMP_SetCustomIntro( ClassicMP_DefaultNoIntro_Setup, ClassicMP_DefaultNoIntro_GetLength() )
AddCallback_GameStateEnter( eGameState.Prematch, ShowColiseumIntroScreen )
@@ -139,6 +138,21 @@ void function SetupColiseumEpilogue()
void function RunColiseumOutro()
{
+ // also since this runs on game end, do winstreak stuff
+ foreach ( entity player in GetPlayerArray() )
+ {
+ if ( GetWinningTeam() == player.GetTeam() )
+ {
+ player.SetPersistentVar( "coliseumTotalWins", player.GetPersistentVarAsInt( "coliseumTotalWins" ) + 1 )
+ player.SetPersistentVar( "coliseumWinStreak", player.GetPersistentVarAsInt( "coliseumWinStreak" ) + 1 )
+ }
+ else
+ {
+ player.SetPersistentVar( "coliseumTotalWins", maxint( player.GetPersistentVarAsInt( "coliseumTotalWins" ) - 1, 0 ) )
+ player.SetPersistentVar( "coliseumWinStreak", 0 )
+ }
+ }
+
entity outroAnimPoint = GetEnt( "intermission" )
array<entity> winningPlayers = GetPlayerArrayOfTeam( GetWinningTeam() )