reticle moves when firing, stunned enemies have stars now
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user