1------[] 2
1 = shooter
2 = victim
[] = wall
local playerlist=player(0,"tableliving") for _,id in pairs(playerlist) do ' insert distance check logic here end
vid = 0 addhook("attack", "attack_") function attack_(sid) 	if player(sid, "weapon") == 32 then 		if player(sid, "rot") == -- its victim position idk how to do it 			vid = -- idk how to get victim id, dont using hit hook 			msg2(sid, "ID: "..vid) 		end 	end end
math.sqrt((player(sid, "x") - player(vid, "x")) ^ 2 + (player(sid, "y") - player(vid, "y")) ^ 2))