Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Sinister Weapons  (Read 395 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3020
    • View Profile
Sinister Weapons
« on: February 15, 2023, 05:14:28 AM »

It would be nice to have built-in support for mirroring weapons.



I would like to see:
- .weapon boolean (default false) for leftMirror
- .weapon boolean (default false) for rightMirror (because sometimes you draw a left-handed weapon)

- enum for weapon mounts (default AUTO) that specifies their mirroring (for when the ship does not conform to simple left/right side - forwards/backwards facing)
  - AUTO, RIGHT_FORWARDS, LEFT_FORWARDS, RIGHT_BACKWARDS, LEFT_BACKWARDS
Logged

FooF

  • Admiral
  • *****
  • Posts: 1387
    • View Profile
Re: Sinister Weapons
« Reply #1 on: February 15, 2023, 07:02:25 AM »

That was not what I was expecting from the title but I see what you did there…!

I have noticed weapon orientation being “one-way” but most weapons are symmetrical so it’s not an issue. The Chaingun is a conspicuous example though. When I see the screenshot below, it looks weird to see them that way.

But, I’m not against the idea. I’m sure it’s driving someone’s OCD up a wall.
Logged

Wyvern

  • Admiral
  • *****
  • Posts: 3803
    • View Profile
Re: Sinister Weapons
« Reply #2 on: February 15, 2023, 07:50:50 AM »

This is actually fairly simple to mod in. (And thank Alex for the improvements that made it possible.)

Even supporting specific mirroring for specific mounts is pretty doable; my mod doesn't do it, but since mount point ids are strings, it wouldn't be hard to set up some mod's ships with something where, say, any mount ending in "_m" will mirror any mirror-capable weaponry.

That even plays into the reasons I made my mod as a mod + utility library. If mirroring based on mount id is something some modder would actually use, I can roll that into the library portion.

Edit: Of course, that it's easy to mod in is, perhaps, slightly orthogonal to the original request for supporting such a feature in the base game. Which would be neat if it happened! But until then, at least the modding side of things is doable.
« Last Edit: February 15, 2023, 08:09:40 AM by Wyvern »
Logged
Wyvern is 100% correct about the math.

SafariJohn

  • Admiral
  • *****
  • Posts: 3020
    • View Profile
Re: Sinister Weapons
« Reply #3 on: February 15, 2023, 08:09:58 AM »

This is actually fairly simple to mod in.

Was not aware of that! :o Glad to see it has been made into an easy-to-use lib.

Would still be nice for it to be directly supported by vanilla.
Logged