[QUESTION] Turret or Gimballed?


I am working on a fighter that will have a turret under its nose with a limited fire arc to about 180 degrees in front of it, there’s an example photo below. My main question is, would I set the weapon to be a turret with a limited firing arc or a gimballed weapon with a limited firing arc?

As a side note, this question was borne out of myself looking through the .ship files and seeing most, if not all, weapons seem to be either gimballed or turrets (even the ion cannon frigates’ beams are technically gimballed??). Are there any weapons that are truly set to “fixed”?

For flexibility always use turreted weapons, but for ease of implementation gimbal.
I personally recommend using turreted weapons as much as you can, they can be better tweaked, and work much more naturally, also are much more compatible with most additional ideas that you may come in the future like simulated projectiles, barrel recoil, etc.

If there is any fixed weapons, I don’t recommend them, unless they are mines or something like that, mostly because a fixed weapon would require the ship to turn or align itself exactly with the weapon line of fire for it to be activated and fire, which will enable it to fire in very rare occasions, and make it almost useless.

1 Like

Except for fighters, where fixed weapons are natural.

Sorry, @Dom2 but not even fighters have fixed weapons, all of them are gimbal, fixed weapons are used exclusively, at least in vanilla game, by Spawn Weapon Fire Bursts, which are weapons that do damage to the area they are spawned, so they don’t need any direction, just volume.

Ah, I think I have misunderstood gimbals then. What is a gimbal?

In Homeworld, be it HW1 or HW2, the gimbal weapon only use only 1 value to tweak the weapon coverage, the firing arc, while the turret can use ranges from positive and negative values for x and y axis, and also can make use of the firing arc too at the same time.
The fixed weapons don’t make use any of these values as far as I’m aware.

Gimbaled - Looks like stationary/fixed weapon but can have several degrees of motion to aim in each direction.

Turret - If you want the gun to track and move as it’s finding it’s target.

@sastrei @Krnt_13 Thank you very much! Cleared up my issue haha.

I’ve got another weapon-type that I’d like to run by you guys. The closest I can describe it atm, as I haven’t concept art-ed it out yet, is it is almost like a Tesla coil. It would have a charging chamber of sorts and would fire an arc of plasma/lightning at a nearby target. Now, as I’m pretty sure it would not “track” its targets in a visibly animated fashion, I’m leaning towards the idea that I would create it as a gimballed weapon with a very wide firing arc. Do you think that would be right way to go?

Also, how would I go about creating the FX for said weapon? I’m still not completely sure how custom FX are created. Do you create them in a separate program or do you script them somehow? The last time I created particle effects was in the Cryengine haha.

As of the current moment, you have to script FX by hand.

There is a very old tool by Relic that you could use… But it is extremely finicky and cranky, to say the least.

According to the FX documentation, there technically is an arcing property of the Beam style FX, but I have no idea if it is functional in HW2/RM. The document was dual-purpose written for another one of Relic’s games (Impossible Creatures), which used the same FX engine.

Well, time to learn another thing! haha

Ooooo, ya don’t say? I’ll see if I can look into that. Anyone else know anything about that?

On the topic of Gimballed/Fixed:

  • Gimballed weapons point in a certain direction, and can rotate to point at the target, up to the max angle set in the weapon script.
  • Fixed weapons always point in one direction, but have a “trigger happy” value that allows them to shoot when the target is within that firing cone. (Missile launchers are the prime example of this; they have a 179 degree trigger happy angle.)

Here’s a (lame) picture:

Edit: obviously, if the target is outside the Max/Trigger-Happy angles, the weapon won’t shoot.


I can see the Turanic Raiders having Trigger Happy for everything :smiley:

I think that the arcing property is called noise, you can see some examples of the usage off this by some of the Progenitor units in the FX mod:

property_07 = { name = "Noise", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 1, 0.5, }, },
This should explain it:

[-ARRAY_TIMEFLOAT-] property_00 = { name = "string", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { time, value, [time, value, ...] }, }, *time ranges from 0 to 1 (float) but value has no definite bounds (float.)
Look here for more info:
The great FX Tutorial!


No. Noise is a separate value.

[quote]Arc: Arcing is based on world orientation and allows you to arc a beam effect between two points. Can be animated.

Noise: Amount of noise added to the beam. Possible values are from 0 to 1. This setting will disperse the beam, causing it to jiggle. Can be animated.[/quote]

1 Like

Are you paraphrasing this info from somewhere? If so, where’d you find that?

[quote=“PrivateHix, post:15, topic:1231033”]
Are you paraphrasing this info from somewhere?

[quote=“PrivateHix, post:15, topic:1231033”]
If so, where’d you find that?
[/quote]The RDN FX Tool documentation.

Sorry didn’t mean that in a bad way, I was just wondering where you got it from :slightly_smiling:

I know :wink:

1 Like