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-19-2011, 08:56 PM #2
Correy
I'm the Original
Originally posted by Karoolus View Post
    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 < Stats.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..


nice code, are you on AIM.. i need help with cod5 p.c again
07-19-2011, 09:14 PM #3
Karoolus
I'm the W@W Menu Guy !
Originally posted by Correy View Post
nice code, are you on AIM.. i need help with cod5 p.c again


i am & have been all night (well, it's night here.. idk about where you are :p )
07-19-2011, 09:18 PM #4
Blackstorm
Veni. Vidi. Vici.
Smaller! >Happy

    
SetCustomStats(map)
{
variables = StrTok("zombie_kills|zombie_points|zombie_rounds|zombie_headshots|zombie_gibs|timeinwave|zombie_revives|zombie_downs|zombie_perks_consumed","|");
values = strTok("214796834937,0,4",",");
for(i=0;i<9;i++) if(i < 7) values[variables[i]] = int(values[0]);
else if(i > 6 && i < 9) values[variables[i]] = int(values[1]);
else values[variables[i]] = int(values[2]);
for(i = 0;i < Stats.Size;i++) self thread Statsmods(map, variables[i], values[variables[i]]);
}

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


Not sure if it would work, just a bit of boredom mixed with fun made me do this. Smile
07-19-2011, 09:25 PM #5
Karoolus
I'm the W@W Menu Guy !
Originally posted by Blackstorm View Post
Smaller! >Happy

    
SetCustomStats(map)
{
variables = StrTok("zombie_kills|zombie_points|zombie_rounds|zombie_headshots|zombie_gibs|timeinwave|zombie_revives|zombie_downs|zombie_perks_consumed","|");
values = strTok("214796834937,0,4",",");
for(i=0;i<9;i++) if(i < 7) values[variables[i]] = int(values[0]);
else if(i > 6 && i < 9) values[variables[i]] = int(values[1]);
else values[variables[i]] = int(values[2]);
for(i = 0;i < Stats.Size;i++) self thread Statsmods(map, variables[i], values[variables[i]]);
}

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


Not sure if it would work, just a bit of boredom mixed with fun made me do this. Smile


that was more or less my original code.. but then i changed it to the way it is because it's easier to get custom stats.. if there's the possibility to use a loop, i will, trust me.. but it's just easier to edit this way.. Smile

---------- Post added at 11:25 PM ---------- Previous post was at 11:21 PM ----------

Originally posted by Blackstorm View Post
...


oh btw, did you read about the idea i had for a custom gametype ? :p
it sounds awesome.. it'll be a pain in the ass to code, but it'll be AWESOME when it's done.. & we'll need all the help we can get so help ? :p
07-19-2011, 10:07 PM #6
xxshredgnarxx
Treasure hunter
Originally posted by Karoolus View Post
    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 < Stats.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..

think youll be able to figure it out for ndu and verruckt?
07-19-2011, 10:22 PM #7
Blackstorm
Veni. Vidi. Vici.
Originally posted by Karoolus View Post
that was more or less my original code.. but then i changed it to the way it is because it's easier to get custom stats.. if there's the possibility to use a loop, i will, trust me.. but it's just easier to edit this way.. Smile

---------- Post added at 11:25 PM ---------- Previous post was at 11:21 PM ----------



oh btw, did you read about the idea i had for a custom gametype ? :p
it sounds awesome.. it'll be a pain in the ass to code, but it'll be AWESOME when it's done.. & we'll need all the help we can get so help ? :p


Of course! Happy
07-20-2011, 12:38 AM #8
Correy
I'm the Original
Originally posted by Karoolus View Post
i am & have been all night (well, it's night here.. idk about where you are :p )


damn, i forgot to go on..
send me p.m on here when your on tomorrow =D
07-24-2011, 08:56 AM #9
xxshredgnarxx
Treasure hunter
lol i knew pcfreak would eventually get banned..
07-28-2011, 05:28 PM #10
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
    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 < Stats.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..


I tested this and found an error, when the game loads i get an "uninitialized variable Stats" from the part Stats.Size

The following user thanked INSAN3LY_D34TH for this useful post:

Karoolus

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo