Author Topic: Physgun  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.

Offline Schiaffino

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 1
Physgun
« on: August 03, 2014, 03:47:23 PM »
Hello guys, i was working in an addon and i was trying to figure out how to make it work with FPP and allow me to use remover tool on it and i did it it works, but the problem after i've added this code to allow me to use remover tool on it

    self:CPPISetOwner(self.dt.owning_ent)
    self.SID = self.dt.owning_ent.SID

I accidentaly activated an option so the user can physgun it so i tried to disable this option and i did it the user wasn't allowed to pickup the entity but the problem is that still show the beam of the physgun on it...

Is there a way to like improve this code and avoid the user see the physgun beam on it? i mean this:

http://i.gyazo.com/d4b44c46474b060646f91188490491ce.png

function Disable( ply, ent )
   for k,v in pairs(ents.FindByClass("ent_name")) do
      return ""
   end
end
hook.Add( "PhysgunPickup", "Disable Props Pickup", Disable )

 I would really appreciate your help, i would really like to have that beam looks lik ethis instead of the actual one:

http://i.gyazo.com/c1247ecb76a8d1400761f7512d5e5b06.png