Author |
Message |
Brad666 Newbie
Joined: Mar 16 2004 Posts: 7 Offline
|
Posted: Wed Mar 31, 2004 12:43 am Post subject: Help With Flags |
 |
|
|
|
Ok, so i need to make it so only ship one can collect turf flags, how should i go about doing that? |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Wed Mar 31, 2004 4:43 am Post subject: |
 |
|
|
|
You could enlarge the radius of all ships except warbird, then put the turf flag in part of the map that has a narrow entrance.
In flags.h you can see there is a flag pickup callback. You can try using the MoveFlag() interface to change the owner back to the old freq. Take in mind though that if an invalid ship 'sits' on the flag, it will keep changing ownership really quickly (increasing bandwidth/lag). |
|
Back to top |
|
 |
Brad666 Newbie
Joined: Mar 16 2004 Posts: 7 Offline
|
Posted: Wed Mar 31, 2004 3:35 pm Post subject: |
 |
|
|
|
Catid told me the best thing would be to get a module for it, but i don't know any good places to get/learn a bout modules, any help? |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Apr 01, 2004 8:00 am Post subject: |
 |
|
|
|
Ideally you need to know C/C++, take a look at the asss source to see how the modules are laid out.
There is an experimental Python module loader, but I haven't found an example yet so I don't know what the entry point is or anything. |
|
Back to top |
|
 |
|