Author |
Message |
SuperDAVE(postal) Novice

Joined: Apr 23 2003 Posts: 53 Offline
|
Posted: Fri Oct 15, 2004 10:35 pm Post subject: soccerball eating tiles |
 |
|
|
|
Is there any other tile that would eat a soccerball other than the goal. I already tested (i think) the special tiles with no luck, they all bounced off. |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Fri Oct 15, 2004 10:48 pm Post subject: |
 |
|
|
|
No. Make a bot and you can do whatever you want. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Oct 16, 2004 4:56 pm Post subject: |
 |
|
|
|
Why exactly do you want to "eat" balls? _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Oct 16, 2004 5:31 pm Post subject: |
 |
|
|
|
Probably like reset the ball if it hits a specific tile... "eat"ing it.. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Oct 17, 2004 11:43 am Post subject: |
 |
|
|
|
OK.
Basically what you'll want to do is check the position of the ball on EVENT_BallMove to see if it's in any of the "eat spots". Then send an EVENT_GrabBall to pick it up if it is. Then send an EVENT_FireBall with a random position (as relating to Prize:MinimumVirtual) and a 0 x and y velocity to reset it. |
|
Back to top |
|
 |
-Smong- Guest
Offline
|
Posted: Sun Oct 17, 2004 4:17 pm Post subject: |
 |
|
|
|
So mervbot has the ball physics in it? I've got to see this. |
|
Back to top |
|
 |
SuperDAVE(postal) Novice

Joined: Apr 23 2003 Posts: 53 Offline
|
Posted: Sun Oct 17, 2004 9:34 pm Post subject: |
 |
|
|
|
Thanks, just wanted to double check with the pros.  |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Oct 18, 2004 4:44 pm Post subject: |
 |
|
|
|
Yeah, the latest DLL event update added in ball events. |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Wed Oct 20, 2004 12:52 pm Post subject: |
 |
|
|
|
I just took a quick look and I can't find any functions that update a balls position and velocity over time. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Oct 20, 2004 6:57 pm Post subject: |
 |
|
|
|
If you don't have the events I mentioned, then your source is obselete. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Oct 21, 2004 4:23 am Post subject: |
 |
|
|
|
the changelog for build 45 tells nothing of ball physics being added.
SSBot2 (on catid's website) has ball physics. One could use the code from SSBot2 inside mervbot to get an idea of where the ball is. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Oct 21, 2004 5:42 pm Post subject: |
 |
|
|
|
Look in dllcore.h for DLL 6.6 or higher. You'll see the referenced events there. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Oct 21, 2004 6:31 pm Post subject: |
 |
|
|
|
the event exists, but there is no ball physics. So after you fire a ball the bot will show the position that you fired, and the speed you fired it at, until someone picks it up.
Ball_Move is invoked when:
1. Ball Timer occurs (from settings, default once every 4 seconds)
2. Goal is scored
3. Someone picks up the ball
4. Someone fires the ball
so unless he added phyics and didn't document it, it's not there, even though EVENT_BallMove is. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Oct 21, 2004 6:32 pm Post subject: |
 |
|
|
|
the event exists, but there is no ball physics. So after you fire a ball the bot will show the position that you fired, and the speed you fired it at, until someone picks it up.
Ball_Move is invoked when:
1. Ball Timer occurs (from settings, default once every 4 seconds)
2. Goal is scored
3. Someone picks up the ball
4. Someone fires the ball
so unless he added phyics and didn't document it, it's not there, even though EVENT_BallMove is. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
|
Back to top |
|
 |
|