beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
210 stars 100 forks source link

Consider swapping texture 3 and 4 for large beam laser #1461

Open sprunk opened 5 months ago

sprunk commented 5 months ago

Regular beamlaser has flare under tex3 but large beamlaser has it under tex4 (and under 3 it has the directional muzzle exhaust which regular beamlaser doesn't have). Perhaps it would be good to swap large beamlaser 3 and 4 so that tex3 is always flare on both types of laser?

Games would need to put this snippet in weapondefs_post:

if Script.IsEngineMinVersion(105, 0, NNN) then
    for _, wd in pairs(WeaponDefs) do
        if wd.largebeamlaser then -- assumes lowerkeys
            if wd.textures then
                wd.textures[3], wd.textures[4] = wd.textures[4], wd.textures[3]
            else
                wd.texture3, wd.texture4 = wd.texture4, wd.texture3
            end
        end
    end
end