Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Help with the Pball

 
Post new topic   Reply to topic Printable version
 View previous topic  Some questions about mervbot Post :: Post Own variables in MERVBot DLL  View next topic  
Author Message
VampZ
Guest


Offline

PostPosted: Mon Jan 27, 2003 1:18 am    Post subject: Help with the Pball Reply to topic Reply with quote

How can one tell if which player if any is carring the powerball? Some source with the powerball would be helpful.
Back to top
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Mon Jan 27, 2003 8:17 am    Post subject: Reply to topic Reply with quote

MERVBot?

EVENT_BallMove says who is carrying it
_________________
3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku"
Back to top
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Wed Jan 29, 2003 1:17 pm    Post subject: Reply to topic Reply with quote

case EVENT_BallMove:
{
PBall *ball = (PBall*)event.p[0];
}

This gives me the PBall object. I need a Player object.
Back to top
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Wed Jan 29, 2003 11:35 pm    Post subject: Reply to topic Reply with quote

ball->carrier is the player's ID
Back to top
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Thu Jan 30, 2003 8:20 pm    Post subject: Reply to topic Reply with quote

and how would I get a player object from this ID?
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Jan 30, 2003 8:58 pm    Post subject: Reply to topic Reply with quote

Iterate through the player list and compare.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
VampZ
Guest


Offline

PostPosted: Fri Jan 31, 2003 2:33 pm    Post subject: Reply to topic Reply with quote

one more:

what is this "player list" called? Do I have to make it myself? is the _linkedlist <PlayerTag> taglist?
Back to top
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Sat Feb 01, 2003 4:10 am    Post subject: Reply to topic Reply with quote

it's called... yup... playerlist
Back to top
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Sat Feb 01, 2003 1:18 pm    Post subject: Reply to topic Reply with quote

awesome thanks.
Back to top
VampZ
Guest


Offline

PostPosted: Sat Feb 01, 2003 6:58 pm    Post subject: Reply to topic Reply with quote

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?
Back to top
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Sun Feb 02, 2003 4:27 am    Post subject: Reply to topic Reply with quote

Pixels per 10 seconds
Back to top
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Mon Feb 03, 2003 12:02 am    Post subject: Reply to topic Reply with quote

again, thanks SOS!
Back to top
Anborn
Newbie


Joined: Dec 02 2002
Posts: 13
Offline

PostPosted: Tue Feb 04, 2003 9:42 am    Post subject: Reply to topic Reply with quote

Vampz - drop me a line sometime icon_smile.gif hehehehe.
_________________
Anborn
-- SSHZ
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 656 page(s) served in previous 5 minutes.

phpBB Created this page in 0.581999 seconds : 38 queries executed (83.9%): GZIP compression disabled