Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ent = ClientsideModel("models/props_junk/plasticbucket001a.mdl")
- local ply = LocalPlayer()
- local pos, ang
- local pos_offset = Vector(-18, -3, 0)
- local ang_offset = Angle(0, 60, 90)
- hook.Add("PostPlayerDraw", "aaaa", function(_ply)
- if _ply == ply then
- pos, ang = ply:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_Spine4"))
- pos, ang = LocalToWorld(pos_offset, ang_offset, pos, ang)
- ent:SetRenderOrigin(pos)
- ent:SetRenderAngles(ang)
- ent:SetupBones()
- ent:DrawModel()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment