Author |
Message |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Tue Sep 23, 2008 6:15 pm Post subject: Spawn Callback |
 |
|
|
|
Hi. Is there a callback that detects when a ship respawns? Trying to make a python module so that it prizes people when they spawn. I'm sort of new to ASSS and I don't really have a reference for callbacks.
If there is not a callback, could someone help me on a piece of python code that will do this? I tried looking at the Hyperspace Core, but I cannot understand any of it
Thanks.  |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Sep 23, 2008 6:26 pm Post subject: |
 |
|
|
|
tag them when they die, and wait for the next move packet
atleast that's how I do it on Merv, I assume the packets received is similar _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Sep 23, 2008 7:58 pm Post subject: |
 |
|
|
|
Yeah, I do a similar thing in HSCore. I mark the time when they die, then wait for a position packet after the respawn time. That way you don't get false positives for a delayed packet right as they die. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Wed Sep 24, 2008 4:38 pm Post subject: |
 |
|
|
|
Kay, I am kind of new to ASSS, so how would I do that in python? |
|
Back to top |
|
 |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Fri Sep 26, 2008 9:33 pm Post subject: |
 |
|
|
|
Er, anyone? |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Sep 27, 2008 10:23 am Post subject: |
 |
|
|
|
Not many use python these days. Smong was the expert, but I haven't seen him around in many moons. |
|
Back to top |
|
 |
Initrd.gz Seasoned Helper
Joined: Sep 18 2008 Posts: 134 Location: Over there ---> Offline
|
Posted: Sat Sep 27, 2008 12:23 pm Post subject: |
 |
|
|
|
Darn.
Ah, might as well try C++
I know a little bit, but I can't really read it
Anyway, could someone help me with something simple? |
|
Back to top |
|
 |
|