{strip} {* thing = player or clan thingid = ID of the 'thing' weaponlist = list of weapons to display *} {if !$weaponid} {assign var='weaponid' value=$weaponlist[0].weaponid} {/if} {if $conf.showhitboxes}
{include file='weapon_hitbox.html' weapon=$weaponlist|@findid:$weaponid:'weaponid'} {include file='weapon_hitbox_combined.html' plrid=$plrid clanid=$clanid}

{/if} {/strip}
<#Weapon Proficiency#>
{if $conf.showhitboxes} {/if} {foreach from=$weaponlist item='w'} {if $conf.showhitboxes} {/if} {foreachelse} {/foreach}
{sortheader label='<#Weapon#>' sort='name' baseurl="$PHP_SELF?id=$thingid" order=$worder cursort=$wsort prefix='w' urltail='#weapons'} {sortheader label='<#Kills#>' sort='kills' order=$order} {sortheader label='<#Deaths#>' sort='deaths' order=$order} {sortheader label='<#Damage#>' sort='damage' order=$order}{sortheader label='<#Accuracy#>' sort='accuracy' order=$order} {sortheader label='<#HS#>' sort='headshots' order=$order title="<#Headshots#>"} {sortheader label='<#HS%#>' sort='headshotpct' order=$order title="<#Headshot Percentage#>"} {sortheader label='<#S:K#>' sort='shotsperkill' order=$order title="<#Shots Per Kill#>"}
{weaponimg name="`$w.name`.gif" desc=$w.desc|default:$w.name|escape} {$w.kills|commify} {$w.deaths|commify} {$w.damage|commify}{$w.accuracy}% {$w.headshots|commify} {$w.headshotpct}% {$w.shotsperkill|digits2}

<#No weapons to display#>

{$weaponlist|@count} <#weapons used#>