• There is a good way to make pointshop hats lua file?
    2 replies, posted
Hello. First of all, I am suffering from making lua files which is related with Pointshop Hats. I used to try to use the PAC But, for me I didn't know what i have to control it................(I configured the Pitch,Yaw,Roll But dont know how to modify it for pointshop) [lua] ITEM.Name = "AQUA MASK" ITEM.Enabled = true ITEM.Donatoronly = true ITEM.Description = "Gives you a sharp AQUA MASK." ITEM.Cost = 7000 ITEM.Model = "models/fo3_aqua_mask.mdl" ITEM.Attachment = "head" ITEM.Functions = { OnGive = function(ply, item) ply:PS_AddHat(item) end, OnTake = function(ply, item) ply:PS_RemoveHat(item) end, ModifyHat = function(ent, pos, ang) pos = pos -(ang:Forward() *5) + (ang:Up() *8.5) + (ang:Right() * 5.5) ang:RotateAroundAxis(ang:Right(), 90) return ent, pos, ang end } [/lua] So i just made it step by step but not works at all And it makes me feel pissed off...
Just use the other hat's template and just change the item.model. Very simple [lua]ITEM.Name = "Aqua Mask" ITEM.Enabled = true ITEM.Description = "Gives you a Aqua Mask" ITEM.Cost = 1 ITEM.Model = "models/fo3_aqua_mask.mdl" ITEM.Attachment = "eyes" ITEM.Functions = { OnGive = function(ply, item) ply:PS_AddHat(item) end, OnTake = function(ply, item) ply:PS_RemoveHat(item) end, ModifyHat = function(ent, pos, ang) ent:SetModelScale(Vector(1.6, 1.6, 1.6)) pos = pos + (ang:Forward() * -2.5) ang:RotateAroundAxis(ang:Right(), -15) return ent, pos, ang end }[/lua]
[QUOTE=M4RK;32554113]Just use the other hat's template and just change the item.model. Very simple [lua]ITEM.Name = "Aqua Mask" ITEM.Enabled = true ITEM.Description = "Gives you a Aqua Mask" ITEM.Cost = 1 ITEM.Model = "models/fo3_aqua_mask.mdl" ITEM.Attachment = "eyes" ITEM.Functions = { OnGive = function(ply, item) ply:PS_AddHat(item) end, OnTake = function(ply, item) ply:PS_RemoveHat(item) end, ModifyHat = function(ent, pos, ang) ent:SetModelScale(Vector(1.6, 1.6, 1.6)) pos = pos + (ang:Forward() * -2.5) ang:RotateAroundAxis(ang:Right(), -15) return ent, pos, ang end }[/lua][/QUOTE] Just paste the other hats file.....?? Why you think it will be works... I mean the appearance. [img]http://imageflock.com/img/1317423601.jpg[/img]
Sorry, you need to Log In to post a reply to this thread.