tweaks to mac 10 and gun look control

This commit is contained in:
derek
2025-04-10 10:53:41 -05:00
parent 5d116b1a20
commit 65677d8d3a
4 changed files with 6 additions and 5 deletions

View File

@@ -41,4 +41,4 @@ func load_leaderboard_data():
print("Failed to load document from Firebase")
func get_leaderboard_name():
return "leaderboard_" + str(GameGlobals.all_user_leaderboards[GameGlobals.user_id][GameGlobals.last_leaderboard_id])
return str(GameGlobals.all_user_leaderboards[GameGlobals.user_id][GameGlobals.last_leaderboard_id]) + "_leaderboard"

View File

@@ -697,8 +697,9 @@ func weapon_tilt(input_x, delta):
func weapon_sway(delta):
#aim gun at center screen
if !gun_ray.is_colliding():
gun.look_at(gun_look_target.global_position)
if gun != null:
if !gun_ray.is_colliding():
gun.look_at(gun_look_target.global_position)
#apply sway
if !ads: