Page 1 of 1

Help editing ship

Posted: Sat Sep 22, 2012 7:21 pm
by SSk77
Please, how can I remove weapon animation and change weapon location ?

Re: Help editing ship

Posted: Sat Sep 22, 2012 7:31 pm
by substandardgaussian
Here's the topic on how to make custom weaponry:

viewtopic.php?f=4&t=2441

This tells you where to find and modify weapons, including their animations.

You can find the weapon mount locations in the .xml files for each individual kind of ship in your unpacked .dat file's data/ directory.

eg. In fed_cruiser.xml

Code: Select all

<weaponMounts>
   <mount x="268" y="32" rotate="true" mirror="true" gib="2" slide="up"/>
   <mount x="268" y="368" rotate="true" mirror="false" gib="4" slide="down"/>
   <mount x="614" y="120" rotate="true" mirror="true" gib="5" slide="up"/>
   <mount x="614" y="282" rotate="true" mirror="false" gib="6" slide="down"/>
   <mount x="649" y="200" rotate="false" mirror="false" gib="6" slide="no"/>
</weaponMounts>


The x and y coordinates are counted, I believe, from the top left. Experiment to make it look right. You use rotate and mirror to make the weapon face the way you want it to and appear attached to the ship, and "slide" is used for which way the weapon will shift out when it is readied for firing.

Re: Help editing ship

Posted: Sat Sep 22, 2012 7:45 pm
by SSk77
but how can I remove the sliding animation ? that's my problem.....

Re: Help editing ship

Posted: Sat Sep 22, 2012 8:14 pm
by substandardgaussian
SSk77 wrote:but how can I remove the sliding animation ? that's my problem.....


It might have something to do with that

Code: Select all

slide="no"
that's sitting in the Fed Cruiser code right there that I'm pretty sure is for the Artillery Beam.

Re: Help editing ship

Posted: Sat Sep 22, 2012 8:22 pm
by SSk77
thanks
:D