Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SCALE_HEAD = Vector( ) * 2.8
- SCALE_LIMBS = Vector( 1, 2, 2 )
- function BuildBonePositions( self )
- local index, matrix
- index = self:LookupBone( "ValveBiped.Bip01_Head1" )
- matrix = self:GetBoneMatrix( index )
- matrix:Scale( SCALE_HEAD )
- self:SetBoneMatrix( index, matrix )
- index = self:LookupBone( "ValveBiped.Bip01_L_Forearm" )
- matrix = self:GetBoneMatrix( index )
- matrix:Scale( SCALE_LIMBS )
- self:SetBoneMatrix( index, matrix )
- index = self:LookupBone( "ValveBiped.Bip01_R_Forearm" )
- matrix = self:GetBoneMatrix( index )
- matrix:Scale( SCALE_LIMBS )
- self:SetBoneMatrix( index, matrix )
- index = self:LookupBone( "ValveBiped.Bip01_L_Calf" )
- matrix = self:GetBoneMatrix( index )
- matrix:Scale( SCALE_LIMBS )
- self:SetBoneMatrix( index, matrix )
- index = self:LookupBone( "ValveBiped.Bip01_R_Calf" )
- matrix = self:GetBoneMatrix( index )
- matrix:Scale( SCALE_LIMBS )
- self:SetBoneMatrix( index, matrix )
- end
- local function Tick( )
- local k, v
- for k, v in ipairs( player.GetAll( ) ) do
- if v.BuildBonePositions ~= BuildBonePositions then
- v.BuildBonePositions = BuildBonePositions
- end
- end
- end
- hook.Add( "Tick", "Chibi.Tick", Tick )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement