OpenXcom Forum

Modding => Work In Progress => Topic started by: KingMob4313 on September 25, 2014, 04:36:20 pm

Title: Two weapon HWP
Post by: KingMob4313 on September 25, 2014, 04:36:20 pm
Everyone is talking about how this is possible, but I still haven't figured out how it is done.

Can someone please point me in the right direction?
Title: Re: Two weapon HWP
Post by: NoelBuddy on September 25, 2014, 04:43:17 pm
+1 same question.
Title: Re: Two weapon HWP
Post by: Dioxine on September 25, 2014, 04:45:54 pm
Just check my Piratez mod (main file) (STR_TANK_CANNON & STR_TANK_ROCKET_LAUNCHER), the working code is there.
Title: Re: Two weapon HWP
Post by: KingMob4313 on September 25, 2014, 05:27:21 pm
Just check my Piratez mod (main file) (STR_TANK_CANNON & STR_TANK_ROCKET_LAUNCHER), the working code is there.

BuiltInWeapons! I SEE.
Title: Re: Two weapon HWP
Post by: KingMob4313 on September 26, 2014, 04:03:26 am
Does the second weapon have to have no ammo?

--- posts merge ---

"No, infinite ammo is not a requirement. My prototype dual-weapon tank "combined" cannon & rocket turrets."

Thanks Diox!
Title: Re: Two weapon HWP
Post by: HelmetHair on September 26, 2014, 04:49:53 am
Oh SHIT it is on!


:D

-HH
Title: Re: Two weapon HWP
Post by: MFive on September 26, 2014, 06:27:33 am
I cannot figure out the builtInWeapons thing, i am running the code in the 'spoiler' section, and it does not recognise the minigun

  - type: STR_TANK_CANNON
    race: STR_TANK_CANNON
    stats:
      tu: 70
      stamina: 100
      health: 150
      bravery: 110
      reactions: 20
      firing: 60
      throwing: 0
      strength: 60
      psiStrength: 100
      psiSkill: 0
      melee: 70
    armor: TANK_ARMOR
    standHeight: 16
    kneelHeight: 16
    value: 20
    energyRecovery: 50
    deathSound: 23
    moveSound: 14
    builtInWeapons:
      - STR_TANK_CANNON
      - STR_HWP_MINIGUN
      - STR_HWP_CANNON_SHELLS
Title: Re: Two weapon HWP
Post by: ivandogovich on September 26, 2014, 06:45:55 am
You have the minigun fully defined elsewhere?
Title: Re: Two weapon HWP
Post by: MFive on September 26, 2014, 07:11:03 am
i have tried both defined and undefined(which iirc would cause the game to crash in tac-scape test), neither showed up
the code is from Priatez, all i am trying to do is change the weapons atm


EDIT: Forget everything i was talking about, i was right, it would cause the game to crash if i had the mod activated! sorry about that and thanks for the help  :-[
Title: Re: Two weapon HWP
Post by: harry on September 27, 2014, 12:37:45 am
For some reason, I can't make the secondary weapon use separate limited ammunition.

Anyone tried or succeeded before ?
Title: Re: Two weapon HWP
Post by: redv on September 27, 2014, 04:17:55 pm
I cannot figure out the builtInWeapons thing, i am running the code in the 'spoiler' section, and it does not recognise the minigun

Your ruleset cannot works because of a bug in OpenXcom.

Try this:
Code: [Select]
builtInWeapons:
      - STR_HWP_MINIGUN
      - STR_TANK_CANNON
      - STR_HWP_CANNON_SHELLS

or this:
Code: [Select]
builtInWeapons:
      - STR_HWP_MINIGUN
      - STR_HWP_CANNON_SHELLS
Title: Re: Two weapon HWP
Post by: smexyvami on September 27, 2014, 11:01:46 pm
can this work form drones / cyborge wepons ?
Title: Re: Two weapon HWP
Post by: jackstraw2323 on October 29, 2014, 04:02:16 am
I know I've seen two mods with this option, but I don't have any idea how to use the secondary weapon, should it be in the left weapon slot?