mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 12:53:47 +00:00
Trenchbroom support for health and destruction
This commit is contained in:
parent
e23d337a16
commit
823886b4ce
19 changed files with 2064 additions and 1398 deletions
|
|
@ -32,15 +32,15 @@ shape = SubResource("BoxShape3D_hsg1w")
|
|||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("1_03sp0")]
|
||||
|
||||
[node name="Node" type="Area3D" parent="."]
|
||||
[node name="Gravity" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 17
|
||||
script = ExtResource("5_jb4do")
|
||||
FallingSpeed = -2.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Node"]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Gravity"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.024291992, -0.19599915, 0.013088226)
|
||||
shape = SubResource("BoxShape3D_6tetb")
|
||||
|
||||
[connection signal="body_entered" from="Node" to="Node" method="OnBodyEntered"]
|
||||
[connection signal="body_exited" from="Node" to="Node" method="OnBodyExited"]
|
||||
[connection signal="body_entered" from="Gravity" to="Gravity" method="OnBodyEntered"]
|
||||
[connection signal="body_exited" from="Gravity" to="Gravity" method="OnBodyExited"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://d4ek8xjuh6y11"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://d4ek8xjuh6y11"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpibtd73awwp7" path="res://Scripts/Actors/ScriptableBulletsEmitter3D.cs" id="1_dtfaj"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="2_dtfaj"]
|
||||
[ext_resource type="PackedScene" uid="uid://sy821kigcoqx" path="res://3D/BlockbenchModels/FloorEmitter/Floor_Emitter.gltf" id="3_ro7iq"]
|
||||
[ext_resource type="Script" uid="uid://bf5f2phitdqw8" path="res://Scripts/Actors/BulletSpawner3D.cs" id="4_0cjnq"]
|
||||
|
||||
|
|
@ -13,6 +14,8 @@ collision_layer = 64
|
|||
collision_mask = 0
|
||||
script = ExtResource("1_dtfaj")
|
||||
EmitOnStart = true
|
||||
Health = 10.0
|
||||
DamageResistances = Array[ExtResource("2_dtfaj")]([])
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.116073, -0.000488281)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://djm3rsc7ul5jb"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://djm3rsc7ul5jb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpibtd73awwp7" path="res://Scripts/Actors/ScriptableBulletsEmitter3D.cs" id="1_0vfab"]
|
||||
[ext_resource type="PackedScene" uid="uid://dmnqbva5dt6nl" path="res://3D/BlockbenchModels/Tubes/Tube_Emitter.gltf" id="1_i2hpd"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="2_xohn2"]
|
||||
[ext_resource type="Script" uid="uid://bf5f2phitdqw8" path="res://Scripts/Actors/BulletSpawner3D.cs" id="3_xohn2"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
|
||||
|
|
@ -9,6 +10,8 @@ size = Vector3(0.69390893, 0.868431, 0.871704)
|
|||
|
||||
[node name="TubeEmitter" type="StaticBody3D" groups=["Permeable", "Solid"]]
|
||||
script = ExtResource("1_0vfab")
|
||||
Indestructible = true
|
||||
DamageResistances = Array[ExtResource("2_xohn2")]([])
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.15304595, 0.00475672, 0.0043335)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://yath5bvxo3cn"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://yath5bvxo3cn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpibtd73awwp7" path="res://Scripts/Actors/ScriptableBulletsEmitter3D.cs" id="1_3n1ol"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="2_eoje4"]
|
||||
[ext_resource type="PackedScene" uid="uid://lwpt32xplrjw" path="res://3D/BlockbenchModels/WallEmitter/Wall_Emitter.gltf" id="3_3n1ol"]
|
||||
[ext_resource type="Script" uid="uid://bf5f2phitdqw8" path="res://Scripts/Actors/BulletSpawner3D.cs" id="3_g6b3n"]
|
||||
|
||||
|
|
@ -13,6 +14,8 @@ collision_layer = 64
|
|||
collision_mask = 0
|
||||
script = ExtResource("1_3n1ol")
|
||||
EmitOnStart = true
|
||||
Health = 10.0
|
||||
DamageResistances = Array[ExtResource("2_eoje4")]([])
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00549316, 0.116073, -0.000488281)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue