OpenXcom Forum

Modding => Work In Progress => Topic started by: shiono_the_shade on March 15, 2015, 10:34:30 pm

Title: My First Mod NEED HELP!
Post by: shiono_the_shade on March 15, 2015, 10:34:30 pm
So, here's my problem:

Trying to make a HWP that can arc rockets (already able to do to the Rocket HWP), and also shoot HWP Cannon Shells.

IS it possible to make a HWP with two weapons?  I'm adding what I've got so far and would appreciate any help.  Mind you I only want the Rockets to arc not the cannon shells.

So far I've had none explosive rockets, arcing cannon shells, normal cannon shells, and normal rockets.  AND always only one weapon, not two.

Any and all help is appreciated!
Title: Re: My First Mod NEED HELP!
Post by: Hobbes on March 16, 2015, 04:13:02 am
Hi there. You could check the YetMoreHWPs mod. IIRC there's a unit there that resembles what you're trying to design with a mortar type weapon.
Title: Re: My First Mod NEED HELP!
Post by: shiono_the_shade on March 16, 2015, 04:14:38 am
It has a hwp with 2 or more weapons on it?
Title: Re: My First Mod NEED HELP!
Post by: Dioxine on March 16, 2015, 05:43:11 am
It is although not sure if the 2nd weapon would/could use ammo.
Make a normal HWP then add, like (in Units, under the HWP in question):

Code: [Select]
   
builtInWeapons:
      - STR_TANK_CANNON
      - AUX_TANK_MG
      - STR_HWP_CANNON_SHELLS

Replace the STR_TANK_CANNON and AUX_TANK_MG with any other weapon you want. Not sure where exactly should be ammo for 2nd weapon declared, I guess on 4th position, but not sure (I haven't done any tank which has each weapon with limited ammo). The order in which these weapons and ammo are declared is of critical importance, so you'll probably have to experiment around before finding the proper way.
Title: Re: My First Mod NEED HELP!
Post by: shiono_the_shade on March 16, 2015, 05:45:38 am
Thanks man I'll upload the finished tank when it works. Just tried looking up the mod you mentioned and I can't find it, could you link it to me?