| Author | Message | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: 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. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SOS Server Help Squatter
 
 
 Joined: Dec 02 2002
 Posts: 329
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon Jan 27, 2003 8:17 am     Post subject: |  |   |  |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: 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.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SOS Server Help Squatter
 
 
 Joined: Dec 02 2002
 Posts: 329
 Offline
 
 | 
			
			  | 
				
					|  Posted: Wed Jan 29, 2003 11:35 pm     Post subject: |  |   |  |  
				| 
 |  
				| ball->carrier is the player's ID |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu Jan 30, 2003 8:20 pm     Post subject: |  |   |  |  
				| 
 |  
				| and how would I get a player object from this ID? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu Jan 30, 2003 8:58 pm     Post subject: |  |   |  |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: 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?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SOS Server Help Squatter
 
 
 Joined: Dec 02 2002
 Posts: 329
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Feb 01, 2003 4:10 am     Post subject: |  |   |  |  
				| 
 |  
				| it's called... yup... playerlist |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Feb 01, 2003 1:18 pm     Post subject: |  |   |  |  
				| 
 |  
				| awesome thanks. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: 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? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SOS Server Help Squatter
 
 
 Joined: Dec 02 2002
 Posts: 329
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sun Feb 02, 2003 4:27 am     Post subject: |  |   |  |  
				| 
 |  
				| Pixels per 10 seconds |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| VampZ Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon Feb 03, 2003 12:02 am     Post subject: |  |   |  |  
				| 
 |  
				| again, thanks SOS! |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Anborn Newbie
 
 
 Joined: Dec 02 2002
 Posts: 13
 Offline
 
 | 
			
			  | 
				
					|  Posted: Tue Feb 04, 2003 9:42 am     Post subject: |  |   |  |  
				| 
 |  
				| Vampz - drop me a line sometime  hehehehe. _________________
 Anborn
 -- SSHZ
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |