Noxys Swimming

by _Noxy_

Allows you to "Swim" through water.

Content
6 months ago
0.16 - 2.0
7.83K
Transportation

b No body when dying on water

2 days ago

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

a day ago
(updated a day 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 day ago
(updated a day 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