Noxys Swimming

by _Noxy_

Allows you to "Swim" through water.

Content
1 year, 6 months ago
0.16 - 2.0
9.14K
Transportation

b No body when dying on water

a year ago

All items are lost if you die in water, making the main mechanic of this mod too risky to engage with

a year ago
(updated a year ago)

Just checked the code, this is responsible.

script.on_event(defines.events.on_post_entity_died, function(event)
for _, v in pairs(event.corpses) do
if ripple_at_position(v.position, v.surface) then
v.destroy()
end
end
end)

a year ago
(updated a year ago)

There should be a check for if it's a player corpse

script.on_event(defines.events.on_post_entity_died, function(event)
for _, v in pairs(event.corpses) do
if v.name ~= "character-corpse" and ripple_at_position(v.position, v.surface) then
v.destroy()
end
end
end)

New response