feat: implement plasma gun and rocket swarm mechanics along with various 3D asset imports

This commit is contained in:
DottsGit
2026-06-07 18:23:47 -04:00
parent c9f082ebba
commit 4bb867a6f2
50 changed files with 5372 additions and 437 deletions
+12 -1
View File
@@ -58,7 +58,18 @@ func _setup_viewmodel_viewport() -> void:
func _process(_delta: float) -> void:
if is_instance_valid(vm_camera) and is_instance_valid(camera):
vm_camera.global_transform = camera.global_transform
vm_camera.fov = camera.fov
var target_fov = 70.0
if is_instance_valid(player) and "velocity" in player:
var hspeed = Vector2(player.velocity.x, player.velocity.z).length()
if hspeed <= 11.0:
var speed_factor = hspeed / 11.0
target_fov = lerpf(70.0, 72.0, speed_factor)
else:
var over_speed_factor = clampf((hspeed - 11.0) / 19.0, 0.0, 1.0) # maxes out at 30 m/s
target_fov = lerpf(72.0, 80.0, over_speed_factor)
vm_camera.fov = lerpf(vm_camera.fov, target_fov, 10.0 * _delta)
func _build_loadout() -> void:
var is_auth = false