Why bother, it sucks
|
|

Solved.
Why bother, it sucks


Add it to the player appearance block client and server side should be pretty simple.


If you take sometime to research how say head icons work, you would see why I state its a simple task. Player class server and client side.

I do know how all that works, I even said that I have done that part server+client side... but the method for resizing just affects all the players, so that is the problem.
+ I did test if everything else works properly by making it draw the player's race above (like headicons), it worked fine for every player..

Without code we can't tell you where you gone wrong.

Well this is the beginning of the updatePlayer: (everything fine here)
then on client.java, where headicons and stuff are I added this:Code:public void updatePlayer(Stream stream) { stream.currentOffset = 0; anInt1702 = stream.readUnsignedByte(); headIcon = stream.readUnsignedByte(); skullIcon = stream.readUnsignedByte(); race = stream.readUnsignedByte();
I tried doing the resizing like this: (this is wrong, endlessly loops, until minimum size, and affects all the players)Code:if(player.race == 1) { player.resize(); }
^Just tried to put everything needed from the other method here..Code:void resize(){ long l = aLong1718; int j2 = 0; Model model_1 = (Model) mruNodes.insertFromCache(l); //model_1 = new Model(j2, aclass30_sub2_sub4_sub6s); model_1.method478(scalePlayerX, scalePlayerY, scalePlayerHeight); }

in your player class add
in the updateblock change your race toCode:private boolean raceUpdate; private int race;
Code:int incomingRace = stream.readUnsignedByte(); if(incomingRace != race) { //if we reciving a new race then update race = incomingRace; raceUpdate = true; }
in your get player model its above method449 for me
near the bottom find something like this
above it addCode:if(idle) return playerModel; Models model_2 = Models.lastModelUpdated;
and now it should work you will need to rename things to same as your client.Code:if(playerModel != null && raceUpdate) { raceUpdate = false; playerModel.method478(scalePlayerX, scalePlayerY, scalePlayerHeight); }
| « Can't find the right client | Plz someone help me!!! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |