You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.7 KiB
52 lines
1.7 KiB
|
7 days ago
|
[gd_scene load_steps=7 format=3 uid="uid://dif4t1y3c07ax"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" path="res://level/scripts/practice_dummy.gd" id="1_dummy"]
|
||
|
|
[ext_resource type="Script" uid="uid://bj3uepduxvgju" path="res://level/scripts/hurt_box.gd" id="2_hurtbox"]
|
||
|
|
|
||
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dummy"]
|
||
|
|
albedo_color = Color(0.8, 0.6, 0.4, 1)
|
||
|
|
metallic = 0.2
|
||
|
|
roughness = 0.8
|
||
|
|
|
||
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_dummy"]
|
||
|
|
material = SubResource("StandardMaterial3D_dummy")
|
||
|
|
|
||
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_body"]
|
||
|
|
|
||
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_hurtbox"]
|
||
|
|
radius = 0.6
|
||
|
|
height = 2.2
|
||
|
|
|
||
|
|
[node name="PracticeDummy" type="CharacterBody3D"]
|
||
|
|
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
|
||
|
|
collision_mask = 2
|
||
|
|
script = ExtResource("1_dummy")
|
||
|
|
detection_range = 0.0
|
||
|
|
is_aggressive = false
|
||
|
|
respawn_delay = 5.0
|
||
|
|
|
||
|
|
[node name="Mesh" type="MeshInstance3D" parent="."]
|
||
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||
|
|
mesh = SubResource("CapsuleMesh_dummy")
|
||
|
|
|
||
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||
|
|
shape = SubResource("CapsuleShape3D_body")
|
||
|
|
|
||
|
|
[node name="HurtBox" type="Area3D" parent="." node_paths=PackedStringArray("owner_entity")]
|
||
|
|
collision_layer = 16
|
||
|
|
collision_mask = 0
|
||
|
|
script = ExtResource("2_hurtbox")
|
||
|
|
owner_entity = NodePath("..")
|
||
|
|
|
||
|
|
[node name="HurtBoxShape" type="CollisionShape3D" parent="HurtBox"]
|
||
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||
|
|
shape = SubResource("CapsuleShape3D_hurtbox")
|
||
|
|
|
||
|
|
[node name="HealthLabel" type="Label3D" parent="."]
|
||
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
||
|
|
billboard = 1
|
||
|
|
text = "HP: 100/100"
|
||
|
|
font_size = 24
|
||
|
|
outline_size = 8
|