Post: [SCRIPT] Custom Zombie Stats
07-19-2011, 07:58 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({});
    SetCustomStats(map)
{
variables = StrTok("zombie_kills|zombie_points|zombie_rounds|zombie_downs|zombie_revives|zombie_perks_consumed|zombie_heashots|zombie_gibs|timeinwave","|");
values["zombie_kills"] = 214796834937;
values["zombie_points"] = 214796834937;
values["zombie_rounds"] = 214796834937;
values["zombie_downs"] = 0;
values["zombie_revives"] = 0;
values["zombie_perks_consumed"] = 4;
values["zombie_headshots"] = 214796834937;
values["zombie_gibs"] = 214796834937;
values["timeinwave"] = 214796834937;
for(i = 0; i < values.Size; i++)
{
self thread Statsmods(map, variables[i], values[variables[i]]);
}
}


Statsmods(map,variable,value)
{
dataName = level.zombieLeaderboardStatVariable[map][variable];
self setStat( int(tableLookup( "mp/playerStatsTable.csv", 1, dataName, 0 )), value );
}


untested, but it had no syntax errors.. but since i can't go online on pc i can't check to see if it works.. i'll leave that to someone on ps3 Winky Winky (or xbox ftm)


edit:

oh yeah, one more thing:

thread this on Der Riese (or SNN) but not on NDU or Verruckt.. the leaderboard system changed when SNN came out..
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Karoolus for this useful post:

Correy, xxshredgnarxx
07-28-2011, 06:19 PM #11
Karoolus
I'm the W@W Menu Guy !
Originally posted by D34TH View Post
I tested this and found an error, when the game loads i get an "uninitialized variable Stats" from the part Stats.Size


lol /facepalm on my part :p

it has to be for(i = 0; i < values.size; i++)
Winky Winky

i edited the names before i posted the script but i must've overlooked that one :p

updated OP, thx Smile
07-28-2011, 06:33 PM #12
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
lol /facepalm on my part :p

it has to be for(i = 0; i < values.size; i++)
Winky Winky

i edited the names before i posted the script but i must've overlooked that one :p

updated OP, thx Smile


one more error for you, when i function SetCustomStats and use the input nazi_zombie_factory as the map i get that as an uninitialized variable

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo