Author Topic: Two weapon HWP  (Read 7382 times)

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Two weapon HWP
« 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?

Offline NoelBuddy

  • Colonel
  • ****
  • Posts: 142
    • View Profile
Re: Two weapon HWP
« Reply #1 on: September 25, 2014, 04:43:17 pm »
+1 same question.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Two weapon HWP
« Reply #2 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.

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Two weapon HWP
« Reply #3 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.

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Two weapon HWP
« Reply #4 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!
« Last Edit: January 25, 2016, 09:19:27 pm by Solarius Scorch »

Offline HelmetHair

  • Colonel
  • ****
  • Posts: 360
  • He who laughs last thinks fastest.
    • View Profile
Re: Two weapon HWP
« Reply #5 on: September 26, 2014, 04:49:53 am »
Oh SHIT it is on!


:D

-HH

Offline MFive

  • Captain
  • ***
  • Posts: 95
  • Lazy Sectoid
    • View Profile
Re: Two weapon HWP
« Reply #6 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

Spoiler:
  - 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

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: Two weapon HWP
« Reply #7 on: September 26, 2014, 06:45:55 am »
You have the minigun fully defined elsewhere?

Offline MFive

  • Captain
  • ***
  • Posts: 95
  • Lazy Sectoid
    • View Profile
Re: Two weapon HWP
« Reply #8 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  :-[
« Last Edit: September 26, 2014, 07:44:44 am by MFive »

Offline harry

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Two weapon HWP
« Reply #9 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 ?

Offline redv

  • Colonel
  • ****
  • Posts: 335
    • View Profile
Re: Two weapon HWP
« Reply #10 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
« Last Edit: September 27, 2014, 11:04:15 pm by redv »

Offline smexyvami

  • Captain
  • ***
  • Posts: 82
    • View Profile
Re: Two weapon HWP
« Reply #11 on: September 27, 2014, 11:01:46 pm »
can this work form drones / cyborge wepons ?

Offline jackstraw2323

  • Colonel
  • ****
  • Posts: 206
    • View Profile
Re: Two weapon HWP
« Reply #12 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?