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

42 lines
1.7 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://dgf2johp1nob7"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_o2ogb"]
[ext_resource type="Material" uid="uid://mp5sbhbquxr0" path="res://assets/props/lemonade/mat_lemonade.tres" id="2_5l5ps"]
[ext_resource type="PackedScene" uid="uid://shfm0c37j4hq" path="res://props/explosion/explosion.tscn" id="2_mdqkc"]
[ext_resource type="ArrayMesh" uid="uid://jker0ef0if7a" path="res://assets/props/lemonade/lemonade.obj" id="3_s2a55"]
[ext_resource type="AudioStream" uid="uid://cjwabc4r3artu" path="res://assets/audio/RamuneBottle,open,marble,punch,decompress,ping,glass.wav" id="4_78vad"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_1eecs"]
bounce = 0.7
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_uu6nh"]
radius = 0.0991641
height = 0.321226
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
mass = 0.9
physics_material_override = SubResource("PhysicsMaterial_1eecs")
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_o2ogb")
explosion = ExtResource("2_mdqkc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_uu6nh")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
material_override = ExtResource("2_5l5ps")
mesh = ExtResource("3_s2a55")
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="pin_sfx" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("4_78vad")
[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"]