Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose extra optional arg in UpdatePlayerStat function #742

Merged
merged 16 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading