goodbye collisions
This commit is contained in:
@@ -7,6 +7,7 @@ public partial class CutterShot : Projectile
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
_sprite.RotateY(25);
|
||||
if (!IsQueuedForDeletion())
|
||||
_sprite.RotateY(25);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cxnek5wgpxbft"]
|
||||
[gd_scene load_steps=7 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"]
|
||||
[ext_resource type="AudioStream" uid="uid://cat08h84wm5gm" path="res://Audio/SFX/ominous.wav" id="3_32sc2"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_5hmi4"]
|
||||
_data = {
|
||||
@@ -14,24 +15,27 @@ point_count = 4
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
|
||||
height = 8.481
|
||||
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_sprite")]
|
||||
script = ExtResource("1_inha4")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
|
||||
Cooldown = 0.3
|
||||
_projectileSpeed = 3.0
|
||||
_soundEffect = ExtResource("2_u4aoe")
|
||||
[node name="CutterShot" type="Node3D"]
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
[node name="Path3D" type="Path3D" parent="." node_paths=PackedStringArray("_sprite", "_hitBox")]
|
||||
top_level = true
|
||||
curve = SubResource("Curve3D_5hmi4")
|
||||
script = ExtResource("1_inha4")
|
||||
_sprite = NodePath("PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
|
||||
Cooldown = 0.7
|
||||
_projectileSpeed = 4.0
|
||||
_soundEffect = ExtResource("2_u4aoe")
|
||||
_onHitSfx = ExtResource("3_32sc2")
|
||||
_hitBox = NodePath("PathFollow3D/RigidBody3D")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
|
||||
transform = Transform3D(-0.782564, 0, 0.622568, 0, 1, 0, -0.622568, 0, -0.782564, 0, 1, 0)
|
||||
transform = Transform3D(0.782564, 0, -0.622568, 0, 1, 0, 0.622568, 0, 0.782564, 0, 1, 0)
|
||||
loop = false
|
||||
tilt_enabled = false
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="Path3D/PathFollow3D"]
|
||||
collision_layer = 2
|
||||
transform = Transform3D(1, 0, 2.98023e-08, 0, 1, 0, -2.98023e-08, 0, 1, 0, 0, 0)
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
@@ -49,3 +53,5 @@ pixel_size = 0.03
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("2_tqxh6")
|
||||
|
||||
[connection signal="body_entered" from="Path3D/PathFollow3D/RigidBody3D" to="Path3D" method="OnProjectileHit"]
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cwt4rum7tvyvb"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cwt4rum7tvyvb"]
|
||||
|
||||
[ext_resource type="Script" path="res://Player/Scorpio/Attacks/CutterShot.cs" id="1_7xtlh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdryxdasvun4r" path="res://Textures/Projectiles/Projectile_Scorpio.png" id="2_6mabu"]
|
||||
[ext_resource type="AudioStream" uid="uid://ce40y3hln3twm" path="res://Audio/SFX/grass cutter.wav" id="2_qmvk7"]
|
||||
[ext_resource type="AudioStream" uid="uid://cat08h84wm5gm" path="res://Audio/SFX/ominous.wav" id="3_v1t2f"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_5hmi4"]
|
||||
_data = {
|
||||
@@ -14,24 +15,27 @@ point_count = 4
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
|
||||
height = 8.481
|
||||
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_sprite")]
|
||||
script = ExtResource("1_7xtlh")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
|
||||
Cooldown = 0.3
|
||||
_projectileSpeed = 3.0
|
||||
_soundEffect = ExtResource("2_qmvk7")
|
||||
[node name="CutterAlt" type="Node3D"]
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
[node name="CutterShot" type="Path3D" parent="." node_paths=PackedStringArray("_sprite", "_hitBox")]
|
||||
top_level = true
|
||||
curve = SubResource("Curve3D_5hmi4")
|
||||
script = ExtResource("1_7xtlh")
|
||||
_sprite = NodePath("PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
|
||||
Cooldown = 0.7
|
||||
_projectileSpeed = 4.0
|
||||
_soundEffect = ExtResource("2_qmvk7")
|
||||
_onHitSfx = ExtResource("3_v1t2f")
|
||||
_hitBox = NodePath("PathFollow3D/RigidBody3D")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
|
||||
transform = Transform3D(-0.782564, 0, -0.622568, 0, 1, 0, 0.622568, 0, -0.782564, 0, 1, 0)
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="CutterShot"]
|
||||
transform = Transform3D(0.782564, 0, 0.622568, 0, 1, 0, -0.622568, 0, 0.782564, 0, 1, 0)
|
||||
loop = false
|
||||
tilt_enabled = false
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="Path3D/PathFollow3D"]
|
||||
collision_layer = 2
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="CutterShot/PathFollow3D"]
|
||||
transform = Transform3D(1, 0, -2.98023e-08, 0, 1, 0, 2.98023e-08, 0, 1, 0, 0, 0)
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
@@ -39,13 +43,15 @@ max_contacts_reported = 100
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Path3D/PathFollow3D/RigidBody3D"]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CutterShot/PathFollow3D/RigidBody3D"]
|
||||
transform = Transform3D(0.999999, 0, 5.96046e-08, 0, 1, 0, -5.96046e-08, 0, 0.999999, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_mgm2i")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Path3D/PathFollow3D/RigidBody3D/CollisionShape3D"]
|
||||
[node name="Sprite3D" type="Sprite3D" parent="CutterShot/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_6mabu")
|
||||
|
||||
[connection signal="body_entered" from="CutterShot/PathFollow3D/RigidBody3D" to="CutterShot" method="OnProjectileHit"]
|
||||
|
||||
@@ -13,7 +13,8 @@ size = Vector3(0.822782, 0.853857, 0.80108)
|
||||
|
||||
[node name="Scorpio" type="CharacterBody3D" groups=["Player"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55696, 0)
|
||||
collision_layer = 9
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
motion_mode = 1
|
||||
slide_on_ceiling = false
|
||||
script = ExtResource("1_gw30u")
|
||||
@@ -24,8 +25,8 @@ _altFireProjectile = ExtResource("3_tw078")
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496155, 0)
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="Pivot"]
|
||||
collision_layer = 16
|
||||
collision_mask = 4100
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pivot/Area3D"]
|
||||
shape = SubResource("BoxShape3D_wqp0e")
|
||||
|
||||
Reference in New Issue
Block a user