FANDOM


Hey all,

I was tinkering around with the pages for throwable explosives (Frag Grenade, Dynamite, and the like), and I wrote up a couple Mathematica scripts to help make visualizations like the graph I added. I don't know if they will be useful to anyone, as they are very basic, but I'm providing them here just in case! They are very customizable (as far as size, cropping, color palette) so I find them quite useful.

EDIT: Despite the title this info is relevant for explosives of all kinds (not just throwables), although I haven't covered all of the types of explosives yet. So far these are accurate for Frag Grenades, Dynamite, both rocket launchers, and HE rounds. Grenade launchers are similar to the first category (i.e. rocket launchers, grenades) but have a lesser range.



Grenades, RPGs

Dynamite falloff

one of the graphs

Dynamite falloff visual

a less useful graph (in my opinion) that is nonetheless somewhat prettier

For frag grenades, rocket launchers, dynamite: (anything with exp = 0.1, range = 5.0 meters)


dmg[dist_] := Max[1 - (Abs[dist]/5.0), 0]^0.1

ReliefPlot[Table[dmg[EuclideanDistance[{i, j}, {0, 0}]], {i, -10, 10, 0.05}, {j, -10, 10, 0.05}], ColorFunction -> "TemperatureMap"]

Plot[Piecewise[{{dmg[x], Abs[x] < 5}, {0, Abs[x] >= 5}}], {x, -10, 10}, AxesLabel -> {"Distance (m)", "Damage Multiplier"}]

HE Rounds, Explosive arrows, Explosive darts

He round falloff

HE Round damage falloff

He round falloff visual

alternative view of HE falloff

For HE rounds:


dmg2[dist_] := Max[1 - (Abs[dist]/2.0), 0]^0.5

ReliefPlot[Table[dmg2[EuclideanDistance[{i, j}, {0, 0}]], {i, -10, 10, 0.05}, {j, -10, 10, 0.05}], ColorFunction -> "TemperatureMap"]

Plot[Piecewise[{{dmg2[x], Abs[x] < 2}, {0, Abs[x] >= 2}}], {x, -10, 10}, AxesLabel -> {"Distance (m)", "Damage Multiplier"}]

Grenade Launchers

Grenade launcher falloff visual

grenade launcher falloff

Grenade launcher falloff

grenade launcher falloff

For grenade launchers:


dmg[dist_] := Max[1 - (Abs[dist]/3.5), 0]^0.1

ReliefPlot[Table[dmg[EuclideanDistance[{i, j}, {0, 0}]], {i, -10, 10, 0.05}, {j, -10, 10, 0.05}], ColorFunction -> "TemperatureMap"]

Plot[Piecewise[{{dmg[x], Abs[x] < 3.5}, {0, Abs[x] >= 3.5}}], {x, -10, 10}, AxesLabel -> {"Distance (m)", "Damage Multiplier"}]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.