tweak to hud wobble
This commit is contained in:
@@ -598,7 +598,7 @@ func aim_down_sights(delta):
|
||||
func hud_wobble(delta):
|
||||
var viewport_height_adj = (get_viewport().size.y/1080)
|
||||
|
||||
var HUD_WOBBLE_MAX : float = 20 * viewport_height_adj
|
||||
var HUD_WOBBLE_MAX : float = 40 * viewport_height_adj
|
||||
var MOUSE_AMT = 10 * viewport_height_adj
|
||||
var VELOCITY_AMT = 100 * viewport_height_adj
|
||||
var HUD_SPEED = 10 * viewport_height_adj
|
||||
@@ -784,6 +784,9 @@ func hit(damage, fired_by, target_type):
|
||||
level_control.last_hit = fired_by
|
||||
level_control.target_type = target_type
|
||||
recoil.add_recoil(Vector3(.5,.1,.1),10,10)
|
||||
if held_item != null:
|
||||
held_item.linear_velocity.y += 10
|
||||
release_moveable()
|
||||
hurt_audio.play()
|
||||
health_indicator.color = Color(0.471, 0, 0, .25)
|
||||
await get_tree().create_timer(.15).timeout
|
||||
|
||||
Reference in New Issue
Block a user