Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. SCALE_HEAD = Vector( ) * 2.8
  2. SCALE_LIMBS = Vector( 1, 2, 2 )
  3.  
  4. function _R.Player:BuildBonePositions( )
  5.     local index, matrix
  6.    
  7.     index = self:LookupBone( "ValveBiped.Bip01_Head1" )
  8.     matrix = self:GetBoneMatrix( index )
  9.     matrix:Scale( SCALE_HEAD )
  10.     self:SetBoneMatrix( index, matrix )
  11.    
  12.     index = self:LookupBone( "ValveBiped.Bip01_L_Forearm" )
  13.     matrix = self:GetBoneMatrix( index )
  14.     matrix:Scale( SCALE_LIMBS )
  15.     self:SetBoneMatrix( index, matrix )
  16.    
  17.     index = self:LookupBone( "ValveBiped.Bip01_R_Forearm" )
  18.     matrix = self:GetBoneMatrix( index )
  19.     matrix:Scale( SCALE_LIMBS )
  20.     self:SetBoneMatrix( index, matrix )
  21.    
  22.     index = self:LookupBone( "ValveBiped.Bip01_L_Calf" )
  23.     matrix = self:GetBoneMatrix( index )
  24.     matrix:Scale( SCALE_LIMBS )
  25.     self:SetBoneMatrix( index, matrix )
  26.    
  27.     index = self:LookupBone( "ValveBiped.Bip01_R_Calf" )
  28.     matrix = self:GetBoneMatrix( index )
  29.     matrix:Scale( SCALE_LIMBS )
  30.     self:SetBoneMatrix( index, matrix )
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement