shadowndacorner

Untitled

Oct 20th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. ply.skin = ClientsideModel(model)
  2. ply.skin.Player=ply
  3. ply.skin:DrawShadow(true)
  4. ply.skin:SetModel(model)
  5. ply.skin:AddEffects( bit.bor(EF_BONEMERGE, EF_BONEMERGE_FASTCULL, EF_PARENT_ANIMATES ) )
  6. ply.skin:SetParent(ply)
  7. ply.skin:SetPos( ply:GetPos() )
  8. ply.skin:SetAngles( ply:GetAngles() )
  9. ply.skin:SetColor(255, 255, 255, 255)
  10. ply.skin.BuildBonePositions= function(self, NumBones, NumPhysBones)
  11. local bonesToShow = {
  12. self.Entity:LookupBone( "ValveBiped.Bip01_Head1" ),
  13. /*self.Entity:LookupBone( "ValveBiped.Bip01_R_Hand" ),
  14. self.Entity:LookupBone( "ValveBiped.Bip01_L_Hand" ),*/
  15. self.Entity:LookupBone( "ValveBiped.Bip01_Neck1" )
  16. }
  17. for i=0, NumBones do
  18. if ply.armor and IsValid(ply.armor) then
  19. if !table.HasValue(bonesToShow, i) then
  20. BoneScale(self, i)
  21. end
  22. else
  23. BoneScaleUp(self, i)
  24. end
  25. end
  26. --end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment