Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Skill = {}
- Skill.Name = "skill_p_m_leech"
- Skill.PrintName = "Leech"
- Skill.Icon = "icons/bt/skill_inner"
- Skill.Desc = {}
- Skill.Desc["story"] = "Steals life from your enemies"
- Skill.Desc[1] = "You steal 1 health"
- Skill.Desc[2] = "You steal 2 health"
- Skill.Desc[3] = "You steal 3 health"
- Skill.Desc[4] = "You steal 4 health"
- Skill.Desc[5] = "You steal 5 health"
- Skill.Desc[6] = "You steal 6 health"
- Skill.Desc[7] = "You steal 7 health"
- Skill.Desc[8] = "You steal 8 health"
- Skill.Desc[9] = "You steal 9 health"
- Skill.Desc[10] = "You steal 10 health"
- Skill.Active = false
- Skill.Category = CATEGORY_COMMON_PASSIVE
- Skill.Levels = 10
- Skill.Requirements = {}
- for i = 0, 10 do
- Skill.Requirements[i] = {}
- Skill.Requirements[i].Skills = {}
- Skill.Requirements[i].Level = 3 + i*3
- end
- function Skill:BulletCallBack(plyPlayer, intSkill, trcTrace, tblDamageInfo)
- if !SERVER then return end
- local entEntity = trcTrace.Entity
- if intSkill > 0 && entEntity:IsNPC() && entEntity.Race != "human" then // && entEntity.Race != "antlion"
- plyPlayer:SetHealth(math.Clamp(plyPlayer:Health() + intSkill, 0, plyPlayer:GetMaxHealth()))
- end
- end
- function Skill:OnSet(plyPlayer, intSkillLevel, intOldSkillLevel, load)
- lvl_effect( plyPlayer, intSkillLevel, intOldSkillLevel, load )
- end
- Register.Skill(Skill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement