Files
GameJam2023/Player/Scorpio/Attacks/CutterShot.tscn
2023-09-10 15:07:13 -07:00

59 lines
2.4 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://cxnek5wgpxbft"]
[ext_resource type="Script" path="res://Player/Scorpio/Attacks/CutterShot.cs" id="1_inha4"]
[ext_resource type="Texture2D" uid="uid://cdryxdasvun4r" path="res://Textures/Projectiles/Projectile_Scorpio.png" id="2_tqxh6"]
[ext_resource type="AudioStream" uid="uid://ce40y3hln3twm" path="res://Audio/SFX/grass cutter.wav" id="2_u4aoe"]
[sub_resource type="Curve3D" id="Curve3D_i1cv2"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0.889019, 0.987915, -2.75022, 0, 0, 0, 0, 0, 0, 0.595381, 0.990112, -4.18814, 0, 0, 0, 0, 0, 0, -1.2854, 0.993652, -4.79623),
"tilts": PackedFloat32Array(0, 0, 0, 0)
}
point_count = 4
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
height = 8.481
radius = 0.304769
[node name="CutterShot" type="Node3D" groups=["Projectile"]]
[node name="Path3D" type="Path3D" parent="." node_paths=PackedStringArray("_sprite")]
top_level = true
curve = SubResource("Curve3D_i1cv2")
script = ExtResource("1_inha4")
_sprite = NodePath("PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
Cooldown = 0.7
_soundEffect = ExtResource("2_u4aoe")
_projectileSpeed = 4.0
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
transform = Transform3D(0.95152, 0.00128605, -0.30758, 1.16415e-10, 0.999991, 0.00418113, 0.307582, -0.00397844, 0.951511, 0, 1, 0)
loop = false
tilt_enabled = false
[node name="RigidBody3D" type="RigidBody3D" parent="Path3D/PathFollow3D"]
transform = Transform3D(1, 0, 2.98023e-08, 0, 1, 0, -2.98023e-08, 0, 1, 0, 0, 0)
collision_layer = 44
gravity_scale = 0.0
continuous_cd = true
max_contacts_reported = 100
contact_monitor = true
can_sleep = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Path3D/PathFollow3D/RigidBody3D"]
transform = Transform3D(0.999999, 0, 1.19209e-07, 0, 1, 0, -1.19209e-07, 0, 0.999999, 0, 0, 0)
shape = SubResource("CylinderShape3D_mgm2i")
[node name="Sprite3D" type="Sprite3D" parent="Path3D/PathFollow3D/RigidBody3D/CollisionShape3D"]
transform = Transform3D(0.156513, 0, 0.124514, 0, 0.2, 0, -0.124514, 0, 0.156513, 0, 0, 0)
pixel_size = 0.03
axis = 1
double_sided = false
texture = ExtResource("2_tqxh6")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_u4aoe")
autoplay = true
[connection signal="body_entered" from="Path3D/PathFollow3D/RigidBody3D" to="Path3D" method="OnProjectileHit"]