Blockland Forums > Modification Help

Getting displayed brick data and other player positions client side?

Pages: << < (2/2)

Tom:

It is possiable to get the values that are networked, but you would have to loop though everything to find them,, and it may be impossible to find some sepefic objects.

Bauklotz:


--- Code: ---function findPlayerObject(%str)
{
   for(%i=ServerConnection.getCount()-1;%i>=0;%i--)
   {
      %o = ServerConnection.getObject(%i);
      if(%o.getClassName() $= Player && %o.getShapeName() $= %str)
         return %o;
   }
   return 0;
}

--- End code ---


--- Code: ---for(%i=0;%i<ServerConnection.getCount();%i++)
{
    %o=ServerConnection.getObject(%i);
    if(%o.getClassName() !$= fxDTSBrick)
        continue;
    echo(%o.getDataBlock().uiName SPC "at" SPC %o.getPosition());
}

--- End code ---

That's some stuff, but however when it comes to player positions, it's a nonono.

MegaScientifical:

Bauk, I don't think that's worked for a long time. getShapeName returns nothing clientside now... :panda:

Uristqwerty:

Player position and velocity: Yes. Eye points, eye vectors, setting anything: Does not work on players. Basically, anything that could be useful to an aimbot doesn't work. There is still enough to create a client side speedometer or a hover jet script.

Bauklotz:


--- Quote from: MegaScientifical on September 30, 2010, 01:51:05 PM ---Bauk, I don't think that's worked for a long time. getShapeName returns nothing clientside now... :panda:

--- End quote ---

Then explain how this worked perfectly well yesterday:

--- Code: ---echo(findPlayerObject("Flaw").getShapeName());
--- End code ---
Echoed Flaw.

Remember that it echoes "" if the object's .getState() is "Dead".

Pages: << < (2/2)

Go to full version