Post: Decreasing Zombie stats
11-15-2015, 11:13 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); It appears to me as if it is impossible to decrease one's stats using GSC in Zombies. Increasing works fine however, decreasing does nothing. Can someone confirm or disprove this? It's a pity since I wanted to get demoted again from shotguns to bone but can't. Dave
    resetStats()
{
foreach(stat in getStatNames())
{
self maps/mp/zombies/_zm_stats::zero_client_stat(stat);

wait 0.01;
}

self iprintln("Stats ^2reset^7");
}

getStatNames()
{
tableName = "mp/globalcounters.csv";
startingRow = 62;
rowsCount = 193;
elementsColumn = 1;
elements = [];

for(rowIndex = startingRow; rowIndex < startingRow + rowsCount; rowIndex++)
{
// Strip "global_zm_" from Strings
element = getSubStr(tableLookupColumnForRow(tableName, rowIndex, elementsColumn), 10);
elements[elements.size] = element;
}

return elements;
}

zero_client_stat() is implemented as follows:
    zero_client_stat( stat_name )
{
current_stat_count = self maps\mp\gametypes_zm\_globallogic_score::getPersStat( stat_name );
self maps\mp\gametypes_zm\_globallogic_score::incPersStat( stat_name, -current_stat_count, false, true );
self.stats_this_frame[stat_name] = true;
}

So basically, it negatively increments the stat by its current value effectively making it zero. The function is specifically being used for You must login or register to view this content. but I couldn't get it to work on "regular" stats.
Digging deeper, incPersStat() is implemented as follows:
    incPersStat( dataName, increment, record_stats, includeGametype )
{
pixbeginevent( "incPersStat" );

self.pers[dataName] += increment;

if ( isDefined( includeGameType ) && includeGameType )
{
self AddPlayerStatWithGameType( dataName, increment );
}
else
{
self AddPlayerStat( dataName, increment );
}

if ( !isdefined(record_stats) || record_stats == true )
{
self thread threadedRecordPlayerStats( dataName );
}

pixendevent();
}

We finally made it to a built-in function called AddPlayerStat(). Does it prevent stats from being lowered internally? Using GSC we have no influence on it, do we? There is no other possible way of decreasing stats, is there? Reaper
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo