Help editing ship

Discuss and distribute tools and methods for modding. Moderator - Grognak
SSk77
Posts: 57
Joined: Fri Sep 21, 2012 8:09 pm

Help editing ship

Postby SSk77 » Sat Sep 22, 2012 7:21 pm

Please, how can I remove weapon animation and change weapon location ?
substandardgaussian
Posts: 10
Joined: Sat Sep 22, 2012 4:36 pm

Re: Help editing ship

Postby substandardgaussian » Sat Sep 22, 2012 7:31 pm

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.
SSk77
Posts: 57
Joined: Fri Sep 21, 2012 8:09 pm

Re: Help editing ship

Postby SSk77 » Sat Sep 22, 2012 7:45 pm

but how can I remove the sliding animation ? that's my problem.....
substandardgaussian
Posts: 10
Joined: Sat Sep 22, 2012 4:36 pm

Re: Help editing ship

Postby substandardgaussian » Sat Sep 22, 2012 8:14 pm

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.
SSk77
Posts: 57
Joined: Fri Sep 21, 2012 8:09 pm

Re: Help editing ship

Postby SSk77 » Sat Sep 22, 2012 8:22 pm

thanks
:D