Disable certain PS items for props (Prophunts

Some items for my pointshop are made using PAC so they show up for the props in Prop Hunt (obvious flaw) so I was wondering if there is a way to disable the textures (since they’re all pat texture and effect items) or make them transparent.
Thanks! :stuck_out_tongue:

Is Prophunt using teams?

Yes

then change youre item code!
[lua]
ITEM.Name = ‘Burning Wood-Crate’
ITEM.Price = 45000
ITEM.Model = ‘models/props_junk/wood_crate001a.mdl’
ITEM.Attachment = ‘eyes’

function ITEM:OnEquip(ply, modifications)
if ply:IsPlayer() and (ply:IsTeam() == 1) and ply:Alive() then
ply:PS_AddClientsideModel(self.ID)
end
end

function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end

function ITEM:ModifyClientsideModel(ply, model, pos, ang)
local Size = Vector(0.5,0.5,0.5)
local mat = Matrix()
mat:Scale(Size)
model:EnableMatrix(‘RenderMultiply’, mat)

model:SetMaterial('models/props_halloween/scary_ghost')

local MAngle = Angle(0,0,0)
local MPos = Vector(0,0,0)

pos = pos + (ang:Forward() * MPos.x) + (ang:Up() * MPos.z) + (ang:Right() * MPos.y)
ang:RotateAroundAxis(ang:Forward(), MAngle.p)
ang:RotateAroundAxis(ang:Up(), MAngle.y)
ang:RotateAroundAxis(ang:Right(), MAngle.r)

halo.Add( {model},
Color(255,0,0),
1,
1,
1)


return model, pos, ang

end
[/lua]
Oh by the way heres a free new head for you :).

If the hunter team is 1 then it only gives them the hat!-- if not change that :slight_smile:

Short Break:
If youre gamemode bugs with halos remove the halo :smiley:

How could I apply that to this:


ITEM.PACOutfit = {
	["children"] = {
		[1] = {
			["children"] = {
			},
			["self"] = {
				["Velocity"] = 0,
				["UniqueID"] = "985163883",
				["AnglePartMultiplier"] = Vector(0, 0, 0),
				["EndSize"] = 15,
				["Material"] = "sprites/key_8",
				["StartAlpha"] = 99.9,
				["Gravity"] = Vector(0, 0, 0),
				["RandomColour"] = false,
				["Collide"] = false,
				["Position"] = Vector(3.0747985839844, 1.7493896484375, 1.7956848144531),
				["Sliding"] = false,
				["Bounce"] = 0,
				["FireDelay"] = 1.1,
				["GlobalID"] = "1225131966",
				["AngleOffset"] = Angle(0, -0.5, 0),
				["Lighting"] = false,
				["AirResistance"] = 0,
				["EndAlpha"] = 100,
				["StickEndAlpha"] = -0.1,
				["Translucent"] = false,
				["ClassName"] = "particles",
			},
		},
	},
	["self"] = {
		["GlobalID"] = "33400272",
		["UniqueID"] = "934759949",
		["ClassName"] = "group",
		["EditorExpand"] = true,
		["Name"] = "my outfit",
		["Description"] = "add parts to me!",
	},
}
ITEM.Material = "sprites/key_8"
ITEM.lastSave = 1394896562
ITEM.Price = 15000
ITEM.Name = "8"
ITEM.Description = ""

function ITEM:OnEquip( ply, modifications )
self:DoPACAttach( ply ) 
end

function ITEM:OnHolster( ply )
	self:DoPACDetach( ply )
end

Thanks :slight_smile:

Read through the code he has given you and replace the way normal items are equipped with the way PAC ones are.


function ITEM:OnEquip(ply, modifications)
    if ply:IsPlayer() and (ply:IsTeam() == 1) and ply:Alive() then
	    ply:PS_AddClientsideModel(self.ID)
	end
end