Skip to content

Commit

Permalink
Merge branch 'main' into match_goals_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon authored Nov 4, 2023
2 parents 9168f44 + 54fae18 commit d9f3bf0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Northstar.Custom/keyvalues/playlists_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ playlists
max_teams 12
classic_mp 1

scorelimit 21 // temp until we have a way of dynamically setting non-default scorelimit in code

gamemode_score_hint #GAMEMODE_SCORE_HINT_FFA
gamemode_bullet_001 #GAMEMODE_BULLET_FFA_001
gamemode_bullet_002 #GAMEMODE_BULLET_FFA_002
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ void function GamemodeGG_Init()
AddCallback_GameStateEnter( eGameState.WinnerDetermined, OnWinnerDetermined )

AddCallback_GGEarnMeterFull( OnGGEarnMeterFilled )

// set scorelimit if it's wrong, sort of a jank way to do it but best i've got rn
try
{
if ( GetCurrentPlaylistVarInt( "scorelimit", GetGunGameWeapons().len() ) != GetGunGameWeapons().len() )
SetPlaylistVarOverride( "scorelimit", GetGunGameWeapons().len().tostring() )
}
catch ( ex ) {}
}

void function OnPlayerDisconnected(entity player)
Expand Down
4 changes: 4 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/_items.nut
Original file line number Diff line number Diff line change
Expand Up @@ -10231,6 +10231,10 @@ void function StatUnlock_Unlocked( entity player, string itemRef, string parentR
if ( IsItemNew( player, itemRef, parentRef ) )
return

// early out if the player has progression disabled
if ( !ProgressionEnabledForPlayer( player ) )
return

int refGuid = file.itemRefToGuid[itemRef]
int parentRefGuid = parentRef == "" ? 0 : file.itemRefToGuid[parentRef]

Expand Down
2 changes: 1 addition & 1 deletion Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void function HandleKillStats( entity victim, entity attacker, var damageInfo )
string source = DamageSourceIDToString( attackerInfo.damageSourceId )

if ( IsValidStatItemString( source ) )
Stats_IncrementStat( attacker, "weapon_kill_stats", "assistsTotal", source, 1.0 )
Stats_IncrementStat( attackerInfo.attacker, "weapon_kill_stats", "assistsTotal", source, 1.0 )
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void function ValidateEquippedItems( entity player )
// camoIndex
if ( loadout.skinIndex == TITAN_SKIN_INDEX_CAMO )
{
array<ItemData> camoSkins = GetAllItemsOfType( eItemTypes.CAMO_SKIN )
array<ItemData> camoSkins = GetAllItemsOfType( eItemTypes.CAMO_SKIN_TITAN )
if ( loadout.camoIndex >= camoSkins.len() || loadout.camoIndex < 0 )
{
printt( " - INVALID TITAN CAMO/SKIN, RESETTING" )
Expand Down Expand Up @@ -363,7 +363,7 @@ void function ValidateEquippedItems( entity player )
// primeCamoIndex
if ( loadout.primeSkinIndex == TITAN_SKIN_INDEX_CAMO )
{
array<ItemData> camoSkins = GetAllItemsOfType( eItemTypes.CAMO_SKIN )
array<ItemData> camoSkins = GetAllItemsOfType( eItemTypes.CAMO_SKIN_TITAN )
if ( loadout.primeCamoIndex >= camoSkins.len() || loadout.primeCamoIndex < 0 )
{
printt( " - INVALID TITAN CAMO/SKIN, RESETTING" )
Expand Down

0 comments on commit d9f3bf0

Please sign in to comment.