Permalink
Browse files

Added weapon to the properties hover halo

For NPCs and entities that have them.
  • Loading branch information...
1 parent 92ed794 commit f48891ffe2d36ec3db568935bca6b068b5ab6d50 @robotboy655 robotboy655 committed Aug 7, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 garrysmod/lua/includes/modules/properties.lua
@@ -159,7 +159,9 @@ if ( CLIENT ) then
c.g = 200 + math.sin( RealTime() * 20 ) * 55
c.b = 200 + math.cos( RealTime() * 60 ) * 55
- halo.Add( { ent }, c, 2, 2, 2, true, false )
+ local t = { ent }
+ if ( ent.GetActiveWeapon && IsValid( ent:GetActiveWeapon() ) ) then table.insert( t, ent:GetActiveWeapon() ) end
+ halo.Add( t, c, 2, 2, 2, true, false )
end )

0 comments on commit f48891f

Please sign in to comment.