Raw ores as ammunition

This is the place to request new mods or give ideas about what could be done.
Post Reply
User avatar
DarkyPupu
Fast Inserter
Fast Inserter
Posts: 109
Joined: Sun Jun 04, 2017 4:46 pm
Contact:

Raw ores as ammunition

Post by DarkyPupu »

Just curious, would it be possible to use raw ores as turret ammunition someway (ex: stone) ?
Not sure how to do this but if anyone has some opinions i'd be happy to hear about it :)

Usage: Extreme worlds, no automated crafts possible unless you're dead waiting for it :p and crafting by hand is not an option since server continues to run while we're not connected.

Thanks

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Raw ores as ammunition

Post by darkfrei »

DarkyPupu wrote:
Wed Jul 22, 2020 10:28 am
Just curious, would it be possible to use raw ores as turret ammunition someway (ex: stone) ?
Not sure how to do this but if anyone has some opinions i'd be happy to hear about it :)

Usage: Extreme worlds, no automated crafts possible unless you're dead waiting for it :p and crafting by hand is not an option since server continues to run while we're not connected.

Thanks
You are need to set up the mod folder, the file info.json and place this code to the file data.lua:

Code: Select all

local stone = data.raw.item.stone
data.raw.item.stone = nil
local ammo_stone = table.deepcopy (data.raw.ammo["firearm-magazine"])


stone.type = ammo_stone.type
stone.ammo_type = ammo_stone.ammo_type
stone.magazine_size = ammo_stone.magazine_size
stone.subgroup = ammo_stone.subgroup
stone.ammo_type.action[1].action_delivery[1].target_effects[2].damage = {amount = 1, type = "physical"}

data:extend({stone})
Attachments
data.lua
(3 KiB) Downloaded 59 times
2020-07-22T20_10_52-Factorio 0.18.36.png
2020-07-22T20_10_52-Factorio 0.18.36.png (277.03 KiB) Viewed 1512 times
2020-07-22T20_11_01-Factorio 0.18.36.png
2020-07-22T20_11_01-Factorio 0.18.36.png (11.33 KiB) Viewed 1512 times

Pi-C
Smart Inserter
Smart Inserter
Posts: 1648
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Raw ores as ammunition

Post by Pi-C »

Next step would be to change the graphics to something like this: Image
:mrgreen:
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

User avatar
DarkyPupu
Fast Inserter
Fast Inserter
Posts: 109
Joined: Sun Jun 04, 2017 4:46 pm
Contact:

Re: Raw ores as ammunition

Post by DarkyPupu »

That is brilliant, i turned around the pot and came with unnecessary complex solutions (which didn't work :lol: ).
Thanks a lot, although it won't save the base for the long run, it may help a bit in the start at least !

From the power of it, it would be more like :
images.jpg
images.jpg (5.08 KiB) Viewed 1480 times
:lol:

But that's exactly how it should be.

nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: Raw ores as ammunition

Post by nosports »

I would say this would be worthy of a small mod

Include iron & copper ore and possible other ores. :ugeek:

It would be a very hotfix amunition when running out of normal munition..
it also could be used for self-defending and supporting a mine-outpost without the producing of current amuniton

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Raw ores as ammunition

Post by darkfrei »

nosports wrote:
Thu Jul 23, 2020 8:06 am
Include iron & copper ore and possible other ores. :ugeek:
Making the list of all resources:
Attachments
data.lua
(1.75 KiB) Downloaded 66 times

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Raw ores as ammunition

Post by eradicator »

The only enemies not immune to one-physical-damage are small biters/spitters. Even spawners are immune. Impact resistance is less common (at least in vanilla).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Ideas and Requests For Mods”