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
Spawn Callback

 
Post new topic   Reply to topic Printable version
 View previous topic  StartInSpec Post :: Post Goal callback  View next topic  
Author Message
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Tue Sep 23, 2008 6:15 pm    Post subject: Spawn Callback Reply to topic Reply with quote

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 icon_razz.gif

Thanks. icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Tue Sep 23, 2008 6:26 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Tue Sep 23, 2008 7:58 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Wed Sep 24, 2008 4:38 pm    Post subject: Reply to topic Reply with quote

Kay, I am kind of new to ASSS, so how would I do that in python?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Fri Sep 26, 2008 9:33 pm    Post subject: Reply to topic Reply with quote

Er, anyone?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sat Sep 27, 2008 10:23 am    Post subject: Reply to topic Reply with quote

Not many use python these days. Smong was the expert, but I haven't seen him around in many moons.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Initrd.gz
Seasoned Helper


Joined: Sep 18 2008
Posts: 134
Location: Over there --->
Offline

PostPosted: Sat Sep 27, 2008 12:23 pm    Post subject: Reply to topic Reply with quote

Darn.

Ah, might as well try C++
I know a little bit, but I can't really read it tongue.gif

Anyway, could someone help me with something simple?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS 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: 30 page(s) served in previous 5 minutes.

phpBB Created this page in 0.440082 seconds : 32 queries executed (94.6%): GZIP compression disabled