Railgun Turrets Using Rails as Ammo


Makes it possible for railguns to use rails as ammo. Just as the name suggests. And also adds other 'rail'gun related things. Compatible with other mods that add rails.

Tweaks
19 days ago
2.0
53
Combat

g support for modded rails?

24 days ago

subj

19 days ago

i don't know how to approach this problem. i could either write a function that checks other mods to see if they have their own rail items, and then this function creates a lua table which automatically generates the ammo version of each track (or creates a new crafting recipe for each modded railway track); or just look at popular overhaul mods that add rails and hardcode them into the mod so they are there as optional dependencies.

i think the first solution is a better solution. i just don't know how to implement it though.
i will look into it.

19 days ago

Thank you!
Game is literally unplayable with railgun not being able to shoot literal rails!

19 days ago

i did choose to do the first option, and made a function that dynamically adds every single possible modded rail, as long as they are classified as "rail-planner". let me be notified if you experience some bugs lol.

oh i also broke everything, you need to recraft your "rail"gun ammos. oops.

New response