Flint - ZenarchistCode/ZenModPack GitHub Wiki

flint

What Is This?

This mod adds a fire-starting Flint to the game.

The flint spawns in the world like any other item, but it cannot be used on its own.

You need to combine a steel object with it (knife, axe, even some tools like crowbars and screwdrivers will work).

Once you've "paired" a tool with the flint, now you can use it to light fires like any other match/lighter object.

Using the flint will damage the tool (eg. knife) you're using over time and it only has a 20% chance of lighting a fire with each action use, but the Flint itself has quite a high quantity and will last a very long time if found at full quantity.

It cannot be repaired or have its quantity restored - once its used up, it's done for.

Items That Can Strike Flint

Here is a list of hard-coded items which can be used to strike a flame with the flint (modify ActionPrepareZenFlint.c and repack to add/remove any items):

static const ref array<string> TOOLS_FLINT =
{
	"Hatchet",
	"WoodAxe",
	"Cleaver",
	"CombatKnife",
	"CrudeMachete",
	"FangeKnife",
	"HuntingKnife",
	"KitchenKnife",
	"KukriKnife",
	"Machete",
	"OrientalMachete",
	"Screwdriver",
	"AK_Bayonet",
	"M9A1_Bayonet",
	"Mosin_Bayonet",
	"SKS_Bayonet",
	"Crowbar",
	"PipeWrench",
	"Wrench",
	"Lugwrench",
	"CanOpener",
	"Pickaxe",
	"Iceaxe",
	"Pliers"
};

Types.xml

    <type name="ZenFlint">
        <nominal>10</nominal>
        <lifetime>14400</lifetime>
        <restock>3600</restock>
        <min>5</min>
        <quantmin>10</quantmin>
        <quantmax>90</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="tools"/>
        <usage name="Hunting"/>
    </type>
⚠️ **GitHub.com Fallback** ⚠️