Bot Questions - Help with the Pball Anonymous - Mon Jan 27, 2003 1:18 am Post subject: Help with the Pball
How can one tell if which player if any is carring the powerball? Some source with the powerball would be helpful.
SOS - Mon Jan 27, 2003 8:17 am Post subject:
MERVBot?
EVENT_BallMove says who is carrying it
Anonymous - Wed Jan 29, 2003 1:17 pm Post subject:
case EVENT_BallMove:
{
PBall *ball = (PBall*)event.p[0];
}
This gives me the PBall object. I need a Player object.
SOS - Wed Jan 29, 2003 11:35 pm Post subject:
ball->carrier is the player's ID
Anonymous - Thu Jan 30, 2003 8:20 pm Post subject:
and how would I get a player object from this ID?
Dr Brain - Thu Jan 30, 2003 8:58 pm Post subject:
Iterate through the player list and compare.
Anonymous - Fri Jan 31, 2003 2:33 pm Post subject:
one more:
what is this "player list" called? Do I have to make it myself? is the _linkedlist <PlayerTag> taglist?
SOS - Sat Feb 01, 2003 4:10 am Post subject:
it's called... yup... playerlist
Anonymous - Sat Feb 01, 2003 1:18 pm Post subject:
awesome thanks.
Anonymous - Sat Feb 01, 2003 6:58 pm Post subject:
on a related, topic does anyone know what the unit is for in the velocities on mervBot??? a typical topspeed for a ship is around 5000 and a slow moving ship is like 200. to get it type player->vel.x . The pos.x and pos.y is in pixels if that helps?
SOS - Sun Feb 02, 2003 4:27 am Post subject:
Pixels per 10 seconds
Anonymous - Mon Feb 03, 2003 12:02 am Post subject:
again, thanks SOS!
Anborn - Tue Feb 04, 2003 9:42 am Post subject:
Vampz - drop me a line sometime hehehehe.