Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local this = LocalPlayer():GetEyeTrace().Entity
- CSENT = CSENT or ClientsideModel("models/mossman.mdl")
- local ent = CSENT
- --ent:SetPos(LocalPlayer():GetPos())
- function ent:BuildBonePositions()
- do
- local boneid = self:LookupBone(BONE_LEFT_UPPERARM)
- local wpos, wang = self:GetBonePosition(boneid)
- local pos, ang = LocalToWorld(Vector(0, -2, 0), Angle(-20, -80, -30), wpos, wang)
- self:SetBonePosition(boneid, pos, ang)
- local boneid = self:LookupBone(BONE_LEFT_FOREARM)
- local pos, ang = LocalToWorld(Vector(10, 0, 0), Angle(0, -10, 0), pos, ang)
- self:SetBonePosition(boneid, pos, ang)
- local boneid = self:LookupBone(BONE_LEFT_HAND)
- local pos, ang = LocalToWorld(Vector(10, 0, 0), Angle(0, 0, 0), pos, ang)
- self:SetBonePosition(boneid, pos, ang)
- end
- do
- local boneid = self:LookupBone(BONE_RIGHT_UPPERARM)
- local wpos, wang = self:GetBonePosition(boneid)
- local pos, ang = LocalToWorld(Vector(0, -2, 0), Angle(20, -80, 30), wpos, wang)
- self:SetBonePosition(boneid, pos, ang)
- local boneid = self:LookupBone(BONE_RIGHT_FOREARM)
- local pos, ang = LocalToWorld(Vector(10, 0, 0), Angle(0, -10, 0), pos, ang)
- self:SetBonePosition(boneid, pos, ang)
- local boneid = self:LookupBone(BONE_RIGHT_HAND)
- local pos, ang = LocalToWorld(Vector(10, 0, 0), Angle(0, 0, 0), pos, ang)
- self:SetBonePosition(boneid, pos, ang)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment