Server Help

Bot Questions - merv and pb?

Anborn - Tue Feb 11, 2003 9:51 am
Post subject: merv and pb?
can the mervbot pickup/move/place a powerball? does it have that kind of capability?
ExplodyThingy - Tue Feb 11, 2003 11:00 am
Post subject:
Try doing a /*warpto on the bot to put it over the ball, then warp it else where, if ball moves, then there ya go. Tho i suspect that it reacts the same way it does to flags, and immediately drop them unowned.
Mine GO BOOM - Tue Feb 11, 2003 11:09 am
Post subject:
You don't pickup the ball unless you send a ball-request packet, so unless Merv has a function for that, it cannot pickup the ball. Clients would see the ball disappearing because they think the bot should get it, but since the bot never sends the packet, the ball is never picked up.
SOS - Wed Feb 12, 2003 12:36 am
Post subject:
Yes, it can use the ball.
Just look in the source for the functions.
Dustpuppy - Wed Feb 12, 2003 9:04 am
Post subject:
SOS wrote:
Yes, it can use the ball.
Just look in the source for the functions.


No it can't tongue.gif
The MERV doesn't support picking up balls yet
Anonymous - Wed Feb 12, 2003 5:04 pm
Post subject:
it ll prob crash the bot cuz the server program will get pissed off and tell merv to fuck itself in a corner
Anonymous - Wed Feb 12, 2003 5:19 pm
Post subject:
take a random player and *warpto ballx ball y. then

wait till ball_moved event occurs and randomplayer.ident == ball.carrier

then *warpto the player whereever you want and

*setship (nottheirship) them. ( so they drop pball )

Then *setship (their original ship) them.

Then you could even *wapto them to their original location and hope they don't notice the lack of velocty, random direction, and couple frames of being warped around.
Dr Brain - Wed Feb 12, 2003 6:00 pm
Post subject:
LOL!
Helicon - Wed Feb 12, 2003 9:12 pm
Post subject:
i like this idea, what will we call it?...
executive hijacking???
im inspired, im going to write a plugin. "Guinea pig" - just to mess with people's minds. better yet... warp them to the positions of all the flags, then spec... warn "HEHEHE" then chacnge their ship randomly for 5 sec, msg "HEEHEEHEE" and prize them 3 points

we could even do subspace roulette... choose door number one, door number two, or................ door number three!!!!!

that sounds totally game immoral, lets tell SSC...
SOS - Thu Feb 13, 2003 1:01 am
Post subject:
It can't?? I guess Catid was too lazy... it was even in his VB bot sa_tongue.gif
Adding a couple of functions for it would not be too hard for anyone though sa_tongue.gif
Dustpuppy - Fri Feb 14, 2003 10:48 am
Post subject:
It's something to do with the new Continuum protocol:

Quote:

Catid: i think it's because i use a different type of synchronization than Ctm
Catid: Snrrrub was trying to get me to move to the Ctm sync clock, which i imagine would have fixed the bug
Catid: but i lost interest

Doggeti - Thu Jun 12, 2003 3:48 am
Post subject:
If a goal is scored i set aftergoal to true, that works.

Then in BallMove i have this
Code: Show/Hide
   case EVENT_BallMove:
      {
         PBall *ball = (PBall*)event.p[0];
         if(aftergoal)
         {
            sendPublic("Bot spwans");
            sendPrivate(me, "*setship 3");
            sendPublic("Bot gets warped");
            String s;
            s = "*warpto ";
            s += ball->x;
            s += " ";
            s += ball->y;
            sendPrivate(me, s);
            aftergoal = false;
         }
      }
      break;

The bot spawns in ship 3 as it should but something is wrong with warping the bot. It reappears somewhere on the map.
ExplodyThingy - Thu Jun 12, 2003 4:09 pm
Post subject:
You need to tell it to send certain packets. At, least, you do with flags.
Im not sure how to for the ball, though i would like to know
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group