mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 07:45:33 +00:00
54 lines
2.2 KiB
Text
54 lines
2.2 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://c85ht0mlk0ruv"]
|
|
|
|
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_bgea7"]
|
|
[ext_resource type="Texture2D" uid="uid://dmwi86k7hr8sl" path="res://Sprites/Bullets/small_bullet_green.png" id="2_bgea7"]
|
|
[ext_resource type="AudioStream" uid="uid://b3rm0vj6x54k4" path="res://SFX/th_knockoff_sfx/click_collect.wav" id="3_f6xij"]
|
|
[ext_resource type="Material" uid="uid://ogkwkokxevat" path="res://Resources/Particles/graze_particle_3D.tres" id="4_yuh7f"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
|
|
radius = 0.161126
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t5ure"]
|
|
vertex_color_use_as_albedo = true
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_nd0aw"]
|
|
lightmap_size_hint = Vector2i(2, 2)
|
|
material = SubResource("StandardMaterial3D_t5ure")
|
|
size = Vector2(0.1, 0.1)
|
|
orientation = 1
|
|
|
|
[node name="Bullet" type="Area3D" groups=["bullets"]]
|
|
collision_layer = 0
|
|
collision_mask = 0
|
|
script = ExtResource("1_bgea7")
|
|
Speed = 200.0
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="Sprite" type="Sprite3D" parent="."]
|
|
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)
|
|
pixel_size = 0.05
|
|
texture_filter = 0
|
|
texture = ExtResource("2_bgea7")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("SphereShape3D_pklkt")
|
|
|
|
[node name="VisibleOnScreenNotifier" type="VisibleOnScreenNotifier3D" parent="."]
|
|
|
|
[node name="GrazeSound" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource("3_f6xij")
|
|
bus = &"Effects"
|
|
|
|
[node name="GrazeParticles" type="GPUParticles3D" parent="."]
|
|
transform = Transform3D(0.70710677, 0.49999997, 0.49999997, 0, 0.70710677, -0.70710677, -0.70710677, 0.49999997, 0.49999997, 0, 0, 0)
|
|
emitting = false
|
|
amount = 2
|
|
lifetime = 0.2
|
|
one_shot = true
|
|
local_coords = true
|
|
process_material = ExtResource("4_yuh7f")
|
|
draw_pass_1 = SubResource("QuadMesh_nd0aw")
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|