You've already forked FactorioScenarioMultiplayerSpawn
mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-10-08 22:52:03 +02:00
Update changelog and add a simple message to host force if your crashed ship is destroyed.
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.1.24
|
||||
Date: ????
|
||||
Changes:
|
||||
Date: 2025-05-16
|
||||
Bugfixes:
|
||||
- Fix that player's couldn't access their own crash site ship if friendly forces was disabled. The crashed ship is now on the host's force.
|
||||
Info:
|
||||
- Added a simple crashed ship was destroyed message (by request) only if the ship dies and friendly forces is disabled.
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.1.23
|
||||
Date: 2025-01-19
|
||||
|
@@ -418,6 +418,14 @@ script.on_event(defines.events.on_entity_damaged, function(event)
|
||||
end,
|
||||
{{filter="type", type = "unit-spawner"}})
|
||||
|
||||
-- Notify player if their crash-site spaceship is dead, only for PVP
|
||||
script.on_event(defines.events.on_entity_died, function(event)
|
||||
if storage.ocfg.gameplay.enable_friendly_teams then return end
|
||||
local force = event.entity.force ---@type LuaForce
|
||||
CompatSend(force, "[color=red]Warning:[/color] Your crashed ship was destroyed!")
|
||||
end,
|
||||
{{filter = "name", name = "crash-site-spaceship"}})
|
||||
|
||||
----------------------------------------
|
||||
-- Gui Events
|
||||
----------------------------------------
|
||||
|
Reference in New Issue
Block a user