39 lines
3.1 KiB
Plaintext
39 lines
3.1 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://wcv3kkpq0k8d"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_qrltu"]
|
|
[ext_resource type="PackedScene" uid="uid://ddqsts05d4e70" path="res://props/explosion/nuke_blast.tscn" id="2_1x4qn"]
|
|
[ext_resource type="ArrayMesh" uid="uid://dr3cnp6q5d5nu" path="res://assets/props/nuke/nuke.obj" id="4_xhr4y"]
|
|
[ext_resource type="AudioStream" uid="uid://jayxq7lbhlkq" path="res://assets/audio/alarm.wav" id="5_iqgh0"]
|
|
[ext_resource type="Material" uid="uid://b0onobnp4eo7n" path="res://assets/props/nuke/mat_nuke.tres" id="5_rovnd"]
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_xvp5e"]
|
|
points = PackedVector3Array(-0.161187, -0.620031, -3.15607e-05, -0.120922, -0.620031, -0.120922, -0.120922, -0.623616, -3.15607e-05, -0.120922, -0.620031, 0.120859, -0.161187, 0.298615, -3.15607e-05, -3.15607e-05, -0.620031, -0.161187, -3.15607e-05, -0.623616, -0.120922, -0.0895555, -0.622687, -0.0895555, -0.120922, 0.298615, -0.120922, -3.15607e-05, -0.624811, -3.15607e-05, -3.15607e-05, -0.623616, 0.120859, -0.0895555, -0.622687, 0.089524, -3.15607e-05, -0.620031, 0.161187, -0.120922, 0.298615, 0.120859, -0.160178, 0.303793, -3.15607e-05, 0.120859, -0.620031, -0.120922, -3.15607e-05, 0.298615, -0.161187, 0.089524, -0.622687, -0.0895555, 0.120859, -0.623616, -3.15607e-05, -0.120133, 0.303793, -0.120133, -3.15607e-05, 0.303793, -0.160178, 0.089524, -0.622687, 0.089524, 0.120859, -0.620031, 0.120859, -3.15607e-05, 0.298615, 0.161187, -0.120133, 0.303793, 0.120102, -0.0144841, 0.720696, 0.014421, -0.0192806, 0.720696, -3.15607e-05, -0.0144841, 0.720696, -0.0144841, 0.161187, -0.620031, -3.15607e-05, 0.120859, 0.298615, -0.120922, 0.120102, 0.303793, -0.120133, -3.15607e-05, 0.720696, -0.0192806, 0.014421, 0.720696, -0.0144841, 0.120859, 0.298615, 0.120859, 0.120102, 0.303793, 0.120102, -3.15607e-05, 0.303793, 0.160114, -3.15607e-05, 0.720696, 0.0192491, -3.15607e-05, 0.728795, 0.0126539, -0.0099401, 0.726671, 0.00987698, -0.0126855, 0.728795, -3.15607e-05, -0.0099401, 0.726671, -0.0099401, -3.15607e-05, 0.728795, -0.0126855, 0.161187, 0.298615, -3.15607e-05, 0.160114, 0.303793, -3.15607e-05, 0.0192491, 0.720696, -3.15607e-05, 0.00987698, 0.726671, -0.0099401, 0.0126539, 0.728795, -3.15607e-05, 0.014421, 0.720696, 0.014421, -3.15607e-05, 0.731583, -3.15607e-05, 0.00987698, 0.726671, 0.00987698)
|
|
|
|
[node name="nuke" type="RigidBody3D"]
|
|
collision_layer = 5
|
|
mass = 20.0
|
|
gravity_scale = 1.2
|
|
max_contacts_reported = 2
|
|
contact_monitor = true
|
|
script = ExtResource("1_qrltu")
|
|
explosion = ExtResource("2_1x4qn")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
mesh = ExtResource("4_xhr4y")
|
|
surface_material_override/0 = ExtResource("5_rovnd")
|
|
|
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("ConvexPolygonShape3D_xvp5e")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 1.5
|
|
one_shot = true
|
|
|
|
[node name="alarm" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource("5_iqgh0")
|
|
max_db = -5.0
|
|
autoplay = true
|
|
|
|
[connection signal="touched" from="." to="Timer" method="start" flags=6]
|
|
[connection signal="timeout" from="Timer" to="." method="detonate"]
|