Skip to content

Commit

Permalink
Fix the shadow of the compromised capsule
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 6, 2023
1 parent b6b4de8 commit 4597e37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions mods/se-space-capsule-fast-travel/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ script.on_event("se--targeter", function(event)
name = "se-space-capsule-scorched",
position = event.cursor_position,
force = player.force,
-- raise_built = true, -- uncomment to create a vehicle too
raise_built = true, -- uncomment to create a vehicle too (uncommented for the shadow, did it have any side-effects?)
})

remote.call("space-exploration", "remote_view_stop", {player=player})
remote.call("jetpack", "stop_jetpack_immediate", {character=player.character})
remote.call("space-exploration", "remote_view_stop", {player = player})
remote.call("jetpack", "stop_jetpack_immediate", {character = player.character})
player.driving = false
player.teleport({event.cursor_position.x, event.cursor_position.y + 1.5}, player.surface)
player.teleport({event.cursor_position.x - 2, event.cursor_position.y}, player.surface)
-- player.driving = true -- having to exit the vehicle is not fast enough
player.character.direction = defines.direction.south -- look down away from the capsule ladder
-- player.character.direction = defines.direction.south -- look down away from the capsule ladder

-- if we force the player to enter and then exit, they're on the left side (same as all other vehicles)
-- player.driving = true
-- player.driving = false

-- container.order_deconstruction(player.force, player) -- a bit too quick, and i don't feel like complicating the mod with a delay

Expand Down
2 changes: 1 addition & 1 deletion mods/se-space-capsule-fast-travel/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "se-space-capsule-fast-travel",
"title": "Space Exploration - space capsule fast travel",
"description": "Allows you to emergency burn anywhere using the shortcut, pretty much a teleport that damages your capsule.",
"version": "1.0.4",
"version": "1.0.5",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down

0 comments on commit 4597e37

Please sign in to comment.