WIP: Add basic ragdoll

This commit is contained in:
2025-01-27 14:51:05 +01:00
parent 66cbb87eaa
commit 642d84c0ad
7 changed files with 350 additions and 24 deletions

View File

@ -28,7 +28,6 @@ func _ready() -> void:
var bullet_amount: int = 0
func spawn_bullet(position):
print("spawning a bullet")
var node: Node3D = ResourceLoader.load("res://scenes/weapon/bullet.tscn").instantiate()
node.position = position.global_position
node.transform.basis = position.global_transform.basis

View File

@ -12,7 +12,6 @@ func _process(delta: float) -> void:
var root := get_tree().get_root()
var id := multiplayer.get_unique_id()
var player_data = GameServerManager.get_player_health.rpc_id(1, id)
print(player_data)
health_indicator.text = str(player_data["health"])
pass

View File

@ -13,7 +13,6 @@ func _ready() -> void:
func _process(delta: float) -> void:
var blue := $ChooseTeam/Blue
var red := $ChooseTeam/Read
if
if raycast.is_colliding():
var collider = raycast.get_collider()
if collider and collider.name == target_node_name: