Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ammo Effects

There are two types of ammo_effects. Hardcoded ammo effects and jsonized ammo effects.

Hardcoded Ammo Effects

IdentifierDescription
THROWNUsed to check if it was thrown or not
NO_PENETRATE_OBSTACLESCannot obstacles; such as penetrate fences or reinforced glass
HEAVY_HITWill trigger traps and make a louder sound on hitting walls
NO_ITEM_DAMAGEItems and traps the projectile hits will not be damaged
NOGIBAmmo will not overkill and explode corpses
COOKOFFAmmo will explode in fires
INCENDIARYCauses fire in terrain / targets
NEVER_MISFIRESWill not misfire
ACT_ON_RANGED_HITThe item will trigger it’s use action on hit
APPLY_SAPApplies the sap effect for turns scaling off damage
BEANBAGApplies the stun effect for a short duration
BLINDS_EYESApplies blind if hits eyes
BOUNCEBounces and hits other targets in a nearby area also gives the WIDE effect
BURSTDrops contents on impact, but is also destroyed
CUSTOM_EXPLOSIONUses the explosion data of the item
DRAW_AS_LINEDrawn instantly without animation
IGNITEIgnites all hit creatures
JETDraws the whole effect even if damage becomes 0
LARGE_BEANBAGApplies the BEANBAG stun effect for a longer duration
MUZZLE_SMOKEProduces a small smoke plume on firing
NO_CRITCannot critically hit, can still graze
NO_DAMAGEDoes not apply any damage
NO_DAMAGE_SCALINGCannot critically hit, cannot graze
NO_EMBEDCannot embed in creatures
NO_OVERSHOOTTrajectory cannot extend pass target, even when missing
NULL_SOURCEUsed internally, origin is not a real critter
POISONApplies poison on hit, worse poison on crit
PARALYZEPOISONApplies paralyzing poison on hit
SHATTER_SELFThrown destoryed on hit, drops contents, produces noise
TANGLEApplies tied effect to creature can be recovered
NET_TANGLEApplies tied effect to a group, irrecoverable
WHIPScares wildlife hit by it, will also apply disarm sometimes on reach attacks
BLACKPOWDERWill cause build up of damaging gunk
RECYCLEDCauses a 1 in 256 chance to fail to fire
RECOVER_XHas a (X-1/X) chance to recover one charge of used ammo at the impact
WIDENegates the effect of the HARDTOSHOOT monster flag.
SHOTMultiplies point-blank damage to terrain, also gives the WIDE effect

Fields

IdentifierDescription
id(mandatory) Unique ID.
aoe(optional) Object, see aoe for fields
trail(optional) Object, see trail for fields
explosion(optional) Object, see explosions for fields
do_flashbang(optional) Do flashbang effect
do_emp_blast(optional) Do Emp effect

Aoe

An effect centered on the target

IdentifierDescription
field_type(optional) Id of field to use in the effect
intensity_min(optional) Minimum intensity of field
intensity_max(optional) Maximum intensity of field
radius(optional) Radius of effect
radius_z(optional) Z axis radius of effect
chance(optional) Percent chance for added field
size(optional) Rough size of the aoe
check_sees(optional) Source has to see location for effect, effects below condition
check_sees_radius(optional) Source has to see any spot in the radius
check_passable(optional) Target must have to be on a passable tile

Trail

All effects are applied in a trail following the projectile’s path

IdentifierDescription
field_type(optional) Id of field to use in the effect
intensity_min(optional) Minimum intensity of field
intensity_max(optional) Maximum intensity of field
chance(optional) Percent chance for added field

Example

{
  "id": "MININUKE_MOD",
  "type": "ammo_effect",
  "aoe": {
    "field_type": "fd_nuke_gas",
    "intensity_min": 3,
    "intensity_max": 3,
    "chance": 100,
    "radius": 24,
    "radius_z": 0,
    "size": 1,
    "check_passable": true,
    "check_sees": true,
    "check_sees_radius": 3
  },
  "trail": { "field_type": "fd_acid", "intensity_min": 1, "intensity_max": 3, "chance": 66 },
  "explosion": {
    "damage": 3000,
    "radius": 20,
    "fragment": {
      "impact": { "damage_type": "heat", "amount": 3000, "armor_multiplier": 2 },
      "range": 24
    }
  }
}