Author Topic: player controled docking/passive rearm vessels  (Read 1719 times)

0 Members and 1 Guest are viewing this topic.

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
player controled docking/passive rearm vessels
would it be possible to implement player controlled docking? that allows the player to manually line up with a dock point and connect to another ship.  you couls say fly a mission where you have to land marines or whatever on a capship. also it would be cool to be able to rearm from a capship instead of a rearm vessel so that you actually have to go to that vessel and dock with it in order to get a rearm/repair. would it also be possible to use the target info box to act as a dock cam that shows the ship to be docked with in relation to the normal of the dockpoint on the ship? it sounds crazy but i think it would be kinda fun
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
player controled docking/passive rearm vessels
When player-use-ai is implemented, you could probably do this via SEXPs.
-C

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
player controled docking/passive rearm vessels
well that would kinda work, but i was more thinking of having the chalenge of docking and a cool little dock gauge like you see in scifi movies. but i guess i ask too much.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
player controled docking/passive rearm vessels
All you have to do is
Code: [Select]
when
  key-pressed
   
  player-use-ai
  add-goal
   
    ai-dock
     
and
Code: [Select]
when
  has-docked
   
   
    1
    0
  player-no-use-ai
except for the fact that player ai docking doesn't work 100% correctly yet.  Freespace doesn't have the fine-tuned thruster control you'd need for what you're asking for.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
player controled docking/passive rearm vessels
i was thingking about havint to manuver to a close proximity and lign up to within a certain tolderance then youd automatically connect. having the ai do it seems abit easy.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
player controled docking/passive rearm vessels
You could use the is-facing training SEXP. (Not sure about the name)

Edit: There might also be an get-distance-between-ships SEXP you could use too. At the very least you could use get-object-coords and find the distance from the two vectors.
-C

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
player controled docking/passive rearm vessels
The problem is that most docking paths cause the docker ship to move away from the dockee if it's too close.  So that invalidates your whole premise.

We could hack the docking routines to make the ships immediately jump to a docked position, like magnets snapping together, but that would feel jarring and look very weird.

  

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
player controled docking/passive rearm vessels
how about an is- dock-aligned sexp

you could put in a minimum distance, and angle threshold you must achieve. the dock points would need to be < distance and the normals would have to be 180 degrees apart - angle threshold. it will return true if you get your dock point within the distance and angle specified in the sexp. so it would take some skill to align the dock. it would be like get close enough and the docking clamps could reach out and grab the ship. but if you hand the ship over to ai then youd have to come up with a way to make the ai forgo the path and just dock to the point. then you would just need a dock camera view and maybe a gauge of sorts.

for the capship rearming youd need a way to make the capship do the rearm. fred flag perhaps?
« Last Edit: July 10, 2004, 01:50:55 am by 766 »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN