made tracker gun
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://717hhehp83k8"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://717hhehp83k8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/shotgun_pellet.gd" id="1_1v1ju"]
|
||||
|
||||
@@ -19,7 +19,16 @@ emission_energy_multiplier = 20.0
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_55xw1"]
|
||||
radius = 0.05
|
||||
|
||||
[sub_resource type="Animation" id="Animation_s2rms"]
|
||||
resource_name = "pellet_glow"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2bjxd"]
|
||||
_data = {
|
||||
"pellet_glow": SubResource("Animation_s2rms")
|
||||
}
|
||||
|
||||
[node name="ShotgunPellet" type="RigidBody3D" groups=["pellet", "spawned"]]
|
||||
visible = false
|
||||
collision_layer = 160
|
||||
collision_mask = 237
|
||||
mass = 0.01
|
||||
@@ -28,6 +37,7 @@ continuous_cd = true
|
||||
contact_monitor = true
|
||||
max_contacts_reported = 1
|
||||
script = ExtResource("1_1v1ju")
|
||||
max_bounces = 20
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("SphereMesh_5okb1")
|
||||
@@ -38,6 +48,13 @@ shape = SubResource("SphereShape3D_55xw1")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_2bjxd")
|
||||
}
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user