4ªU>nutscripts/vscriptsdirector_base_addonNÐÒ²ÿÚ ÿÿMsg("Killer Healer Mod Is Applied!\n"); KillerHealer <- { HealerTable = { SpecialsHealer = 5, TankHealer = 20, WitchHealer = 10, } function OnGameEvent_player_death(event) { local attacker = GetPlayerFromUserID(event.attacker); local victim = GetPlayerFromUserID(event.userid); if (attacker == null || !attacker.IsSurvivor()) return; if (victim == null || !victim.IsValid()) return; if (victim.IsSurvivor()) return; local classname = victim.GetClassname(); if (classname == "Witch") return; local classname = victim.GetClassname(); if (classname == "Tank") return; local Healer = 0; local zType = victim.GetZombieType(); if (zType < 1 || zType > 8) return; local victimName = victim.GetPlayerName(); if (victimName == null || victimName == "") { local specialNames = { [1] = "Smoker", [2] = "Boomer", [3] = "Hunter", [4] = "Spitter", [5] = "Jockey", [6] = "Charger", [7] = "Witch", [8] = "Tank" }; victimName = specialNames[zType]; } if (victimName == "Witch") return; local Healer = 0; if (victimName == "Smoker" || victimName == "Spitter" || victimName == "Hunter" || victimName == "Jockey" || victimName == "Charger" || victimName == "Boomer") { Healer = HealerTable.SpecialsHealer; } if (Healer > 0) { local currentHealth = attacker.GetHealth(); attacker.SetHealth(currentHealth + Healer); } } function OnGameEvent_witch_killed(event) { local attacker = GetPlayerFromUserID(event.userid); if (attacker == null || !attacker.IsSurvivor()) return; local Healer = HealerTable.WitchHealer; local currentHealth = attacker.GetHealth(); attacker.SetHealth(currentHealth + Healer); } function OnGameEvent_tank_killed(event) { local attacker = GetPlayerFromUserID(event.attacker); if (attacker == null || !attacker.IsSurvivor()) return; local Healer = HealerTable.TankHealer; local currentHealth = attacker.GetHealth(); attacker.SetHealth(currentHealth + Healer); } } __CollectEventCallbacks(KillerHealer, "OnGameEvent_", "GameEventCallbacks", RegisterScriptGameEventListener);