45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://rlxnnw4yay7e"]
|
|
|
|
[ext_resource type="Script" path="res://Enemies/Attacks/EnemyBullet.cs" id="1_rv13r"]
|
|
[ext_resource type="Texture2D" uid="uid://dd71tdgrgic46" path="res://Textures/Projectiles/LB ORB.png" id="2_6l2aj"]
|
|
[ext_resource type="AudioStream" uid="uid://cfj82os5p8i4p" path="res://Audio/SFX/shooting.wav" id="2_q6wdf"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_e4v7f"]
|
|
height = 2.31583
|
|
radius = 0.154574
|
|
|
|
[node name="TestBullet" type="Node3D"]
|
|
script = ExtResource("1_rv13r")
|
|
Cooldown = 3.0
|
|
_soundEffect = ExtResource("2_q6wdf")
|
|
|
|
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 3
|
|
gravity_scale = 0.0
|
|
custom_integrator = true
|
|
continuous_cd = true
|
|
max_contacts_reported = 10
|
|
contact_monitor = true
|
|
can_sleep = false
|
|
lock_rotation = true
|
|
freeze = true
|
|
freeze_mode = 1
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
|
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0.0111055, 1.02602, 0)
|
|
shape = SubResource("CylinderShape3D_e4v7f")
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D/CollisionShape3D"]
|
|
transform = Transform3D(0.08, 0, 0, 0, 0.08, 0, 0, 0, 0.08, -0.390424, 0, 0.436329)
|
|
centered = false
|
|
axis = 1
|
|
texture = ExtResource("2_6l2aj")
|
|
|
|
[node name="TTL" type="Timer" parent="."]
|
|
process_callback = 0
|
|
wait_time = 0.8
|
|
autostart = true
|
|
|
|
[connection signal="body_entered" from="RigidBody3D" to="." method="OnProjectileHit"]
|