summaryrefslogtreecommitdiffstats
path: root/assets/weapons/goo_gun/Bullet.tscn
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-07-22 05:26:34 -0400
committerMalfurious <m@lfurio.us>2022-07-22 05:26:34 -0400
commit44e739bb05542d1249ccf8388bd15b3f0b052e0c (patch)
tree42a67300e8e2ebcbd9868e6af1f7e992b285c3c6 /assets/weapons/goo_gun/Bullet.tscn
parent4a9ff23bb13bfe5c182222fdb4314afc4f5c1fa8 (diff)
parentea3ecd73dab3e0e06bb145b38e8258b9dd02abcb (diff)
downloadproject-s-44e739bb05542d1249ccf8388bd15b3f0b052e0c.tar.gz
project-s-44e739bb05542d1249ccf8388bd15b3f0b052e0c.zip
Merge branch 'weapon-behavior'
Implements the basics for the Goo Gun primary fire * weapon-behavior: Despawn bullets on collision with another physics body Tweak Goo Gun bullet physics to better mimic reference weapon Implement Goo Gun primary fire Add bullet / ink pellet object for Goo Gun
Diffstat (limited to '')
-rw-r--r--assets/weapons/goo_gun/Bullet.tscn26
1 files changed, 26 insertions, 0 deletions
diff --git a/assets/weapons/goo_gun/Bullet.tscn b/assets/weapons/goo_gun/Bullet.tscn
new file mode 100644
index 0000000..69ba3b6
--- /dev/null
+++ b/assets/weapons/goo_gun/Bullet.tscn
@@ -0,0 +1,26 @@
+[gd_scene load_steps=5 format=2]
+
+[ext_resource path="res://assets/characters/base_character/friendly_material.tres" type="Material" id=1]
+[ext_resource path="res://assets/weapons/goo_gun/Bullet.gd" type="Script" id=2]
+
+[sub_resource type="SphereMesh" id=1]
+material = ExtResource( 1 )
+
+[sub_resource type="SphereShape" id=2]
+
+[node name="Bullet" type="RigidBody"]
+transform = Transform( 0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0 )
+gravity_scale = 5.0
+contacts_reported = 1
+contact_monitor = true
+linear_damp = 2.0
+script = ExtResource( 2 )
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+mesh = SubResource( 1 )
+material/0 = null
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+shape = SubResource( 2 )
+
+[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]