LiquidBounce TargetHUD may be updated in two weeks.

Avatar

By SuperSkidder_ 12 September 2019 14:08

Member · 5 comments

A good LiquidBounce Targethud
must use Liquidbounce b64
Im a student so I don't have much time to play in minecraft.
It may be updated in two weeks.

var scriptName = "TargetHUD";
var scriptVersion = 1.0;
var scriptAuthor = "SuperSkidder";

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");

var TargetHUDRender = [false,"Text",18,20]

function Skidder() {

    this.getName = function () {
        return "TargetHUD";
    };
	
    this.onAttack = function (event) {
        target = event.getTargetEntity();
    }

    this.getDescription = function () {
        return "TargetHUD";
    };

    this.getCategory = function () {
        return "Render";
    };
    this.onUpdate = function () {
	if (target != null) {
	TargetHUDRender[1]=true;
	TargetHUDRender[2]=target.getName();
	TargetHUDRender[3]=Math.floor(target.getHealth());
	TargetHUDRender[4]=Math.floor(target.getMaxHealth());
            if (target.isDead) {
                target = null
	TargetHUDRender[1]=false;
	}
            }
        }
   

    this.onRender2D = function () {
        var mcHeight = getScaledHeight();
        var mcWidth = getScaledWidth();
        if(TargetHUDRender[1] == true){
			var TargetHUDWidth = (mcWidth-mcWidth / 3.80+mcWidth / 4.7) - (mcWidth-mcWidth / 3.80);
			var TargetNoneWidth = (mcWidth-mcWidth / 3.80+mcWidth / 4.7) - TargetHUDWidth;
			var TargetHealthWidth = TargetHUDWidth / TargetHUDRender[4] * TargetHUDRender[3];
			var TargetHealthWidth2 = TargetNoneWidth + TargetHealthWidth;
			drawRect(mcWidth-mcWidth / 3.80 - 3 , mcHeight-mcHeight / 3 - 3 , mcWidth-mcWidth / 3.80 + mcWidth / 4.6 + 3 , mcHeight-mcHeight / 5.8 + 3 , 0x7E222222);
			drawRect(mcWidth-mcWidth / 3.80 , mcHeight-mcHeight / 3, mcWidth-mcWidth / 3.80 + mcWidth / 4.6 , mcHeight-mcHeight / 5.8 , 0x7E000000);
			drawRect(mcWidth-mcWidth / 3.84 , mcHeight-mcHeight / 5, mcWidth-mcWidth / 3.80 + mcWidth / 4.6 - 3 , mcHeight-mcHeight / 5.5 , 0x7E9B9B9B);
			if(TargetHUDRender[3] > 15){
				drawRect(mcWidth-mcWidth / 3.84 , mcHeight-mcHeight / 5, TargetHealthWidth2, mcHeight-mcHeight / 5.5 , 0x7E00CD00);
			}else{
				if(TargetHUDRender[3] > 10){
					drawRect(mcWidth-mcWidth / 3.84 , mcHeight-mcHeight / 5, TargetHealthWidth2, mcHeight-mcHeight / 5.5 , 0x7EFFAA02);
				}else{
					drawRect(mcWidth-mcWidth / 3.84 , mcHeight-mcHeight / 5, TargetHealthWidth2, mcHeight-mcHeight / 5.5 , 0x7EFE0302);
				}
			}
			mc.fontRendererObj.drawStringWithShadow('TargetHUD', mcWidth-mcWidth / 5,  mcHeight-mcHeight / 3.1, 0x89D5FF);
			mc.fontRendererObj.drawStringWithShadow('Target:' + TargetHUDRender[2], mcWidth-mcWidth / 4,  mcHeight - mcHeight / 3.5, 0xffffff);
			mc.fontRendererObj.drawStringWithShadow(TargetHUDRender[3] + '/'+TargetHUDRender[4], mcWidth-mcWidth / 6.0,  mcHeight-mcHeight / 5.06, 0xFFFFdd);
			mc.fontRendererObj.drawStringWithShadow('Health:'+ (TargetHUDRender[3] / TargetHUDRender[4])*100 + '%', mcWidth-mcWidth / 4.0,  mcHeight-mcHeight / 4.0, 0xffffff);
        }

    }


}




var SkidderModule = new Skidder();
var skidderClient;

function onLoad() {

};

function onEnable() {
    skidderClient = moduleManager.registerModule(SkidderModule);
};

function onDisable() {
    moduleManager.unregisterModule(skidderClient);
};

Last edited by SuperSkidder_ (12 October 2019 08:07)


Im a bad guy

Avatar

By SuperSkidder_ 12 September 2019 14:17

Member · 5 comments

Im very happy


Im a bad guy

Avatar

By SuperSkidder_ 12 September 2019 14:19

Member · 5 comments

Im very happy


Im a bad guy

Avatar

By soulplexis 12 September 2019 16:26

Donator · 658 comments

asians make better scripts


由我的世界由我既世界驅動, 使你自己嘅世界從未好似而家噉!

Avatar

By ksenomorf 16 September 2019 13:07

Member · 34 comments

since when people actually start to think that skidding is cool and everyone should do it?


ричи

Avatar

By Sms_Gamer_3808 16 September 2019 14:07

Member · 678 comments
ksenomorf wrote

since when people actually start to think that skidding is cool and everyone should do it?


I don't exist

Avatar

By ButterChiCken 18 September 2019 03:48

Member · 16 comments

n1ce targetHUD


I am doing my own thing.

Avatar

By Coccocoa 5 October 2019 20:18

Member · 170 comments

Why it wont work?


Eating kids

Avatar

By Virus 5 October 2019 20:42

Member · 334 comments
Coccocoa wrote

Why it wont work?

make sure you have the libs

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");
Avatar

By Coccocoa 5 October 2019 21:23

Member · 170 comments
Virus wrote
Coccocoa wrote

Why it wont work?

make sure you have the libs

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");

thanks


Eating kids

Avatar

By Coccocoa 5 October 2019 21:47

Member · 170 comments
Virus wrote
Coccocoa wrote

Why it wont work?

make sure you have the libs

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");

where I can find it?


Eating kids

Avatar

By Senk Ju 5 October 2019 21:50

Administrator · 745 comments
Coccocoa wrote
Virus wrote
Coccocoa wrote

Why it wont work?

make sure you have the libs

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");

where I can find it?

https://github.com/CCBlueX/LiquidBounce … master/lib


CCBlueX Co-Owner

Avatar

By Coccocoa 5 October 2019 22:08

Member · 170 comments
Senk Ju wrote
Coccocoa wrote
Virus wrote

make sure you have the libs

script.import("lib/glFunctions.js");
script.import("lib/systemFunctions.js");

where I can find it?

https://github.com/CCBlueX/LiquidBounce … master/lib

thanks


Eating kids

Avatar

By soulplexis 7 November 2019 20:47

Donator · 658 comments

I tried to added hit count with criticals checking , here is the code:

TargetHUD With criticals & Combo/hit count

Last edited by soulplexis (7 November 2019 20:49)


由我的世界由我既世界驅動, 使你自己嘅世界從未好似而家噉!