Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.17 KB | None | 0 0
  1. SCALE_HEAD = Vector( ) * 2.8
  2. SCALE_LIMBS = Vector( 1, 2, 2 )
  3.  
  4. function BuildBonePositions( self )
  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
  32.  
  33. local function Tick( )
  34.     local k, v
  35.    
  36.     for k, v in ipairs( player.GetAll( ) ) do
  37.         if v.BuildBonePositions ~= BuildBonePositions then
  38.             v.BuildBonePositions = BuildBonePositions
  39.         end
  40.     end
  41. end
  42.  
  43. hook.Add( "Tick", "Chibi.Tick", Tick )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement