Skip to content

Commit

Permalink
Expose extra optional arg in UpdatePlayerStat function (#742)
Browse files Browse the repository at this point in the history
Exposes the previously hidden string argument in the `UpdatePlayerStat` function, that is needed to track some things more easily when hooking stats.
  • Loading branch information
Zanieon authored Oct 12, 2023
1 parent 407c5ce commit 2bb9216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ float function PlayerStat_GetCurrentFloat( entity player, string statCategory, s
return 0
}

void function UpdatePlayerStat( entity player, string statCategory, string subStat, int count = 1 )
void function UpdatePlayerStat( entity player, string statCategory, string subStat, int count = 1, string statAlias = "" )
{
if ( !IsValid( player ) )
return

Stats_IncrementStat( player, statCategory, subStat, "", count.tofloat() )
Stats_IncrementStat( player, statCategory, subStat, statAlias, count.tofloat() )
}

void function IncrementPlayerDidPilotExecutionWhileCloaked( entity player )
Expand Down

0 comments on commit 2bb9216

Please sign in to comment.