Garry's Mod

Garry's Mod

Wings
OmerRDT Jul 11, 2014 @ 2:55pm
Codes for it for a server
i want my firend to add this to his server but he said he need codes for it so it will fit correctly and function with it without crashing peoples games pls if someone can make it for me
< >
Showing 1-2 of 2 comments
Glada_Laxen Jul 27, 2014 @ 6:07pm 
ITEM.Name = 'White Wings' ITEM.Price = 500 ITEM.Model = 'models/wings/wings_folded.mdl' ITEM.Bone = 'ValveBiped.Bip01_Spine2' 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(0.7, 0) pos = pos + (ang:Forward() * -29) + (ang:Right() * -2) + (ang:Up() * 0) ang:RotateAroundAxis(ang:Right(), 270) ang:RotateAroundAxis(ang:Forward(), 0) ang:RotateAroundAxis(ang:Up(), 90) return model, pos, ang end

I do not know how to make them black though, ITEM.Material and then placing the line for black .vmt doesn't seem to work. :/
OmerRDT Jul 28, 2014 @ 9:38am 
Originally posted by Glada_Laxen:
ITEM.Name = 'White Wings' ITEM.Price = 500 ITEM.Model = 'models/wings/wings_folded.mdl' ITEM.Bone = 'ValveBiped.Bip01_Spine2' 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(0.7, 0) pos = pos + (ang:Forward() * -29) + (ang:Right() * -2) + (ang:Up() * 0) ang:RotateAroundAxis(ang:Right(), 270) ang:RotateAroundAxis(ang:Forward(), 0) ang:RotateAroundAxis(ang:Up(), 90) return model, pos, ang end

I do not know how to make them black though, ITEM.Material and then placing the line for black .vmt doesn't seem to work. :/
my friend trid to add it it dident work its a deathrun server so you will know and it dident work
< >
Showing 1-2 of 2 comments
Per page: 1530 50