Back to NxLabs

NxLabs / Vintage Story

Drifter Bombs

EBy ExUriel

Drifters have a chance to throw lit scrap bombs instead of stones.

Drifter Bombs

Description

Drifters can now throw lit scrap bombs. The chance, blast size, and fuse length are configured per tier, so higher tier drifters are considerably more dangerous than surface ones.

Features

  • Each drifter tier has its own independent bomb probability, so higher tier drifters have higher chances to throw a scrap bomb.
  • Bombs detonate on impact.
  • Damage to entities scales proportianal to the epicenter of the blast.
  • The blast's radius and damage scales based on tier.
  • Block destruction is disabled by default. A config option enables block destruction if you want it.
  • Block destruction is blocked entirely inside land claims.

Configuration

The config file is generated at modconfig/drifterbombs.json. Each of the six drifter tiers (normal, deep, tainted, corrupt, nightmare, double-headed) can be tuned independently under Variants.

  • destructive (true/false, default false):allows bombs to destroy blocks when enabled.
  • BombChance (float, varies per tier):chance per throw that the drifter uses a bomb instead of a stone.
  • InjureRadius (float, varies per tier):blast damage radius in blocks. Damage falls off with distance.
  • DestructionRadius (float, varies per tier):block destruction radius in blocks. Only applies when destructive is enabled.
Default Config:

{
// Set to true if you want drifter bombs to destroy terrain. False by default.
"destructive": false,

// One entry per drifter type. You can tweak each tier independently.
// BombChance: how likely a drifter is to throw a bomb instead of a stone each time it throws. 0.01 = 1% chance per throw.
// DestructionRadius: how far out blocks get destroyed (only matters when destructive is true).
// InjureRadius: how far out the explosion hurts players and creatures. Damage drops off with distance.
"Variants": {
"normal": { "BombChance": 0.002, "DestructionRadius": 4.0, "InjureRadius": 10.5, "FuseSeconds": 4.0 },
"deep": { "BombChance": 0.004, "DestructionRadius": 4.5, "InjureRadius": 11.9, "FuseSeconds": 4.0 },
"tainted": { "BombChance": 0.01, "DestructionRadius": 6.1, "InjureRadius": 16.0, "FuseSeconds": 3.5 },
"corrupt": { "BombChance": 0.01333, "DestructionRadius": 7.0, "InjureRadius": 18.3, "FuseSeconds": 3.0 },
"nightmare": { "BombChance": 0.02, "DestructionRadius": 8.7, "InjureRadius": 22.8, "FuseSeconds": 2.5 },
"double-headed": { "BombChance": 0.025, "DestructionRadius": 10.0, "InjureRadius": 26.3, "FuseSeconds": 2.0 }
 }
} 
//
Note. FuseSeconds is currently non functional.

Compatibility

  • Side: Universal
  • Required on client: Yes
  • Required on server: Yes
  • Safe to add to or remove from existing worlds.
  • No known conflicts with other mods.

 

 

<pre style="text-align: center;">This mod was made by members of the Vintage Story Modder's Cooperative

</pre>

<span style="color: #3598db;"><span style="color: #2880b9;">The Unofficial Vintage Story Modding Co-op, click here to join.</span></span>
As modders, we can help each other make even better stuff. Plus we have dedicated channels for better organization.

&nbsp;

Credits &amp; Tools Disclosure

This mod was fully designed and programmed by me. All artwork and screenshots are mine or otherwise credited. A large language model was utilized for reviewing human-written code &amp; concept research, no design decisions or unsupervised work of any kind was performed by an AI model.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.