Space compass
Moderators: winston, another_commander
- Commander Gonzo
- Poor
- Posts: 5
- Joined: Fri Jan 14, 2005 7:50 pm
- Location: Santa Fe, NM
- Contact:
- cmdr drayton
- Above Average
- Posts: 27
- Joined: Sun Oct 10, 2004 1:52 am
- Location: Lancaster, UK
- Contact:
It really shouldn't be all that hard. The drone itself would work just like any other AI ship in the game. I think it would have three states - follow, return and wait.
In the follow state it could fly straight at a position directly above the target ship at a particular distance. By above I mean with respect to the orientation of the target ship. My reasoning being that ships don't have lasers that point straight up, so it would be a bloody good hiding spot for a small fast drone.
In the return state it would fly straight towards any point with a small sphere surrounding its mother ship, and upon entering that sphere enter the wait state.
In the wait state, it lies motionless until it gets scooped up.
The fun part about that is, if you told your drone to return and it came home and started waiting for you to scoop it, someone else could swoop in and scoop up your drone. My thinking is that anyone who scooped a drone could reprogram it and load into their own missile pylon.
To keep them fair, you should have to scoop them before you can send them off again after a new target. Additionally, they should only be able to follow or return for, say 5-10 minutes, at which time they enter into wait state automatically. When you scoop them you recharge them ready for another shot.
In the follow state it could fly straight at a position directly above the target ship at a particular distance. By above I mean with respect to the orientation of the target ship. My reasoning being that ships don't have lasers that point straight up, so it would be a bloody good hiding spot for a small fast drone.
In the return state it would fly straight towards any point with a small sphere surrounding its mother ship, and upon entering that sphere enter the wait state.
In the wait state, it lies motionless until it gets scooped up.
The fun part about that is, if you told your drone to return and it came home and started waiting for you to scoop it, someone else could swoop in and scoop up your drone. My thinking is that anyone who scooped a drone could reprogram it and load into their own missile pylon.
To keep them fair, you should have to scoop them before you can send them off again after a new target. Additionally, they should only be able to follow or return for, say 5-10 minutes, at which time they enter into wait state automatically. When you scoop them you recharge them ready for another shot.
righto.
just that cargo items that exist outside the set list of cargo (the classic stockmarket), and would need to be specifically dispatched as cargo, to in turn become a space entity with roles and AI, could be more than a small problem. seems so unprecedented on a few levels.
I'm no programmer, and frequently in awe over how Giles can shape and bend the laws that make the Oolite logic stucture. only my intuitive take from being a follower of the developements for a while..
just that cargo items that exist outside the set list of cargo (the classic stockmarket), and would need to be specifically dispatched as cargo, to in turn become a space entity with roles and AI, could be more than a small problem. seems so unprecedented on a few levels.
I'm no programmer, and frequently in awe over how Giles can shape and bend the laws that make the Oolite logic stucture. only my intuitive take from being a follower of the developements for a while..
- Dr. Nil
- ---- E L I T E ----
- Posts: 983
- Joined: Thu Sep 28, 2006 5:11 pm
- Location: Nearest Hoopy Casino
- Contact:
I don't think so.CaptKev wrote:Not sure if this is the right place to ask this question, but here goes. Is it possible to create a cargo item that can be scooped up, by your ship only?
I like the ettBeaconLauncher OXP, but other ships keep scooping up the beacon!
I think that they would have to be made un-rescoopable for the player too, to make it impossible for NPCs to scoop it (and to make them loose interest in it).
300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
Thanks for the reply Dr. Nil, how about a spawn of the cargo item, just scooped?
If the NPC ship scooped it but didn't get any cargo would it just fly away? If so maybe I could use CARGO_SCRIPTED_ITEM to not award anything to the NPC ship.
If the NPC ship scooped it but didn't get any cargo would it just fly away? If so maybe I could use CARGO_SCRIPTED_ITEM to not award anything to the NPC ship.
Code: Select all
if player
award beacon
else
re-create cargo item
award no cargo
(maybe subtract credits to get the NPC ship to go away!)
- Dr. Nil
- ---- E L I T E ----
- Posts: 983
- Joined: Thu Sep 28, 2006 5:11 pm
- Location: Nearest Hoopy Casino
- Contact:
One problem is, that the beacon is a piece of cargo. Many different ships haave a part of their AI which makes them scan for cargo and scoop it. If it's something you can scoop then they can scoop it too. If they pass by it while looking for things that can be scooped, they will go for it, not caring about what it does to them, I believe.
It's a good idea that you come up with on how to fix it. Unfortunately I don't think that it will work as it is now. Afaik there's no way to control AIs with script actions atm.
It's a good idea that you come up with on how to fix it. Unfortunately I don't think that it will work as it is now. Afaik there's no way to control AIs with script actions atm.
300 billboards in Your Ad Here!
Astromines and more in Commies.
AVAILABLE HERE along with other Oolite eXpansion Packs.
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Perhaps giving the beacon SCAN_CLASS rock or SCAN_CLASS missile would stop it? It woudn't look too bad for the beacon to come up cyan on the scanner, since is was pylon launched.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.