AI has better detection, committing before a larger rework

This commit is contained in:
derek
2025-04-24 15:22:30 -05:00
parent 53ce4e401f
commit 9be895e89f
19 changed files with 240 additions and 48 deletions

View File

@@ -11,11 +11,13 @@ var last_enemy : bool = false
@export var max_ammo = 10
@export var loot_amount = 2
@export var nav_agent : NavigationAgent3D
@export var visibility_areas : Array[Area3D]
@export var line_of_sight_ray : RayCast3D
@export_enum("Enemy", "Trap") var enemy_type: int
@export var bullet : Resource
@export var casing : Resource
@export var bullet_speed = 150
@export var bullet_speed = 10
@export var bullet_drop = .1
@export var random_spread_amt = .01
@export var bullet_damage = 1
@@ -74,7 +76,9 @@ var player_last_seen
var knocked = false
var stunned = false
var health
var turret_current_moving_speed
var point_of_interest
var character_follow
func _ready():
health = start_health