Advertisement
pogh10

Untitled

May 25th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. function GM:PlayerNoClip(ply)
  2. -- Default action for noclip is to disallow it
  3. return false
  4. end
  5.  
  6. -- Start Spawn Functions
  7. function EXPSetVarsOnSpawn(pl)
  8. if pl:GetNWInt("Skill_HP", 0) >= 1 then
  9. pl:SetMaxHealth(100 + MaxHpGain*self.ST_Skills[3].Value * 10)
  10. pl:SetHealth(pl:GetMaxHealth())
  11. end
  12. if pl:GetNWInt("Skill_ARMOR", 0) >= 1 then
  13. pl:SetArmor(0 + MaxArmorGain*self.ST_Skills[4].Value * 10)
  14. pl.MaxArmor = (100 + MaxArmorGain*self.ST_Skills[4].Value * 10)
  15. else
  16. pl.MaxArmor = 100
  17. end
  18. if pl:GetNWInt("Skill_JUMP", 0) >= 1 then
  19. pl:SetJumpPower(160 + JumpPowerVar*self.ST_Skills[1].Value * 200)
  20. end
  21. if pl:GetNWInt("Skill_SPEED", 0) >= 1 then
  22. pl:SetWalkSpeed(150 + self.ST_Skills[2].Value * 200)
  23. pl:SetRunSpeed(250 + self.ST_Skills[2].Value * 200)
  24. end
  25. end
  26. hook.Add( "PlayerLoadout", "Set Vars On Spawn", EXPSetVarsOnSpawn )
  27. -- End Spawn Functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement