Author Topic: Getting displayed brick data and other player positions client side?  (Read 803 times)

Is it possible to get data on the bricks being shown, or the positions, looks, item being held, of other players on client side?


I wouldn't think so, since objects like that are serversided.

I wouldn't think so, since objects like that are serversided.
But they are sent to, and displayed, client side.

But they are sent to, and displayed, client side.

Positions are given to the client, but variables on it are held serverside. The client doesn't need all of them, nor do all clients have add-ons to even use them.

I'm still curious to the answer...

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.

Code: [Select]
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;
}

Code: [Select]
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());
}

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

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

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.

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

Then explain how this worked perfectly well yesterday:
Code: [Select]
echo(findPlayerObject("Flaw").getShapeName());Echoed Flaw.

Remember that it echoes "" if the object's .getState() is "Dead".
« Last Edit: October 01, 2010, 02:15:09 AM by Bauklotz »