Author Topic: Prop Hunt server Prop hit boxes not registering  (Read 1454 times)

0 Members and 1 Guest are viewing this topic.

Offline DJX

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Prop Hunt server Prop hit boxes not registering
« on: January 15, 2016, 10:47:49 PM »
So I have a dedicated gmod server running prop hunt with a small issue with the hit boxes. When players have a playermodel on from the pointshop, it throws off the hit box to where when a prop gets shot directly, it takes no damage but when the player model is removed, damage is taken normally again. Is there a way to make it so that either the point shop removes player models from props or to edit the hit boxes? I tried this code in point shop but it didn't help.

Code: [Select]
ITEM.Name = 'Buzz Lightyear'
ITEM.Price = 35000
ITEM.Model = 'models/code_gs/buzz/buzzplayer.mdl'

function ITEM:OnEquip(ply, modifications)
if ply:Team() == TEAM_HUNTERS then
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
end

timer.Simple(1, function() ply:SetModel(self.Model) end)
end

function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end

function ITEM:PlayerSetModel(ply)
if ply:Team() == TEAM_HUNTERS then
ply:SetModel(self.Model)
end
end
Any help is appreciated!