package headshot{
function ProjectileData::damage(%this, %obj, %col, %fade, %pos, %normal){
%this2=%this;
if(%col.getClassName()$="Player"){
if(getword(%pos,2)>getword(%col.getWorldBoxCenter(),2)-3.3){
%name = %this.GetName();
if(%name$="sniperrifleLVProjectile"){
%this2=sniperrifleLVheadshotprojectile;
showheadshot(%obj,%col);
%obj.emote(WinStarProjectile);
}
}
}
return Parent::damage(%this2, %obj, %col, %fade, %pos, %normal);
}
};
ActivatePackage(headshot);
function showheadshot(%obj,%col){
if(!$TG_headshots){
bottomprint(%obj.client,"<bitmap:add-ons/Weapon_SVD/star> \c3Headshot "@%col.client.name,3,4);
bottomprint(%col.client,"<bitmap:add-ons/Weapon_SVD/star> \c7"@%obj.client.name@" Headshot",3,4);
}
}
BOOM! Head Shot!