Results 1 to 9 of 9
  1. #1
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry

    Fastheal, New faceEntity for 1.6.1

     

    It's not super fast, but it's still fast enough to be significantly helpful.
    Code:
     @override
    	public void onUpdate()
    	{
    		if(shouldHeal())
    		{
    			mc.thePlayer.sendQueue.addToSendQueue(new Packet15Place(-1, -1, -1, 255, mc.thePlayer.inventory.getCurrentItem(), 0, 0, 0));
    			for(int i=0;i<30;i++)
    			{
    			    try
    			    {
    		    		mc.thePlayer.sendQueue.addToSendQueue(new Packet12PlayerLook(mc.thePlayer****tationYaw,mc.thePlayer****tationPitch, mc.thePlayer.onGround));
    			    }catch(Exception ex){}
    			}
    		}
    	}
    
    	private boolean shouldHeal() 
    	{
    		if(!mc.thePlayer.capabilities.isCreativeMode && !mc.thePlayer.isDead && !mc.thePlayer.isBurning() && mc.thePlayer.getFoodStats().getFoodLevel() >= 16)
    		{
    			return true;
    		}
    		return false;
    	}
    Q: How do/call I use this?
    A: Call it whenever your player entity updates.


     

    Notice that this went missing in 1.6.1 MCP? Well here's a modified version of it for a quick fix.
    Code:
    public void faceEntity(Entity e)
        {
    		double x = e.posX - mc.thePlayer.posX;
    		double y = e.posY - mc.thePlayer.posY;
    		double z = e.posZ - mc.thePlayer.posZ;
    		double d1 = (mc.thePlayer.posY + (double)mc.thePlayer.getEyeHeight())-(e.posY+(double)e.getEyeHeight());
    		double d3 = MathHelper.sqrt_double(x*x+z*z);
    		float f = (float)((Math.atan2(z, x)*180D)/Math.PI)-90F;
    		float f1= (float)(-((Math.atan2(d1, d3)*180D)/Math.PI));
    		mc.thePlayer.setPositionAndRotation(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, f, -f1);
        }
    Q: How do I call this / when?
    A: faceEntity(e); You call this is when you have a for loop of entities and your instance of Entity is named e. (you can change the name of course)

  2. #2
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    Why not print out the exception in the console or send a chat message if somethings wrong... just imagine a client saying... "[Obsidian]: Dude... I fucked up somewhere.. my bad..".. otherwise.. Nice tutorial to skids ^-^ and isnt the faceEntity.. the same code from the old versions of mc? Im really sure Ive seen it somewhere.. or imm just bugging out at middle of the night.. :I But im sure ive seen.. that aimbots use the same method.. :/ it might just be me.. .-.

  3. #3
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by Wampwire View Post
    Why not print out the exception in the console or send a chat message if somethings wrong... just imagine a client saying... "[Obsidian]: Dude... I fucked up somewhere.. my bad..".. otherwise..
    But that wouldn't display to the user and is pointless to me while coding.

    Quote Originally Posted by Wampwire View Post
    Nice tutorial to skids ^-^ and isnt the faceEntity.. the same code from the old versions of mc? Im really sure Ive seen it somewhere..
    This a slient aimbot turned locked. This is because "faceEntity" (which plenty of people use) in EntityClientPlayerMP no longer exists in 1.6.1

  4. #4
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    havent seen 1.6.1 yet.. and I was just bored.. I just add the above for errors and stuff.. Find it more usefull.. But hey.. everyone has their own styles..
    well.. hopefully youll find something more ^_^.. damn i should sleep :/

  5. #5
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by Wampwire View Post
    havent seen 1.6.1 yet.. and I was just bored.. I just add the above for errors and stuff.. Find it more usefull.. But hey.. everyone has their own styles..
    well.. hopefully youll find something more ^_^.. damn i should sleep :/
    [img]https://wzmafi*****m/wp-content/uploads/2012/12/391295_407682842612959_134007198_n.jpg[/img]

  6. The Following User Says Thank You to LordPankake For This Useful Post:

    _JAD3N (07-20-2013)

  7. #6
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    ITS 01:26AM! .. Im dying for a cigarette but am in bed and cant be bothered to go outside -.- Its not like.. its 7pm or something.. and its saturday today too...

    OP..sorta.. Your obsidian client had nc+ feature i think.... Where the player couldve toggled it.. I had no idea on what it does... or if its not yours then some random client :/ any ideas on what it does or how would it be codded? .-.

    Edit: Link to jpg doesnt seem to show up ;I
    Last edited by Wampwire; 07-05-2013 at 06:25 PM.

  8. #7
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by Wampwire View Post
    ITS 01:26AM! .. Im dying for a cigarette but am in bed and cant be bothered to go outside -.-
    *cough* Lung cancer *cough*
    Quote Originally Posted by Wampwire View Post
    OP..sorta.. Your obsidian client had nc+ feature i think.... Where the player couldve toggled it.. I had no idea on what it does...
    All this hack does is make other hacks more friendly towards NC+. For example, if it is enabled features known to be caught by NC+ are disabled. I didn't bother to use it much in my current release though.

  9. #8
    Wampwire's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    United Kingdom of Tea
    Posts
    227
    Reputation
    10
    Thanks
    22
    My Mood
    Devilish
    Quote Originally Posted by LordPankake View Post
    *cough* Lung cancer *cough*

    All this hack does is make other hacks more friendly towards NC+. For example, if it is enabled features known to be caught by NC+ are disabled. I didn't bother to use it much in my current release though.

    Quote Originally Posted by LordPankake View Post
    *cough* Lung cancer *cough*
    Who said that?? o.e

    Quote Originally Posted by LordPankake View Post
    All this hack does is make other hacks more friendly towards NC+. For example, if it is enabled features known to be caught by NC+ are disabled. I didn't bother to use it much in my current release though.
    I see... so.. pretty much.. it would be an if statement? with bunch of variables underneath... So.. if Nc+ is enabled.. allow these and them to be enabled.. if not.. then only allow them..
    OR.. it disables features like altering the speed of the player too fast and position.. etc

    Well.. the second one looks more.. usefull.. :I I have no idea.. just guessing..

  10. #9
    Gοku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    MPGH.net
    Posts
    1,527
    Reputation
    206
    Thanks
    1,043
    My Mood
    Cheerful
    Thx For The FaceEntity

     







    500 Posts ✓
    750 Posts ✓
    1,337 Posts ✓
    2,000 Posts ×
    3,000 Posts ×

    Ex VIP
    Ex Resource Team Member
    Ex Wiki Editor

Similar Threads

  1. I got a new motorbike for christmas...
    By SATANICAT in forum General
    Replies: 12
    Last Post: 02-23-2007, 02:50 PM
  2. Dave's new Cash for H4X policy.
    By SadisticGrin in forum General
    Replies: 9
    Last Post: 01-15-2007, 10:22 PM
  3. new sig for a new member.. me!
    By apitite.for.distruction in forum Art & Graphic Design
    Replies: 22
    Last Post: 10-28-2006, 08:24 AM
  4. New Skins for Warrock Korean :D
    By Kyojiro in forum WarRock - International Hacks
    Replies: 6
    Last Post: 04-29-2006, 08:38 PM
  5. anyone have the new runnable for 06-02-06!!!!!!!!
    By AssasinZ in forum Gunz General
    Replies: 11
    Last Post: 02-07-2006, 07:56 PM