// PigStats for JavaScript 
// Overall player statistics

// wi["<weapon name>"] gives weapon index from name
// wq quantity of weapons logged
// w[<weapon index>][0] gives weapon name
// w[<weapon index>][1] gives total kills with weapon 
// w[<weapon index>][2] gives number of players listed in wk for this weapon 
// wk[<weapon index][<0..w[<weapon index>][1]>][0] gives kills by player, listed in descending order
// wk[<weapon index][<0..w[<weapon index>][1]>][1] gives player name
// pq gives player quantity
// pk[<0..pq-1>] list of player indices, sorted by kills (best first)
// pkq quantity of players in sorted kills list
// pts[<0..pq-1>] list of pl. indices, sort by TFC Score (tfc only, best first)
// ptsq quantity of players in sorted TFC Score list (tfc only)
// pr[<0..pq-1>] list of player indices, sorted by ratio (best first)
// prq quantity of players in sorted ratio list
// prt[<0..pq-1>] list of player indices, sorted by rate (best first)
// prtq quantity of players in sorted rate list
// pd[<0..pq-1>] list of player indices, sorted by deaths (best first)
// pdq quantity of players in sorted deaths list
// ps[<0..pq-1>] list of player indices, sorted by suicides (best first)
// psq quantity of players in sorted suicides list
// pmw[<0..pq-1>] list of player indices, sorted by match wins (best first)
// pmwq quantity of players in sorted match wins list
// pt[<0..pq-1>] list of pl. indices, sort by time played (highest first)
// ptq quantity of players in sorted time played list
// pc[<0..pq-1>] list of player indices, sorted by caps (tfc only, best first)
// pcq quantity of players in sorted caps list (tfc only)
// psk[<0..pq-1>] list of pl. indices, sort by skill (tfc only, best first)
// pskq quantity of players in sorted skill list (tfc only)
// pi["<player name>"] gives player index from name
// p[<player index>][0] gives player name
// p[<player index>][1] gives player link file name
// p[<player index>][2] gives player kills total
// p[<player index>][3] gives player deaths total
// p[<player index>][4] gives player suicides total
// p[<player index>][5] gives player kill/death ratio (-1.0 means no deaths)
// p[<player index>][6] gives player kill rate (kills/minute)(-1.0 means play time is zero)
// p[<player index>][7] gives player play time (minutes)
// p[<player index>][8] gives quantity of killed players in px
// p[<player index>][9] gives quantity of players killed by in px
// p[<player index>][10] gives quantity of kill/death ratio against players in px
// p[<player index>][11] gives quantity of kill weapons in px
// p[<player index>][12] gives quantity of killed by weapons in px
// p[<player index>][13] gives player match wins total
// p[<player index>][14] gives player caps (tfc only)
// p[<player index>][15] gives player skill (tfc only)
// p[<player index>][16] gives player TFC Score (tfc only)
// px[<player index>][0][n][0] gives kill count against player
// px[<player index>][0][n][1] gives kill against player name
// px[<player index>][1][n][0] gives killed by count against player
// px[<player index>][1][n][1] gives killed by player name
// px[<player index>][2][n][0] gives kill ratio against player
// px[<player index>][2][n][1] gives kill ratio against player name
// px[<player index>][3][n][0] gives kill count with weapon
// px[<player index>][3][n][1] gives kill by weapon name
// px[<player index>][4][n][0] gives killed by count with weapon
// px[<player index>][4][n][1] gives killed by weapon name
// metabp gives total bytes processed
// metafp gives total files processed
// metapds gives total processing duration, in seconds
// metaptd gives time and date of processing
// metatpp gives total players processed (differs from pq if filtering is used)
// metaos gives operating system used to process
// metapsv gives pigstats version string
// metapsa gives pigstats arguments description
// aretfcstats boolean is true if any tfc maps were parsed

wi=new(Array)
w=new(Array)
wk=new(Array)
wi["flames"]=0
wk[0]=[[7,"Sawney Beane"],]
w[0]=["flames",7,1]
wi["ac"]=1
wk[1]=[[2,"juancarlos"],[1,"1"],]
w[1]=["ac",3,2]
wi["sniperrifle"]=2
wk[2]=[[2,"Sawney Beane"],]
w[2]=["sniperrifle",2,1]
wi["knife"]=3
wk[3]=[[2,"Sawney Beane"],]
w[3]=["knife",2,1]
wi["rocket"]=4
wk[4]=[[1,"1"],[0,"climbersoldier"],]
w[4]=["rocket",1,2]
wi["headshot"]=5
wk[5]=[[1,"Sawney Beane"],]
w[5]=["headshot",1,1]
wi["sentrygun"]=6
wk[6]=[[1,"Sawney Beane"],]
w[6]=["sentrygun",1,1]
wi["nails"]=7
wk[7]=[[1,"1"],]
w[7]=["nails",1,1]
wq=8
pts=[24,23,20,4,1,]
ptsq=5
pk=[24,23,1,4,20,]
pkq=5
pr=[24,1,23,]
prq=3
prt=[24,1,23,]
prtq=3
pd=[4,20,1,24,23,]
pdq=5
ps=[4,20,24,1,23,]
psq=5
pmw=[24,23,20,4,1,]
pmwq=5
pt=[23,1,24,4,20,]
ptq=5
pc=[4,23,20,1,24,]
pcq=5
psk=[24,23,4,1,20,]
pskq=5
pi=new(Array)
pi["juancarlos"]=1
pi["ad_sense"]=4
pi["spiderman"]=20
pi["1"]=23
pi["Sawney Beane"]=24
pq=5
p=new(Array)
px=new(Array)
px[1]=[[[2,"el tueur"],],[[0,"el tueur"],],[[-1.0,"el tueur"],],[[2,"ac"],],[]]
p[1]=["juancarlos","juancarlos",2,1,1,2.000,0.110,18.233,1,1,1,1,0,1,0,0.00,2]
px[4]=[[],[],[],[],[]]
p[4]=["ad_sense","ad5Fsense",0,0,0,-1.000,0.000,14.550,0,0,0,0,0,1,1,0.00,10]
px[20]=[[],[],[],[],[]]
p[20]=["spiderman","spiderman",0,0,0,-1.000,0.000,2.067,0,0,0,0,0,1,1,0.00,10]
px[23]=[[[3,"Sawney Beane"],],[[13,"Sawney Beane"],],[[0.231,"Sawney Beane"],],[[1,"rocket"],[1,"ac"],[1,"nails"],],[[7,"flames"],[2,"knife"],[2,"sniperrifle"],[1,"sentrygun"],[1,"headshot"],]]
p[23]=["1","1",3,21,8,0.143,0.056,53.200,1,1,1,3,5,1,1,136.30,13]
px[24]=[[[13,"1"],],[[3,"1"],],[[4.333,"1"],],[[7,"flames"],[2,"sniperrifle"],[2,"knife"],[1,"sentrygun"],[1,"headshot"],],[[1,"nails"],[1,"ac"],[1,"rocket"],]]
p[24]=["Sawney Beane","Sawney20Beane",13,3,0,4.333,0.852,15.267,1,1,1,5,3,2,0,865.80,13]
metabp=9690972
metafp=349
metapds=0.374
metaptd='Fri Sep 04 00:05:00 2009'
metapsv='1.8'
metatpp=28
metapsa='top 100 players, 30 cross-ref limit, last 100 games, this month only, repeat ea. day+5 min.'
metaos='Windows 6.0 build 6000'
aretfcstats=true
