Author Topic: Moving sideways??  (Read 1870 times)

0 Members and 1 Guest are viewing this topic.

Offline x3110

  • 26
  • New at the community!!!
I was wondering if you could make an AI ships preference to go forwards and to left/right(slide) equal or you know,make changes to the way a PARTICULAR ship moves (forward & sideways)??
Please note that i am talking about a single ship in 1 mission!
Is it possible??
Hate the ads at Mediafire.
Skip most of them by adding "#2" at the end of link!

 

Offline Sushi

  • Art Critic
  • 211
Yes, definitely possible. Basically, just create/edit a ship in ships.tbl capable of sideways motion and give it a custom AI class which takes advantage of sliding. Specifically, you'll want to set the $Circle Strafe Percent attribute on your custom AI class. If you're using a recent trunk build, you could also use $Random Sidethrust Percent, although that's a feature still sort of under development.

See the wiki for details on how to do all of that. :)

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Fury's AI has defined sliding, you'd only have to add sideways speed to a ship.
Also, retail ships are sometimes strafing, go fight some Shivan Scorpions in FSPort and you will notice them sliding in plenty of situations.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Just a thought, but he may have been asking if its possible to tell a specific ship to move sideways, as part of a mission sequence, like with events.  If that is the question, then the answer is yes... sorta.  You can't do something like tell it to follow waypoints by moving in an non-forward direction, but there is set-object-speed-y/x/z which can allow you to nudge an object in any direction, except that the directions are in relation to the mission environment, not in relation to the ship's own facings.  Also, I don't know if this ever got resolved, but there was an issue where if you tried to move a ship in a direction that exactly corresponded to its own forward direction, it wouldn't do anything.  That was a long time ago, but I do recall the bug.
The Trivial Psychic Strikes Again!

 

Offline Sushi

  • Art Critic
  • 211
Just a thought, but he may have been asking if its possible to tell a specific ship to move sideways, as part of a mission sequence, like with events.  If that is the question, then the answer is yes... sorta.  You can't do something like tell it to follow waypoints by moving in an non-forward direction, but there is set-object-speed-y/x/z which can allow you to nudge an object in any direction, except that the directions are in relation to the mission environment, not in relation to the ship's own facings. 

IIRC, you actually can choose to have it be ship-relative or world-relative.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
I guess I HAVE been away from the community for a while. :nervous:
The Trivial Psychic Strikes Again!

 

Offline PeterX

  • 27
    • Peter
The SF´s Dragon,Scorpion and Mara do these sliding permanently if you´ve a flyby to them by 500 clicks or closer.
You may look for these entries and compaire with your custom ship entry.
Peter
If i can´t model any ship then i use "flying trains" :-)

 

Offline x3110

  • 26
  • New at the community!!!
Peter,I think there is a miscommunication,When you said 500 clicks you meant 500000 meters??
Also,
Sorry for my poor English but i couldn't quite understand your post :blah:.
Hate the ads at Mediafire.
Skip most of them by adding "#2" at the end of link!