Tractor Beams and abandoned ships.

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

You can't disable the players ship in the sense you mean.

Also there are always frames of reference, such as planets, suns, other ships and indeed space dust...
User avatar
tonyhippy
Dangerous
Dangerous
Posts: 90
Joined: Mon Apr 19, 2010 8:23 pm
Location: UK
Contact:

Post by tonyhippy »

Thargoid wrote:
You can't disable the players ship in the sense you mean.

Also there are always frames of reference, such as planets, suns, other ships and indeed space dust...
Well, you say that, but often enough on these boards as soon as something is delared impossible somebody finds a way to do something as near-as-dammit similar. Your ship is "disabled" every time you engage the docking computer (Unless you hit it again) so maybe there's some way to allow such an enemy to hijack that? Just an idea.

Distant frames of reference will hardly seem to move, ships near enough to matter will be too fast and probably moving too erratically to judge by and you yourself'll be to slow to see any dust. All in all probably not easy to tell who is moving toward who.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

tonyhippy wrote:
Well, you say that, but often enough on these boards as soon as something is delared impossible somebody finds a way to do something as near-as-dammit similar. Your ship is "disabled" every time you engage the docking computer (Unless you hit it again) so maybe there's some way to allow such an enemy to hijack that? Just an idea.
Yes and no (also as I seem sometimes to be the one who does the doing).

You can for example apply "performStop" to the player ship to stop it, but there would be nothing to stop the player pressing the accelerate key to speed up again. You would have to hit them with performStop every 0.25s or so to overcome that.

Similarly you could set the player ship position and/or orientation every 0.25s to overcome the flight keys. But it then gets complicated to have anything else act on the ship.

It wouldn't be too difficult to "freeze" the player ship in place for a period of time, but to actually get something to happen to it during that time (e.g. be towed by a tractor beam) is another matter entirely.

So perhaps not quite as impossible as I first thought (says he slipping into doer mode), but still not something I'd want to try and script with any great hope of it working well.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

as we can assign scripts and HUDs to a ship, why not a keyconfig? if we could do that, you could assign a keyconfig that had no keys assigned, in effect disabling the keyboard so the player couldn't do anything. the JScript could assign the proper working keyconfig later as reqd.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Just gave this a quick try (recording the player ship's orientation and position and then returning it to those settings every 0.25s).

It works, but not very well. In the time between the updates (which are as quick as Oolite can do) there is time for the ship to move, and particularly rotate, by quite a visible amount. It basically looks like one of those naff "timeloop" effects you see on TV occasionally.
User avatar
Pluisje
Dangerous
Dangerous
Posts: 93
Joined: Mon Jan 11, 2010 3:14 pm

Post by Pluisje »

So you can struggle in the grasp of the tractor beam, but you can't break free. Hmmm, I think that sounds even better than completely loosing control.
Post Reply