HM_Settings_C4

ServerProfile\Hunter_Mods\HM_C4\HM_Settings_C4.json

General

enableNotificationWhenPlacingC4

Default 0

Set to 1 to tell everybody when a C4 is placed. Set to 0 to keep it quiet.

notificationTitle

Default "C4"

Title of that message.

notificationMessage

Default "A C4 was placed at"

Text of that message (the position is added).

enableOnlyDamageDoorsAndGates

Default 0

Raid mode 1: set to 1 so C4 only works on doors and gates. Only set ONE of the 4 raid modes to 1. If more are 1, the first one in this order wins. If all are 0, mode 1 is used.

enableOnlyDamageDoorsAndGatesAndHatches

Default 0

Raid mode 2: set to 1 so C4 works on doors, gates and hatches.

enableOnlyDamageDoorsAndGatesAndHatchesAndWalls

Default 0

Raid mode 3: set to 1 so C4 works on doors, gates, hatches and walls.

enableDamageEverywhere

Default 1

Raid mode 4: set to 1 so C4 works on everything in the tier lists.

timerToArmC4InSeconds

Default 1

How many seconds the player has to hold the button to arm the C4 (a progress bar shows). Minimum is 1 second.

enableC4Disarm

Default 1

Set to 1 to let players disarm an armed C4 (anyone can, the raider too). Set to 0 to turn disarming off.

enableDisarmOnlyWithTool

Default 1

Set to 1 so disarming needs a tool from disarmTools in hands. Set to 0 so empty hands work too.

disarmChancePercentage

Default 50

Chance that a disarm works, in %: 0 never, 100 always. A disarmed C4 drops as a normal C4 anyone can pick up.

disarmTools[]

Default list of 2

Class names of the tools that can disarm a C4 (for example Pliers, Screwdriver). Their child classes count too.

disarmToolDamagePercentage

Default 20

How much health the tool loses on every disarm attempt, in % of its full health.

timerToDisarmC4InSeconds

Default 10

How many seconds the player has to hold the button to disarm the C4 (a progress bar shows). Minimum is 1 second.

enableExplosionWhenDisarmFails

Default 0

Set to 1 so a failed disarm sets the C4 off right away. Set to 0 so nothing happens and its countdown goes on.

explosionTimerInSeconds

Default 60

How many seconds from arming the C4 until it blows up. A server restart disarms every armed C4: it comes back as a normal C4 anyone can pick up.

explosionDamagePercentageTier1

Default 1

How much health a tier 1 piece loses per C4, in %. 100 destroys it with one C4.

explosionDamagePercentageTier2

Default 1

How much health a tier 2 piece loses per C4, in %.

explosionDamagePercentageTier3

Default 1

How much health a tier 3 piece loses per C4, in %.

explosionDamagePercentageTier4

Default 1

How much health a tier 4 piece loses per C4, in %.

listToDamageTier1[]

Default list of 144

The tier 1 pieces (wood). The first line, "Tier1_Classnames", is just a label. A piece that is in no list can't take a C4. The House_ names are the parts players build on map houses (on maps like Nasdara): House_Door_Wood, House_Window_Wood, House_Wall_Wood.

listToDamageTier2[]

Default list of 63

The tier 2 pieces (metal). The first line is just a label. House parts here: House_Door_Metal, House_Window_Metal.

listToDamageTier3[]

Default list of 46

The tier 3 pieces (stone or reinforced). The first line is just a label. House parts here: House_Barricade (bricks in a doorway) and House_Wall_Brick.

listToDamageTier4[]

Default list of 6

The tier 4 pieces (the strongest). The first line is just a label.

enableTreeExplosion

Default 1

Set to 1 so trees near the blast fall down (a C4 on a tree that falls goes off too). Set to 0 to leave trees alone.

explosionTreeRadius

Default 10

How close (in meters) a tree has to be to the blast to fall.

Discord

enableDiscordNotificationWhenPlacingC4

Default 0

Set to 1 to post C4 placements on Discord. Set to 0 to not post them.

discordWebhookUrl

Default "https://discord.com/api/webhooks/YOUR_..."

Your Discord webhook link for this mod. Leave it empty (or keep the example link) and nothing gets posted.

discordNotificationMessage

Default "A C4 was placed "

Discord message when a C4 is placed.

discordThumbnailUrl

Default "https://huntermods.online/_next/image?..."

Link to a picture shown in the Discord message. Leave it empty for no picture.

enableDiscordViewOnMapLink

Default 1

Set to 1 to show the coordinates and a "View on Map" link in the Discord message. Set to 0 to leave them out.

discordTierCoordinatesLabel

Default "Coordinates"

The name of the coordinates line in the Discord message.

discordViewOnMapLabel

Default "View on Map"

The text of the map link in the Discord message.

discordEmbedColor

Default 15844367

The colour of the stripe on the side of the Discord message, written as one number (15844367 is gold).

Economy files

types.xml23 lines
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<types>
    <type name="HM_C4">
        <nominal>6</nominal>
        <lifetime>14400</lifetime>
        <restock>0</restock>
        <min>3</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</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"/>
    </type>
    <type name="HM_C4_Stick">
        <nominal>12</nominal>
        <lifetime>14400</lifetime>
        <restock>0</restock>
        <min>6</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</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"/>
    </type>
</types>