WIP: Spawn bullets on the server and sync them
This commit is contained in:
@ -1,6 +1,16 @@
|
||||
extends Node
|
||||
|
||||
var players = {}
|
||||
|
||||
#func get_current_player_placeholder() -> Node3D:
|
||||
#var id = str(multiplayer.get_unique_id())
|
||||
#print(id)
|
||||
#var root: Window = get_tree().get_root()
|
||||
#var placeholder = root.find_child("_" + id)
|
||||
#print(placeholder)
|
||||
#return placeholder
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
@ -159,8 +159,8 @@ func _rotate_camera(sens_mod: float = 1.0) -> void:
|
||||
rotation.y -= look_dir.x * camera_sens * sens_mod
|
||||
first_view_camera_mount.rotation.x = clamp(first_view_camera_mount.rotation.x - look_dir.y * camera_sens * sens_mod, -1.5, 1.5)
|
||||
|
||||
@onready var health_indicator = $FirstPersonCameraMount/HUD/HealthIndicator
|
||||
@onready var fps_indicator = $FirstPersonCameraMount/HUD/FPS
|
||||
@onready var health_indicator = $FirstPersonCameraMount/Camera/SubViewportContainer/SubViewport/HUD/HealthIndicator
|
||||
@onready var fps_indicator = $FirstPersonCameraMount/Camera/SubViewportContainer/SubViewport/HUD/FPS
|
||||
func _process(delta: float) -> void:
|
||||
health_indicator.text = str(health)
|
||||
fps_indicator.text = str(Engine.get_frames_per_second())
|
||||
|
Reference in New Issue
Block a user