Idk
This commit is contained in:
parent
792465a33c
commit
bd16f01192
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ func _ready() -> void:
|
|||
|
||||
func on_body_entered(body: Node3D):
|
||||
if body is DroppableWeapon:
|
||||
if weapon_system.can_add(body.slot) == false:
|
||||
if weapon_system.can_add(body.slot) == false or (body.team != Session.TEAMS.UNASSIGNED and get_parent().team != body.team):
|
||||
return
|
||||
weapon_spawner.spawn({
|
||||
"ammo": body.weapon.ammo,
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ func physics_update(delta: float) -> void:
|
|||
if direction:
|
||||
if abs(player.velocity.x + direction.x * acceleration * delta) < abs(modified_max_speed * direction.x):
|
||||
player.velocity.x += direction.x * acceleration * delta
|
||||
if abs(player.velocity.y + direction.y * acceleration * delta) < abs(modified_max_speed * direction.y):
|
||||
if abs(player.velocity.z + direction.z * acceleration * delta) < abs(modified_max_speed * direction.z):
|
||||
player.velocity.z += direction.z * acceleration * delta
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue