mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 16:53:46 +00:00
Destructible triggers
This commit is contained in:
parent
f013987bab
commit
7aee230b3c
56 changed files with 1457 additions and 1106 deletions
|
|
@ -1,6 +1,8 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bkwuuk6ctadu0"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bkwuuk6ctadu0"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dia5jpbq0ipcp" path="res://3D/BlockbenchModels/Capacitor_Mini/Capacitor_Mini.gltf" id="1_dkwt8"]
|
||||
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_lyqcr"]
|
||||
[ext_resource type="Resource" uid="uid://bpreje4f8ok62" path="res://Resources/Bullets/3D/Explosion_3D.tres" id="2_kvl8b"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_dkwt8"]
|
||||
height = 0.882874
|
||||
|
|
@ -8,6 +10,10 @@ height = 0.882874
|
|||
[node name="CapacitorMini" type="StaticBody3D"]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_lyqcr")
|
||||
Health = 5.0
|
||||
ExplosionData = ExtResource("2_kvl8b")
|
||||
DamageResistances = []
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, -0.0550391, -0.000488281)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://5oos364p3wex"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://5oos364p3wex"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_uw6yr"]
|
||||
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/3D/Explosion_Harmless_Small_3D.tres" id="2_mieo6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdegfd1qsmm83" path="res://3D/BlockbenchModels/Furniture/Computer_Tower.gltf" id="3_uw6yr"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
||||
|
|
@ -10,8 +8,6 @@ size = Vector3(0.236526, 0.255461, 0.263001)
|
|||
[node name="ComputerTower" type="StaticBody3D" groups=["Destroyable"]]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_uw6yr")
|
||||
ExplosionData = ExtResource("2_mieo6")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00994159, 0.00241355, 0.0024108)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dcv3hwt7p4hgp"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dcv3hwt7p4hgp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_rnn28"]
|
||||
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/3D/Explosion_Harmless_Small_3D.tres" id="2_1of0j"]
|
||||
[ext_resource type="PackedScene" uid="uid://cttslkvuo01s4" path="res://3D/BlockbenchModels/Furniture/Furniture_Shelf.gltf" id="3_3irlk"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
||||
|
|
@ -10,8 +8,6 @@ size = Vector3(1.01306, 0.0779953, 0.516846)
|
|||
[node name="Shelf" type="StaticBody3D" groups=["Destroyable"]]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_rnn28")
|
||||
ExplosionData = ExtResource("2_1of0j")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000183113, 0.0304449, 0.000122011)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dsppxfki3n30g"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dsppxfki3n30g"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccxnvbthsvka3" path="res://Scripts/Actors/Destructible3D.cs" id="1_td6u3"]
|
||||
[ext_resource type="Resource" uid="uid://bes254wblt1lm" path="res://Resources/Bullets/3D/Explosion_Harmless_Small_3D.tres" id="2_4teip"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="3_4teip"]
|
||||
[ext_resource type="PackedScene" uid="uid://ca7snn0abf446" path="res://3D/BlockbenchModels/Furniture/Furniture_Triangle.gltf" id="3_td6u3"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
||||
|
|
@ -12,6 +13,7 @@ collision_layer = 16
|
|||
collision_mask = 0
|
||||
script = ExtResource("1_td6u3")
|
||||
ExplosionData = ExtResource("2_4teip")
|
||||
DamageResistances = Array[ExtResource("3_4teip")]([])
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00994159, 0.00241355, 0.0024108)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue