1. I need something that will register a headshot for the Arbalest
2. I need something that will make the icebow make it so your items get put back in your inventory so you cannot switch weapons/use weapons while frozen
look at the SVD :3
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);
}
}
2. i would try something like when the player is hit, %client.isarrowfrozen and stopping the fire function
and not sure if this works this way...
function ShapebaseImageData::Fire(%this, %obj, %col){
if(%obj.isarrowfrozen)
return;
Parent::fire(%this, %obj, %col);
}
hope it helps