diff options
author | William Miller <william-millennium@hotmail.com> | 2023-10-12 18:54:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 23:54:27 +0200 |
commit | 2bb9216939a8bfd9fcd300893cb0626890a18a44 (patch) | |
tree | 5c508ec1da798f2e78f52beaeca3ec8ee4bf6ee0 | |
parent | 407c5ce39c3124658a869c387e4308e6b72e4c23 (diff) | |
download | NorthstarMods-2bb9216939a8bfd9fcd300893cb0626890a18a44.tar.gz NorthstarMods-2bb9216939a8bfd9fcd300893cb0626890a18a44.zip |
Expose extra optional arg in `UpdatePlayerStat` function (#742)
Exposes the previously hidden string argument in the `UpdatePlayerStat` function, that is needed to track some things more easily when hooking stats.
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut index 010184ff..208e6da1 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut @@ -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 ) |