OpenXcom Forum

Modding => Help => Topic started by: ufodefguy on February 17, 2025, 07:01:22 pm

Title: making an HWP weapon buyable
Post by: ufodefguy on February 17, 2025, 07:01:22 pm
i need help
so i want to make the tank HWP rocket launcher buyable
when i visited items.rul (of ufo defense) i would only see the strings for the entire HWP, not its weapon
i would be grateful if someone helped me figure out how do i make the hwp weapon buyable, without the chassis (and the unit)
Title: Re: making an HWP weapon buyable
Post by: Solarius Scorch on February 17, 2025, 08:11:06 pm
HWPs are weird in many regards; long story short, you can't separate the weapon from the chassis.

I suppose you want to have an interchangeable weapon on a given chassis. The simplest way to do so would be to make a manufacturing project which requires tank with weapon X as well as weapon Y, and the result is tank with weapon Y and an item for the weapon X.
Title: Re: making an HWP weapon buyable
Post by: ufodefguy on February 17, 2025, 08:18:16 pm
k, ill try it