Guest User

Untitled

a guest
Feb 21st, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. if (CLIENT) then
  2. item.name = "Melon Head"
  3. item.model = Model("models/props_junk/watermelon01.mdl")
  4.  
  5. item.LayoutEntity = function(player, entity)
  6. local position, angles = vector_zero, angle_zero
  7. local bone = player:LookupBone("ValveBiped.Bip01_Head1")
  8.  
  9. if (bone != -1) then
  10. position, angles = player:GetBonePosition(bone)
  11.  
  12. position = position +(angles:Forward() *4)
  13.  
  14. angles:RotateAroundAxis(angles:Right(), -12)
  15. end
  16.  
  17. return entity, position, angles
  18. end
  19. end
Add Comment
Please, Sign In to add comment