public void CriticalHitJuggernaut(Player player) { //Vector position = PluginManager.Manager.Server.Map.GetRandomSpawnPoint(Role.CLASSD); Vector position = GetRandomPDExit(); int damage = (int)(Juggernaut.juggernaut_health * Juggernaut.critical_damage); player.Damage(damage, DamageType.FRAG); player.Teleport(position); Juggernaut.pluginManager.Server.Map.Broadcast(10, "<color=#228B22>Джагернауту</color> был нанесён <b>критический урон <i><color=#ff0000>в размере -" + damage + "</color></i></b> HP, и Джагернаут был <b>перенесён</b> в случайную часть комплекса!", false); Juggernaut.Debug("Juggernaut Disarmed & Teleported"); }
public void CriticalHitJuggernaut(Player player) { //Vector position = PluginManager.Manager.Server.Map.GetRandomSpawnPoint(Role.CLASSD); Vector position = GetRandomPDExit(); int damage = (int)(Juggernaut.juggernaut_health * Juggernaut.critical_damage); player.Damage(damage, DamageType.FRAG); player.Teleport(position); Juggernaut.pluginManager.Server.Map.Broadcast(10, "The <color=#228B22>Juggernaut</color> take a <b>critical hit <i><color=#ff0000> -" + damage + "</color></i></b> and has been <b>transported</b> across the facility!", false); Juggernaut.Debug("Juggernaut Disarmed & Teleported"); }