Armazon/props/bombs/item_pipebomb.tscn
2024-01-28 13:44:54 -05:00

38 lines
1.6 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://dh10j4qwu6gmo"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_040ip"]
[ext_resource type="PackedScene" uid="uid://shfm0c37j4hq" path="res://props/explosion/explosion.tscn" id="2_l57nj"]
[ext_resource type="Material" uid="uid://1wix8dscq3ht" path="res://assets/props/blake1/mat_blake1.tres" id="2_vyk3o"]
[ext_resource type="ArrayMesh" uid="uid://d1k7yw3upmyar" path="res://assets/props/blake1/bomba.obj" id="3_hmww4"]
[ext_resource type="AudioStream" uid="uid://cjwabc4r3artu" path="res://assets/audio/RamuneBottle,open,marble,punch,decompress,ping,glass.wav" id="4_rdbxk"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_8smjl"]
height = 0.447664
radius = 0.047686
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_040ip")
explosion = ExtResource("2_l57nj")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CylinderShape3D_8smjl")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.138521, -0.235572, 0)
material_override = ExtResource("2_vyk3o")
mesh = ExtResource("3_hmww4")
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="pin_sfx" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("4_rdbxk")
[connection signal="touched" from="." to="Timer" method="start" flags=6]
[connection signal="touched" from="." to="pin_sfx" method="play"]
[connection signal="timeout" from="Timer" to="." method="detonate"]