quick tweaks
This commit is contained in:
@@ -11,7 +11,7 @@ config_version=5
|
||||
[application]
|
||||
|
||||
config/name="First Person Test"
|
||||
run/main_scene="res://scenes/test_level_2v2.tscn"
|
||||
run/main_scene="res://scenes/enemy_working_scene.tscn"
|
||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ func _process(delta):
|
||||
focus_dist = camera.global_position.distance_to(target.global_position)
|
||||
else:
|
||||
focus_dist = 10.0
|
||||
camera.attributes.dof_blur_far_distance = focus_dist + 7
|
||||
camera.attributes.dof_blur_far_distance = focus_dist + 8
|
||||
camera.attributes.dof_blur_near_distance = focus_dist - 2
|
||||
|
||||
if target == null:
|
||||
|
||||
@@ -77,17 +77,16 @@ func _ready():
|
||||
|
||||
func _process(delta):
|
||||
|
||||
#Sightline
|
||||
if turret_look_next.is_colliding() and turret_look_next.get_collider().is_in_group("player"):
|
||||
player_in_view = true
|
||||
player_last_seen = turret_look_next.get_collider().global_position
|
||||
|
||||
# Navigation
|
||||
if !knocked:
|
||||
if hive_velocity:
|
||||
velocity = hive_velocity
|
||||
|
||||
if !stunned:
|
||||
#Sightline
|
||||
if turret_look_next.is_colliding() and turret_look_next.get_collider().is_in_group("player"):
|
||||
player_in_view = true
|
||||
player_last_seen = turret_look_next.get_collider().global_position
|
||||
if player != null:
|
||||
spider_look_next.look_at(Vector3(player.global_position.x, 0, player.global_position.z), Vector3.UP)
|
||||
body.rotation.y = lerp(body.rotation.y, spider_look_next.rotation.y, delta * 1)
|
||||
|
||||
Reference in New Issue
Block a user