Compare commits

...

2 Commits

Author SHA1 Message Date
Anton Simakov 69a277fd0a few fixes 2026-10-13 13:37:13 +02:00
Anton Simakov 13256c914b pvc pipe bombs 2026-10-13 12:57:58 +02:00
7 changed files with 147 additions and 9 deletions
@@ -7,7 +7,7 @@
{ "distribution": [ { "item": "molotov", "count": 5 }, { "item": "gelled_molotov", "count": 5 } ] },
{ "item": "cotton_patchwork", "count": 25 },
{ "item": "gasoline", "count": 1 },
{ "item": "pipebomb", "count": 25 },
{ "group": "any_pipe_bomb", "count": 25 },
{ "item": "fuse", "count": 5 },
{ "item": "FMCNote", "count": 3 },
{ "item": "nail", "count": 5, "charges": [ 1, 100 ] },
@@ -1214,7 +1214,7 @@
{ "item": "ref_lighter", "prob": 2, "charges": [ 0, 50 ] },
{ "item": "matches", "prob": 60, "charges": [ 0, 20 ] },
{ "item": "ref_matches", "prob": 60, "charges": [ 0, 32 ] },
[ "pipebomb", 4 ],
{ "group": "any_pipe_bomb", "prob": 4 },
{ "prob": 8, "group": "crack_bag_zipper_1_4" },
[ "crackpipe", 37 ],
{ "item": "lsd", "prob": 10, "count": [ 1, 5 ] },
@@ -83,5 +83,16 @@
{ "item": "lgrifle_primer", "count": [ 0, 100 ], "prob": 200 },
{ "item": "shotgun_primer", "count": [ 0, 100 ], "prob": 50 }
]
},
{
"type": "item_group",
"subtype": "distribution",
"id": "any_pipe_bomb",
"items": [
{ "item": "pipebomb" },
{ "item": "pipebomb_pvc" },
{ "item": "military_explosive_pipebomb", "prob": 20 },
{ "item": "military_explosive_pipebomb_pvc", "prob": 20 }
]
}
]
@@ -223,12 +223,13 @@
"looks_like": "pipe",
"name": { "str": "PVC pipe" },
"description": "White polyvinyl chloride pipe, commonly used for household plumbing, but also in many another applications.",
"//": "1 inch schedule 80 CPVC, 0.44 lbs/ft., thickness 0.179 in., inner diameter 0.957 in., outer 1.315 in.",
"//": "50 cm of 'schedule 80 CPVC', 0.44 lbs/ft., thickness 0.179 in., inner diameter 0.957 in., outer 1.315 in.",
"category": "spare_parts",
"price": "315 cent",
"price_postapoc": "1 cent",
"material": [ "vinyl" ],
"melee_damage": { "bash": 4 },
"longest_side": "50 cm",
"weight": "327 g",
"volume": "1750 ml"
}
+78 -4
View File
@@ -677,7 +677,7 @@
"symbol": "*",
"color": "light_gray",
"explode_in_fire": true,
"explosion": { "power": 920, "shrapnel": { "casing_mass": 410, "fragment_mass": 0.5 } },
"explosion": { "power": 920, "shrapnel": { "casing_mass": 307, "fragment_mass": 6.14 } },
"use_action": {
"need_wielding": true,
"target": "military_explosive_pipebomb_act",
@@ -697,7 +697,39 @@
"description": "This pipebomb's pin is pulled, and it will explode any second now. Throw it immediately!",
"use_action": { "type": "message", "message": "You've already pulled the pin, try throwing it instead.", "name": "Pull pin" },
"countdown_interval": "5 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 920, "shrapnel": { "casing_mass": 410, "fragment_mass": 0.5 } } },
"countdown_action": { "type": "explosion", "explosion": { "power": 920, "shrapnel": { "casing_mass": 307, "fragment_mass": 6.14 } } },
"flags": [ "DANGEROUS", "SPAWN_ACTIVE" ]
},
{
"id": "military_explosive_pipebomb_pvc",
"copy-from": "military_explosive_pipebomb",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"name": { "str": "military explosive PVC pipebomb" },
"description": "A section of plastic pipe filled with military explosives. Use this item to pull the pin, giving you six seconds to get away from it before it detonates.",
"weight": "860 g",
"//": "20 cm of pvc pipe weight is 130 g",
"material": [ { "type": "vinyl", "portion": 1 }, { "type": "dense_powder", "portion": 7 } ],
"explosion": { "power": 920, "shrapnel": { "casing_mass": 65, "fragment_mass": 0.08 } },
"use_action": {
"need_wielding": true,
"target": "military_explosive_pipebomb_pvc_act",
"msg": "You pull the pin on the %s.",
"menu_text": "Pull pin",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "CYLINDER_GRENADE" ]
},
{
"id": "military_explosive_pipebomb_pvc_act",
"copy-from": "military_explosive_pipebomb_pvc",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"looks_like": "pipebomb_act",
"description": "This pipebomb's pin is pulled, and it will explode any second now. Throw it immediately!",
"use_action": { "type": "message", "message": "You've already pulled the pin, try throwing it instead.", "name": "Pull pin" },
"countdown_interval": "5 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 920, "shrapnel": { "casing_mass": 65, "fragment_mass": 0.08 } } },
"flags": [ "DANGEROUS", "SPAWN_ACTIVE" ]
},
{
@@ -898,7 +930,12 @@
"symbol": "*",
"color": "light_gray",
"explode_in_fire": true,
"explosion": { "power": 300, "shrapnel": { "casing_mass": 410, "fragment_mass": 0.5 } },
"//2": [
"galvanized pipe mass recovery after detonation is 60-99% of pipe weight (75% assumed here)",
"into roughly 35-65 fragments (50 assumed here)",
"Anal. Methods, 2015, 7, 9756"
],
"explosion": { "power": 300, "shrapnel": { "casing_mass": 307, "fragment_mass": 6.14 } },
"use_action": {
"need_wielding": true,
"target": "pipebomb_act",
@@ -918,7 +955,44 @@
"description": "This pipebomb's fuse is lit, and it will explode any second now. Throw it immediately!",
"use_action": { "type": "message", "message": "You've already lit the fuse, try throwing it instead.", "name": "Light fuse" },
"countdown_interval": "6 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 300, "shrapnel": { "casing_mass": 410, "fragment_mass": 0.5 } } },
"countdown_action": { "type": "explosion", "explosion": { "power": 300, "shrapnel": { "casing_mass": 307, "fragment_mass": 0.5 } } },
"flags": [ "DANGEROUS", "SPAWN_ACTIVE" ]
},
{
"id": "pipebomb_pvc",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"copy-from": "pipebomb",
"name": { "str": "PVC pipebomb" },
"description": "A section of plastic pipe, filled with explosives. Produces less aggressive shrapnel comparing to its steel brother, but no less dangerous. Use this item to light the fuse, giving you six seconds to get away from it before it detonates. You'll need a lighter or some matches to use it.",
"weight": "560 g",
"//": "20 cm of pvc pipe weight is 130 g",
"material": [ { "type": "vinyl", "portion": 1 }, { "type": "dense_powder", "portion": 7 } ],
"//2": [
"pvc pipe bomb mass recovery after detonation is around 56% (rounded to 50%)",
"into roughly 757-864 fragments (800 assumed here)",
"Mapping Smokeless Powder Residue on PVC Pipe Bomb Fragments Using Total Vaporization Solid Phase Microextraction, Forensic Science International"
],
"explosion": { "power": 300, "shrapnel": { "casing_mass": 65, "fragment_mass": 0.08 } },
"use_action": {
"need_wielding": true,
"target": "pipebomb_act",
"msg": "You light the fuse on the pipe bomb.",
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "CYLINDER_GRENADE" ]
},
{
"id": "pipebomb_pvc_act",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"copy-from": "pipebomb_pvc",
"description": "This pipebomb's fuse is lit, and it will explode any second now. Throw it immediately!",
"use_action": { "type": "message", "message": "You've already lit the fuse, try throwing it instead.", "name": "Light fuse" },
"countdown_interval": "6 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 300, "shrapnel": { "casing_mass": 65, "fragment_mass": 0.08 } } },
"flags": [ "DANGEROUS", "SPAWN_ACTIVE" ]
},
{
+54 -1
View File
@@ -317,10 +317,27 @@
"reversible": true,
"book_learn": [ [ "manual_launcher", 4 ], [ "textbook_anarch", 5 ] ],
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"using": [ [ "military_explosive", 92 ], [ "explosives_casting_standard", 1 ] ],
"using": [ [ "military_explosive", 28 ], [ "explosives_casting_standard", 1 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"components": [ [ [ "pipe", 1 ] ], [ [ "delay_fuze", 1 ] ] ]
},
{
"result": "military_explosive_pipebomb_pvc",
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"id_suffix": "stable",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_EXPLOSIVE",
"skill_used": "fabrication",
"difficulty": 5,
"time": "15 m",
"reversible": true,
"book_learn": [ [ "manual_launcher", 4 ], [ "textbook_anarch", 5 ] ],
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"using": [ [ "military_explosive", 28 ], [ "explosives_casting_standard", 1 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"components": [ [ [ "pipe_cpvc", 1 ] ], [ [ "delay_fuze", 1 ] ] ]
},
{
"result": "military_explosive_bomb",
"type": "recipe",
@@ -433,6 +450,7 @@
"time": "15 m",
"//": "You cut the tube to make the bomb.",
"autolearn": true,
"reversible": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "stable_explosive", 29 ], [ "volatile_explosive", 1 ] ],
@@ -449,6 +467,7 @@
"difficulty": 1,
"time": "15 m",
"autolearn": true,
"reversible": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "volatile_explosive", 30 ] ],
@@ -466,6 +485,40 @@
],
"components": [ [ [ "pipe", 1 ] ], [ [ "fuse", 1 ] ] ]
},
{
"result": "pipebomb_pvc",
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_EXPLOSIVE",
"skill_used": "fabrication",
"difficulty": 1,
"time": "15 m",
"//": "You cut the tube to make the bomb.",
"autolearn": true,
"reversible": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "stable_explosive", 29 ], [ "volatile_explosive", 1 ] ],
"components": [ [ [ "pipe_cpvc", 1 ] ], [ [ "fuse", 1 ] ] ]
},
{
"result": "pipebomb_pvc",
"id_suffix": "volatile",
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_EXPLOSIVE",
"skill_used": "fabrication",
"difficulty": 1,
"time": "15 m",
"autolearn": true,
"reversible": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "volatile_explosive", 30 ] ],
"components": [ [ [ "pipe_cpvc", 1 ] ], [ [ "fuse", 1 ] ] ]
},
{
"result": "homemade_bomb",
"type": "recipe",
@@ -968,7 +968,6 @@
"microwave",
"military_explosive_bomb",
"military_explosive_grenade",
"military_explosive_pipebomb",
"military_explosive_small_grenade",
"minifreezer",
"minifridge",