51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://dws2vwfxubqvb"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b1dsepbsi6d2" path="res://assets/Models/cannon.blend" id="1_ngt3n"]
|
|
[ext_resource type="Script" path="res://scripts/cannon.gd" id="2_1ki5g"]
|
|
[ext_resource type="AudioStream" uid="uid://8w6qt2pytru4" path="res://assets/Audio/t-shirt-cannon-SBA-300286998.wav" id="3_06wla"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_k7ssd"]
|
|
albedo_color = Color(0.776359, 0.768936, 0.671071, 1)
|
|
emission_enabled = true
|
|
emission = Color(0.903573, 0.717243, 0.270862, 1)
|
|
emission_energy_multiplier = 8.0
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_5okh4"]
|
|
direction = Vector3(0, 1, 0)
|
|
spread = 10.0
|
|
initial_velocity_min = 3.0
|
|
initial_velocity_max = 10.0
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_kmlrl"]
|
|
size = Vector3(0.1, 0.1, 0.1)
|
|
|
|
[node name="cannon" instance=ExtResource("1_ngt3n")]
|
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
|
script = ExtResource("2_1ki5g")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="." index="2"]
|
|
target_position = Vector3(0, 1, 0)
|
|
|
|
[node name="Timer" type="Timer" parent="." index="3"]
|
|
autostart = true
|
|
|
|
[node name="cannonparticles" type="GPUParticles3D" parent="." index="4"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.17952, 0)
|
|
material_override = SubResource("StandardMaterial3D_k7ssd")
|
|
emitting = false
|
|
amount = 100
|
|
lifetime = 5.0
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource("ParticleProcessMaterial_5okh4")
|
|
draw_pass_1 = SubResource("BoxMesh_kmlrl")
|
|
|
|
[node name="Audio" type="Node" parent="." index="5"]
|
|
|
|
[node name="FireAudio" type="AudioStreamPlayer3D" parent="Audio" index="0"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
stream = ExtResource("3_06wla")
|
|
volume_db = 2.0
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|