Noxys Swimming

by _Noxy_

Allows you to "Swim" through water.

Content
6 months ago
0.16 - 2.0
7.87K
Transportation

b No body when dying on water

24 days ago

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

23 days ago
(updated 23 days 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)

23 days ago
(updated 23 days 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