Allow Overriding FluidTurretPrototype's FluidStreamPrototype in Fluids List

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
AkBKukU
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Sep 08, 2023 2:10 pm
Contact:

Allow Overriding FluidTurretPrototype's FluidStreamPrototype in Fluids List

Post by AkBKukU »

It would be nice to be able to override a FluidTurretPrototype used for flamethrowers to use different FluidStreamPrototype based on the input fluid. As an example I made a basic mod to implement a gas based flamethrower here:
https://mods.factorio.com/mod/ak-gas-flamethrower

This modded turret uses pertroleum gas which in reality wouldn't create a napalm like burning substance on the ground. So I used the "tank-flamethrower-fire-stream" FluidStreamPrototype which doesn't have the secondary action to create fire. But it would be nice if it wasn't required to create a new entity to accomplish this. If you could specify a FluidStreamPrototype in the fluids list you could have different stream attack types based on fluid. I'm thinking something that looks like this:

Code: Select all

flamethrower_entity["attack_parameters"]["fluids"] ={
    {
        type = "petroleum-gas",
        damage_modifier = 0.5,
        stream = "tank-flamethrower-fire-stream"
    }
}
This would also be useful for making new effects for turrets based on different fluids, for example I would like to make a version of the "tank-flamethrower-fire-stream" with larger grey cloud particles when a turret receives steam as an input. But to do that now I would have to make a dedicated "Steam thrower" just to have the custom FluidStreamPrototype.
Post Reply

Return to “Modding interface requests”