reticle moves when firing, stunned enemies have stars now

This commit is contained in:
derek
2024-12-13 12:05:52 -06:00
parent b6a9e9a112
commit 9bb5332ba6
30 changed files with 629 additions and 84 deletions

View File

@@ -48,6 +48,7 @@ const MAX_AV = 10
@onready var turret_look = $TurretLook
@onready var smoke: GPUParticles3D = $TurretLook/Turret/Smoke
@onready var smoke_2: GPUParticles3D = $TurretLook/Turret/Smoke2
@onready var stunned_stars: Node3D = $body/StunnedStars
@onready var outline_meshes = [$TurretLook/Turret/turretoutline,
$body/leg1/foot1/foot1outline,
$body/leg1/leg1outline,
@@ -92,6 +93,7 @@ func _process(delta):
velocity = hive_velocity
if !stunned:
stunned_stars.visible = false
#Sightline
if turret_look_next.is_colliding() and turret_look_next.get_collider().is_in_group("player"):
player_in_view = true
@@ -104,6 +106,7 @@ func _process(delta):
else:
body.rotation.y = lerp(body.rotation.y, body.rotation.y + 10, delta * .1)
turret_look.rotation.y = lerp(turret_look.rotation.y,turret_look.rotation.y - 10,delta * .5)
stunned_stars.visible = true
#apply gravity
if !is_on_floor():