Improve nearby water recovery and camera prompts
Recover players on generated worlds to the nearest safe grass or sand surface. Use the active gameplay camera when positioning shop and storage prompts.
This commit is contained in:
parent
ae802493a0
commit
4575830857
10 changed files with 396 additions and 25 deletions
|
|
@ -49,6 +49,16 @@ func get_safe_respawn_points() -> Array[SafeRespawnPoint]:
|
|||
)
|
||||
|
||||
|
||||
func get_water_recovery_position(entry_position: Vector3) -> Vector3:
|
||||
if _active_region == null:
|
||||
return global_position
|
||||
var fallback_position := get_player_spawn_transform().origin
|
||||
return _active_region.get_water_recovery_position(
|
||||
entry_position,
|
||||
fallback_position,
|
||||
)
|
||||
|
||||
|
||||
func get_fishing_shop() -> FishingShopInteractionType:
|
||||
return _active_region.get_fishing_shop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue