The End?
This commit is contained in:
parent
77737e009e
commit
ae16a01820
5 changed files with 47 additions and 7 deletions
|
@ -10,15 +10,15 @@ const DeathParticles = preload("res://objects/enemy/death_particles_famira.tscn"
|
|||
|
||||
export var push_speed: float = 30.0
|
||||
export var chase_speed: float = 65.0
|
||||
export var breath_dps: float = 20.0
|
||||
export var breath_dps: float = 14.25
|
||||
export var breath_knockback: float = 16.0
|
||||
export var punch_damage: float = 8.0
|
||||
export var punch_damage: float = 5.25
|
||||
export var punch_knockback: float = 40.0
|
||||
export var hurting: bool = false
|
||||
export var hp: float = 100.0
|
||||
export var sg2083_beam_dps: float = 10.0
|
||||
export var sg2083_path: NodePath
|
||||
export var defense: float = 0.6
|
||||
export var defense: float = 0.45
|
||||
export var credits: bool = false
|
||||
|
||||
|
||||
|
@ -140,7 +140,7 @@ func _on_Shooting_state_physics_processing(delta) -> void:
|
|||
if sg2083.has_method("hurt"):
|
||||
var distance := shoot_range_cast.to_local(shoot_range_cast.get_collision_point()).x
|
||||
var weight := inverse_lerp(shoot_range_cast.cast_to.x, 0.0, distance)
|
||||
if !Audio.ac_climb.is_playing():
|
||||
if !Audio.ac_climb.is_playing() && sg2083.state != sg2083.State.DUCK:
|
||||
Audio.play_sound(Audio.a_critical_heat,Audio.ac_climb)
|
||||
sg2083.hurt(breath_dps * weight * delta, true)
|
||||
sg2083.knock_back(breath_knockback * weight * delta, true)
|
||||
|
@ -148,4 +148,5 @@ func _on_Shooting_state_physics_processing(delta) -> void:
|
|||
|
||||
func _on_Hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group("hurt_famira"):
|
||||
hurt(area.damage)
|
||||
area.queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue