Added per enemy taunts and other tweaks

This commit is contained in:
derek
2024-11-07 15:03:19 -06:00
parent ef1ab5dccb
commit af72a0678a
13 changed files with 66 additions and 57 deletions

View File

@@ -7,6 +7,7 @@ extends Node3D
@export var hitscan_enabled : bool = false
@export var fov_zoom_amt = .98
@export var recoil_amount : Vector3 = Vector3(.2,.05,.05)
@export var kick_amount : float = .1
@export var max_ammo = 15
@export var start_mags = 3
@export var bullet_damage = 1
@@ -91,13 +92,12 @@ func shoot(delta):
audio_fire.pitch_scale = 1 + rng.randf_range(-fire_pitch_scale_amt,fire_pitch_scale_amt)
audio_fire.play()
anim_player.play("shoot")
bullet_fire()
hitscan_fire()
spawn_casing()
player.recoil.add_recoil(Vector3(0,recoil_amount.y,recoil_amount.z),10,10)
player.recoil.add_gun_recoil(recoil_amount.x)
#player.velocity += player.bullet_ray.global_basis * Vector3(0,0, kick_amount)
if fire_mode != 0:
cycle_count -= 1