Fix issues
This commit is contained in:
@@ -12,12 +12,11 @@ point_count = 4
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
|
||||
height = 8.481
|
||||
radius = 0.3
|
||||
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_pathFollow", "_sprite")]
|
||||
script = ExtResource("1_inha4")
|
||||
_pathFollow = NodePath("Path3D/PathFollow3D")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/Area3D/Sprite3D")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/RigidBody3D/Sprite3D")
|
||||
Cooldown = 0.3
|
||||
_projectileSpeed = 0.1
|
||||
|
||||
@@ -26,20 +25,32 @@ top_level = true
|
||||
curve = SubResource("Curve3D_5hmi4")
|
||||
|
||||
[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="Area3D" type="Area3D" parent="Path3D/PathFollow3D"]
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="Path3D/PathFollow3D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
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/Area3D"]
|
||||
transform = Transform3D(0.999999, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, 0.999999, 0, 0, 0)
|
||||
[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/Area3D"]
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Path3D/PathFollow3D/RigidBody3D"]
|
||||
transform = Transform3D(0.156513, 0, 0.124514, 0, 0.2, 0, -0.124514, 0, 0.156513, 0, 0, 0)
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("1_v8p6h")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 0.8
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
@@ -12,34 +12,45 @@ point_count = 4
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
|
||||
height = 8.481
|
||||
radius = 0.3
|
||||
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_pathFollow", "_sprite")]
|
||||
script = ExtResource("1_7xtlh")
|
||||
_pathFollow = NodePath("Path3D/PathFollow3D")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/Area3D/Sprite3D")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/RigidBody3D/Sprite3D")
|
||||
Cooldown = 0.3
|
||||
_projectileSpeed = 0.1
|
||||
_projectileSpeed = 3.0
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
top_level = true
|
||||
curve = SubResource("Curve3D_5hmi4")
|
||||
|
||||
[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="Area3D" type="Area3D" parent="Path3D/PathFollow3D"]
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="Path3D/PathFollow3D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
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/Area3D"]
|
||||
transform = Transform3D(0.999999, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, 0.999999, 0, 0, 0)
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Path3D/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/Area3D"]
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Path3D/PathFollow3D/RigidBody3D"]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0, 0)
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("2_a0jul")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 0.8
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
@@ -15,7 +15,6 @@ radius = 0.440093
|
||||
[node name="TestBullet" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.538645, 0)
|
||||
script = ExtResource("1_rv13r")
|
||||
Cooldown = null
|
||||
_projectileSpeed = 20.0
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
|
||||
BIN
Scenes/Weapons/LB HEDRON.png
Normal file
BIN
Scenes/Weapons/LB HEDRON.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
35
Scenes/Weapons/LB HEDRON.png.import
Normal file
35
Scenes/Weapons/LB HEDRON.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://uatt2w2jsoan"
|
||||
path.s3tc="res://.godot/imported/LB HEDRON.png-f20a599f24e3e8cd36a397be3e9d6d32.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Weapons/LB HEDRON.png"
|
||||
dest_files=["res://.godot/imported/LB HEDRON.png-f20a599f24e3e8cd36a397be3e9d6d32.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
@@ -21,7 +21,7 @@ _projectileSpeed = 15.0
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(0.99863, 0, -0.052336, 0, 1, 0, 0.052336, 0, 0.99863, -0.508974, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 32
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
@@ -38,7 +38,7 @@ texture = ExtResource("2_wjqcr")
|
||||
[node name="RigidBody3D2" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(0.99863, 0, 0.052336, 0, 1, 0, -0.052336, 0, 0.99863, 0.647, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 32
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
@@ -55,7 +55,7 @@ texture = ExtResource("2_wjqcr")
|
||||
[node name="RigidBody3D3" type="RigidBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.592052)
|
||||
collision_layer = 34
|
||||
collision_mask = 32
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
|
||||
27
Scenes/Weapons/Single.tscn
Normal file
27
Scenes/Weapons/Single.tscn
Normal file
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cyn2wn6ffsnu7"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/SingleShot.cs" id="1_18l5k"]
|
||||
[ext_resource type="Texture2D" uid="uid://uatt2w2jsoan" path="res://Scenes/Weapons/LB HEDRON.png" id="1_nmsa0"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_njobr"]
|
||||
radius = 0.3
|
||||
|
||||
[node name="Single" type="Node3D"]
|
||||
script = ExtResource("1_18l5k")
|
||||
Cooldown = 0.3
|
||||
_projectileSpeed = 10.0
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.644825, 0)
|
||||
shape = SubResource("CylinderShape3D_njobr")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(0.07, 0, 0, 0, 0.07, 0, 0, 0, 0.07, -0.244938, 1.29552, 0.266473)
|
||||
centered = false
|
||||
axis = 1
|
||||
texture = ExtResource("1_nmsa0")
|
||||
@@ -1,22 +1,19 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://si4byubqnng4"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bwkp1ff25acp1"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/TestBullet.cs" id="1_f6dfa"]
|
||||
[ext_resource type="Script" path="res://Scripts/SingleShot.cs" id="1_a82kt"]
|
||||
[ext_resource type="Texture2D" uid="uid://borp7xvlfdcmq" path="res://Textures/Projectiles/bubble.png" id="2_1dg7p"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_phgri"]
|
||||
albedo_color = Color(0.584314, 0.0352941, 0.141176, 1)
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_wuk0e"]
|
||||
material = SubResource("StandardMaterial3D_phgri")
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_3c0di"]
|
||||
|
||||
[node name="SingleShot" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.538645, 0)
|
||||
script = ExtResource("1_f6dfa")
|
||||
script = ExtResource("1_a82kt")
|
||||
Cooldown = 0.3
|
||||
|
||||
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
||||
collision_layer = 34
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1)
|
||||
top_level = true
|
||||
disable_mode = 2
|
||||
collision_layer = 0
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
@@ -24,17 +21,12 @@ max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"]
|
||||
visible = false
|
||||
mesh = SubResource("SphereMesh_wuk0e")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0054872, -0.00215495, 0.0167444)
|
||||
shape = SubResource("CylinderShape3D_3c0di")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00168204, -0.0587139, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.002, 1, 0)
|
||||
axis = 1
|
||||
texture = ExtResource("2_1dg7p")
|
||||
|
||||
@@ -42,5 +34,4 @@ texture = ExtResource("2_1dg7p")
|
||||
process_callback = 0
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="RigidBody3D" to="." method="OnBulletHitObject"]
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
Reference in New Issue
Block a user