mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-15 16:34:48 +00:00
♻️ systems refactoring
This commit is contained in:
parent
5ab387571e
commit
69c8b65093
17 changed files with 186 additions and 168 deletions
|
|
@ -35,7 +35,7 @@ func trigger() -> void:
|
|||
owner.match_participant_component
|
||||
)
|
||||
# add to owner of player for now
|
||||
Game.mode.add_child(projectile)
|
||||
Global.type.add_child(projectile)
|
||||
projectile.shape_cast.add_exception(owner)
|
||||
|
||||
func _on_visibility_changed() -> void:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ func trigger() -> void:
|
|||
owner.match_participant_component
|
||||
)
|
||||
# add to owner of player for now
|
||||
Game.mode.add_child(projectile)
|
||||
Global.type.add_child(projectile)
|
||||
|
||||
func _on_visibility_changed() -> void:
|
||||
if self.visible:
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ script = ExtResource("2_38xn3")
|
|||
anim_player = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="ProjectileSpawner" type="Node3D" parent="." index="0"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.266945)
|
||||
script = ExtResource("4_5h5sw")
|
||||
PROJECTILE = ExtResource("3_rg5nk")
|
||||
inheritance = 0.75
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ func trigger() -> void:
|
|||
owner.match_participant_component
|
||||
)
|
||||
# add to owner of player for now
|
||||
Game.mode.add_child(projectile)
|
||||
Global.type.add_child(projectile)
|
||||
# ensure projectile does not collide with owner
|
||||
var collider : ShapeCast3D = projectile.shape_cast
|
||||
collider.add_exception(owner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue