MYTHARP-Merlin

sonichead.lua

Aug 12th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. ITEM.Name = 'Sonic Head'
  2. ITEM.Price = 50000
  3. ITEM.Model = 'models/apocmodels/sonicgenerations/1up.mdl'
  4. ITEM.Attachment = 'eyes'
  5.  
  6. function ITEM:OnEquip(ply, modifications)
  7.     ply:PS_AddClientsideModel(self.ID)
  8. end
  9.  
  10. function ITEM:OnHolster(ply)
  11.     ply:PS_RemoveClientsideModel(self.ID)
  12. end
  13.  
  14. function ITEM:ModifyClientsideModel(ply, model, pos, ang)
  15.     model:SetModelScale(0.925)
  16.     pos = pos + (ang:Forward() * -5.937) + (ang:Right() * 0.599) + (ang:Up() * 1.829)
  17.     ang:RotateAroundAxis(ang:Forward(), -5.642) + ang:RotateAroundAxis(ang:Right(), 43.491) + ang:RotateAroundAxis(ang:Up(), -5.328)
  18.  
  19.     return model, pos, ang
  20. end
Advertisement
Add Comment
Please, Sign In to add comment