So I've been making tons and tons of items for _Unidefined's pointshop for my server and I used pointshop 2 for a while but removed it because it's a piece of scheit that causes client side crashes.
But I had a number of items I'd like to recreate one of them being the "Turtle slippers"
[IMG]http://i.gyazo.com/2f05f9f930a0d1562547a40d03383f34.png[/IMG]
Now I use these 2 pieces of code:
[CODE]ITEM.Name = 'Turtle slippers Right'
ITEM.Price = 7500
ITEM.Model = 'models/props/de_tides/Vending_turtle.mdl'
ITEM.Bone = 'ValveBiped.Bip01_R_Foot'
ITEM.AllowedUserGroups = { "owner","coowner","superadmin","headadmin","senioradmin","dadmin","dmod","dtmod","donator" }
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetModelScale(1.2, 0)
pos = pos + (ang:Right() * -2) + (ang:Up() * 0) + (ang:Forward() * 2)
ang:RotateAroundAxis (ang:Up(), 80)
ang:RotateAroundAxis (ang:Forward(), -180)
ang:RotateAroundAxis (ang:Right(), 90)
return model, pos, ang
end
[/CODE]
and
[CODE]ITEM.Name = 'Turtle slippers Left'
ITEM.Price = 7500
ITEM.Model = 'models/props/de_tides/Vending_turtle.mdl'
ITEM.Bone = 'ValveBiped.Bip01_L_Foot'
ITEM.AllowedUserGroups = { "owner","coowner","superadmin","headadmin","senioradmin","dadmin","dmod","dtmod","donator" }
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetModelScale(1.2, 0)
pos = pos + (ang:Right() * -2) + (ang:Up() * 0) + (ang:Forward() * 2)
ang:RotateAroundAxis (ang:Up(), 80)
ang:RotateAroundAxis (ang:Forward(), -180)
ang:RotateAroundAxis (ang:Right(), 90)
return model, pos, ang
end
[/CODE]
Is there any way to make these 2 pieces of script into 1? I've tried mutiple things but nother worked until now
[QUOTE=Senaeth;48139417]Oops sorry any way I can move this thread?[/QUOTE]
PM a mod.
Unfortunately not with vanilla Pointshop. You could recode the AddClientsideModel function in PointShop to accept a Bone2 parameter, and draw another of the same model on another bone.
Sorry, you need to Log In to post a reply to this thread.