diff --git a/scripts/heroes/5_portal.gd b/scripts/heroes/5_portal.gd index 79e9d94..9b4f547 100644 --- a/scripts/heroes/5_portal.gd +++ b/scripts/heroes/5_portal.gd @@ -2,6 +2,7 @@ extends "res://scripts/placeable.gd" var portal_charge = -5 var other +var index var enemy_colors = [ Color("#d14013"), @@ -24,6 +25,8 @@ func _exit_tree(): other.queue_free() func init(maker): + + index = maker.placement.placed.size() # If index is odd, we're the second (1, 3...), if even, first (0, 4...) var second = index % 2 != 0 diff --git a/scripts/player.gd b/scripts/player.gd index 3208b4a..628a220 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -54,6 +54,7 @@ func _ready(): if is_network_master(): get_node("TPCamera/Camera/Ray").add_exception(self) get_node(tp_camera).set_enabled(true) + get_node(tp_camera).cam_view_sensitivity = 0.05 spawn() if "is_ai" in player_info and player_info.is_ai and not ai_instanced: add_child(preload("res://scenes/ai.tscn").instance())