This is excellent! Just tried it. Maybe you could use this code that will put text above the murderer's head with the their name. I can't remember who the original author is but it helps a lot.
CREDITS GO TO THE ORIGINAL AUTHOR - I DID NOT WRITE THIS, JUST EDITED IT SLIGHTLY.
Code:
hook.Add("HUDPaint","MurderFinder", function()
for _,v in pairs (player.GetAll()) do
for k2, v2 in pairs(v:GetWeapons()) do
if string.find(v2:GetPrintName(), "Knife") then
man = v2.Owner
effects.halo.Add({man}, Color(255,0,0), 1, 1, 5, true, true)
local pos = man:GetPos() + Vector(0,0,90)
local size = ScrW() * 0.05
local dis = math.floor(man:GetPos():Distance(LocalPlayer():GetPos()))
pos = pos:ToScreen()
draw.DrawText("("..man:Name()..") Murderer", "Default", pos.x, pos.y - 15, Color(255,0,0),1)
end
end
end
end)
I've made a quick list of recommendations - your script is amazing but just some things I think would improve it
1.) Reduce size of the "LOOT HERE" text, doesn't need to be that big.
2.) Bounding boxes appear to be bound to the player's head - maybe make it surrounding the whole player model.
3.) "GUN" text could be a bit smaller.
4.) Chams would be really cool - not the slightest clue how it can be done though.
5.) Maybe make the text size affected by distance away from object that it is drawn on? Sometimes when there is more than one person with a gun it can get a little crazy. I attached an image of what can happen to this post.
6.) A simple toggle menu would be sweet! Not sure how easy that is to do, though.
That's kind of it. Thanks so much for your hard work!
-Tom