Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: x3110 on May 26, 2010, 12:18:07 pm

Title: Moving sideways??
Post by: x3110 on May 26, 2010, 12:18:07 pm
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??
Title: Re: Moving sideways??
Post by: Sushi on May 26, 2010, 01:29:47 pm
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. :)
Title: Re: Moving sideways??
Post by: Dragon on May 26, 2010, 04:55:05 pm
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.
Title: Re: Moving sideways??
Post by: Trivial Psychic on May 26, 2010, 06:42:46 pm
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.
Title: Re: Moving sideways??
Post by: Sushi on May 26, 2010, 10:35:27 pm
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.
Title: Re: Moving sideways??
Post by: Trivial Psychic on May 26, 2010, 11:09:56 pm
I guess I HAVE been away from the community for a while. :nervous:
Title: Re: Moving sideways??
Post by: PeterX on May 28, 2010, 02:15:52 am
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
Title: Re: Moving sideways??
Post by: x3110 on May 28, 2010, 12:18:06 pm
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:.
Title: Re: Moving sideways??
Post by: Dragon on May 28, 2010, 03:01:57 pm
He meant 500 meters.