Jump Pack


SUBMITTED BY: Guest

DATE: May 14, 2013, 6:07 p.m.

FORMAT: Lua

SIZE: 788 Bytes

HITS: 2346

  1. ITEM.Name = 'Jump Pack'
  2. ITEM.Price = 1000
  3. ITEM.Model = 'models/xqm/jetengine.mdl'
  4. ITEM.Bone = 'ValveBiped.Bip01_Spine2'
  5. ITEM.AllowedUserGroups = { "admin", "donator", "superadmin","vipmoderator","vetadmin","sdonator","bdonator","gdonator","ddonator" }
  6. function ITEM:OnEquip(ply, modifications)
  7. ply:PS_AddClientsideModel(self.ID)
  8. end
  9. function ITEM:OnHolster(ply)
  10. ply:PS_RemoveClientsideModel(self.ID)
  11. end
  12. function ITEM:ModifyClientsideModel(ply, model, pos, ang)
  13. model:SetModelScale(0.5, 0)
  14. pos = pos + (ang:Right() * 7) + (ang:Forward() * 6)
  15. return model, pos, ang
  16. end
  17. function ITEM:Think(ply, modifications)
  18. if ply:KeyDown(IN_JUMP) then
  19. ply:SetVelocity(ply:GetUp() * 11)
  20. end
  21. end

comments powered by Disqus