Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GM:PlayerNoClip(ply)
- -- Default action for noclip is to disallow it
- return false
- end
- -- Start Spawn Functions
- function EXPSetVarsOnSpawn(pl)
- if pl:GetNWInt("Skill_HP", 0) >= 1 then
- pl:SetMaxHealth(100 + MaxHpGain*self.ST_Skills[3].Value * 10)
- pl:SetHealth(pl:GetMaxHealth())
- end
- if pl:GetNWInt("Skill_ARMOR", 0) >= 1 then
- pl:SetArmor(0 + MaxArmorGain*self.ST_Skills[4].Value * 10)
- pl.MaxArmor = (100 + MaxArmorGain*self.ST_Skills[4].Value * 10)
- else
- pl.MaxArmor = 100
- end
- if pl:GetNWInt("Skill_JUMP", 0) >= 1 then
- pl:SetJumpPower(160 + JumpPowerVar*self.ST_Skills[1].Value * 200)
- end
- if pl:GetNWInt("Skill_SPEED", 0) >= 1 then
- pl:SetWalkSpeed(150 + self.ST_Skills[2].Value * 200)
- pl:SetRunSpeed(250 + self.ST_Skills[2].Value * 200)
- end
- end
- hook.Add( "PlayerLoadout", "Set Vars On Spawn", EXPSetVarsOnSpawn )
- -- End Spawn Functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement