// Deathmatch stats Class SWWMStatScreen_DM : SWWMStatScreen { override void initStats() { CurState = StatCount; acceleratestage = 0; for( int i=0; i Plrs[i].fragcount ) cnt_frags[i] = Plrs[i].fragcount; else stillticking = true; } if ( !stillticking ) { PlaySound("menu/buyinv"); ng_state++; } } else if ( ng_state == 4 ) { if ( !(bcnt&2) ) PlaySound("menu/demoscroll"); stillticking = false; for ( int i=0; i player_deaths[i] ) cnt_deaths[i] = player_deaths[i]; else stillticking = true; } if ( !stillticking ) { PlaySound("menu/buyinv"); ng_state++; } } else if ( ng_state == 6 ) { int i; for ( i=0; i sorted; GetSortedPlayers(sorted,teamplay); foreach ( i:sorted ) { if ( !playeringame[i] ) continue; xx = int((ss.x-boxwidth)/2+pad); Screen.Dim(players[i].GetDisplayColor(),.4,int(xx*hs),int(yy*hs),int(linew*hs),int(lineh*hs)); xx += pad; if ( playerready[i] || players[i].Bot ) Screen.DrawChar(mSmallFont,Font.CR_GREEN,xx,yy,checkmark,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); xx += rwidth; Screen.DrawText(mSmallFont,GetRowColor(players[i],i==me),xx,yy,players[i].GetUserName(),DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); xx += namelen+spc; if ( ng_state >= 2 ) { str = String.Format("%d",cnt_deaths[i]); Screen.DrawText(mSmallFont,Font.CR_WHITE,xx+deathslen-mSmallFont.StringWidth(str),yy,str,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); } xx += deathslen+spc; str = String.Format("%d",cnt_frags[i]); Screen.DrawText(mSmallFont,Font.CR_WHITE,xx+fragslen-mSmallFont.StringWidth(str),yy,str,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); yy += lineh+lspc; } xx = int((ss.x-boxwidth)/2+pad+pad+rwidth); yy += hspc; Screen.DrawText(mSmallFont,Font.CR_GREEN,xx,yy,totalstr,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); xx += namelen+spc; if ( ng_state >= 4 ) { str = String.Format("%d",total_deaths); Screen.DrawText(mSmallFont,Font.CR_WHITE,xx+deathslen-mSmallFont.StringWidth(str),yy,str,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); } xx += deathslen+spc; str = String.Format("%d",total_frags); Screen.DrawText(mSmallFont,Font.CR_WHITE,xx+fragslen-mSmallFont.StringWidth(str),yy,str,DTA_VirtualWidthF,ss.x,DTA_VirtualHeightF,ss.y,DTA_KeepRatio,true); } }