{* This block is included from the player, map and clan pages. This block will output a 'team comparison' table on the top summarizing general values. under that table, two side-by-side tables will display each team's action totals (bombs planted, etc) $thing will be either a PLAYER or CLAN hash of data *} {assign var='totalwins' value=$thing.ctwon+$thing.terroristwon} {calcpct var='bombdefusedpct' sum=$thing.bombdefused total=$thing.bombdefuseattempts} {calcpct var='rescuedhostagespct' sum=$thing.rescuedhostages total=$thing.touchedhostages} {calcpct var='vipescapedpct' sum=$thing.vipescaped total=$thing.rounds} {calcpct var='bombrunnerpct' sum=$thing.bombrunner total=$thing.bombspawned} {calcpct var='bombplantedpct' sum=$thing.bombplanted total=$thing.bombspawned} {calcpct var='bombexplodedpct' sum=$thing.bombexploded total=$thing.bombplanted} {calcpct var='ctkillspct' sum=$thing.ctkills total=$thing.kills digits=0} {calcpct var='terroristkillspct' sum=$thing.terroristkills total=$thing.kills digits=2} {calcpct var='ctwonpct' sum=$thing.ctwon total=$totalwins} {calcpct var='terroristwonpct' sum=$thing.terroristwon total=$totalwins} {assign var='id' value=$id|default:$thing.id}
<#Team Comparison#>
<#Team#> <#Kills#> <#Deaths#> <#Won#> <#Lost#> <#Joined#>
<#CT#> {$thing.ctkills|commify} {$thing.ctdeaths|commify} {$thing.ctwon|commify} {$thing.ctlost|commify} {$thing.joinedct|commify}
<#Terrorist#> {$thing.terroristkills|commify} {$thing.terroristdeaths|commify} {$thing.terroristwon|commify} {$thing.terroristlost|commify} {$thing.joinedterrorist|commify}
<#Comparisons:#> {teamcompare width = '90%' leftwidth = $ctkillspct rightwidth = $terroristkillspct } {teamcompare width = '90%' leftwidth = $ctwonpct rightwidth = $terroristwonpct }

<#Counter-Terrorists#>
<#Bomb Defused:#> {$thing.bombdefused|commify} / {$thing.bombdefuseattempts|commify}
  {$bombdefusedpct|digits2}%
<#Hostages Rescued:#> {$thing.rescuedhostages|commify} / {$thing.touchedhostages|commify}
  {$rescuedhostagespct|digits2}%
<#Escaped as VIP:#> {$thing.vipescaped|commify} / {$thing.rounds|commify}
  {$vipescapedpct|digits2}%
   
<#Terrorists#>
<#Bomb Runner:#> {$thing.bombrunner|commify} / {$thing.bombspawned|commify}
  {$bombrunnerpct|digits2}%
<#Planted Bomb:#> {$thing.bombplanted|commify} / {$thing.rounds|commify}
  {$bombplantedpct|digits2}%
<#Bomb Exploded:#> {$thing.bombexploded|commify} / {$thing.bombplanted|commify}
  {$bombexplodedpct|digits2}%
<#Killed VIP:#> {$thing.vipkilled|commify}