mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 18:25:54 +00:00
46 lines
2 KiB
Text
46 lines
2 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://d2kqcbr5rufxb"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://etmm2bm8mj06" path="res://3D/BlockbenchModels/WoodenBox/Wooden_Box.gltf" id="1_2t24b"]
|
|
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_nnmn3"]
|
|
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/3D/Explosion_Harmless_Small_3D.tres" id="2_5j3e2"]
|
|
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="3_cyk87"]
|
|
[ext_resource type="Script" uid="uid://hkmutmmjqh1e" path="res://Scripts/Actors/3D/PropGravityModule3D.cs" id="5_81jt2"]
|
|
|
|
[sub_resource type="Resource" id="Resource_cyk87"]
|
|
script = ExtResource("3_cyk87")
|
|
DamageType = 4
|
|
Attribute = 2
|
|
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
|
size = Vector3(1, 0.498138, 0.543457)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_1v1bv"]
|
|
size = Vector3(0.60668945, 0.1053009, 0.49469566)
|
|
|
|
[node name="WoodenBox" type="StaticBody3D" groups=["Destroyable"]]
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
script = ExtResource("1_nnmn3")
|
|
Health = 8.0
|
|
ExplosionData = ExtResource("2_5j3e2")
|
|
DamageResistances = Array[ExtResource("3_cyk87")]([SubResource("Resource_cyk87")])
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0022127, -0.0178223)
|
|
shape = SubResource("BoxShape3D_hsg1w")
|
|
|
|
[node name="blockbench_export" parent="." instance=ExtResource("1_2t24b")]
|
|
|
|
[node name="Node" type="Area3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 17
|
|
script = ExtResource("5_81jt2")
|
|
FallingSpeed = -2.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Node"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.024291992, -0.20145416, -0.0007390976)
|
|
shape = SubResource("BoxShape3D_1v1bv")
|
|
|
|
[connection signal="body_entered" from="Node" to="Node" method="OnBodyEntered"]
|
|
[connection signal="body_exited" from="Node" to="Node" method="OnBodyExited"]
|