mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 04:13:47 +00:00
Added loot to boxes
This commit is contained in:
parent
8d52b49e57
commit
6215008db7
6 changed files with 81 additions and 34 deletions
|
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cf7jo7q71ucli"]
|
||||
[gd_scene format=3 uid="uid://cf7jo7q71ucli"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_iyotb"]
|
||||
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/3D/Explosion_Harmless_Small_3D.tres" id="2_f87s5"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="3_yhe02"]
|
||||
[ext_resource type="PackedScene" uid="uid://ry8fwoju3alh" path="res://3D/BlockbenchModels/Box/BoxTallBlue/Box_Tall_Blue.gltf" id="4_iyotb"]
|
||||
[ext_resource type="Script" uid="uid://cq65aed620ijo" path="res://Scripts/Resources/Loot/LootDrop.cs" id="4_yhe02"]
|
||||
[ext_resource type="Resource" uid="uid://dy53gia1tmkah" path="res://Resources/Items/Points_Pickup.tres" id="5_hbe6d"]
|
||||
[ext_resource type="Script" uid="uid://hkmutmmjqh1e" path="res://Scripts/Actors/3D/PropGravityModule3D.cs" id="5_jnstp"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0ktp8"]
|
||||
|
|
@ -12,13 +14,20 @@ DamageType = 4
|
|||
Attribute = 2
|
||||
metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jnstp"]
|
||||
script = ExtResource("4_yhe02")
|
||||
Item = ExtResource("5_hbe6d")
|
||||
Chance = 70.0
|
||||
Count = 3
|
||||
metadata/_custom_type_script = "uid://cq65aed620ijo"
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
||||
size = Vector3(1.0160522, 1.1501389, 1.0269775)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_0ktp8"]
|
||||
size = Vector3(1.0121155, 0.09439087, 1.1526518)
|
||||
|
||||
[node name="BoxBlueTall" type="StaticBody3D" groups=["Destroyable"]]
|
||||
[node name="BoxBlueTall" type="StaticBody3D" unique_id=1413272851 groups=["Destroyable"]]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
axis_lock_linear_x = true
|
||||
|
|
@ -30,20 +39,21 @@ script = ExtResource("1_iyotb")
|
|||
Health = 8.0
|
||||
ExplosionData = ExtResource("2_f87s5")
|
||||
DamageResistances = Array[ExtResource("3_yhe02")]([SubResource("Resource_0ktp8")])
|
||||
LootDrops = Array[ExtResource("4_yhe02")]([SubResource("Resource_jnstp")])
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=161802429]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.003509529, 0.0031622052, 0.0022582859)
|
||||
shape = SubResource("BoxShape3D_hsg1w")
|
||||
|
||||
[node name="blockbench_export2" parent="." instance=ExtResource("4_iyotb")]
|
||||
[node name="blockbench_export2" parent="." unique_id=802361790 instance=ExtResource("4_iyotb")]
|
||||
|
||||
[node name="Node" type="Area3D" parent="."]
|
||||
[node name="Node" type="Area3D" parent="." unique_id=1345720677]
|
||||
collision_layer = 0
|
||||
collision_mask = 17
|
||||
script = ExtResource("5_jnstp")
|
||||
FallingSpeed = -2.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Node"]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Node" unique_id=1092912262]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.01399231, -0.5570252, 0.0049414635)
|
||||
shape = SubResource("BoxShape3D_0ktp8")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue