fixed up some damage number bugs
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bvq6tbkuv2mfp"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://bvq6tbkuv2mfp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ejqql2660u6h" path="res://Worlds/GreenPlanet/Enemies/enemy_controller.gd" id="1_1dh2f"]
|
||||
[ext_resource type="PackedScene" uid="uid://canrxnpxcugc2" path="res://Scenes/corpse.tscn" id="2_1dh2f"]
|
||||
[ext_resource type="Script" uid="uid://bamhci3kawuyt" path="res://Scripts/health.gd" id="2_bckix"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqtew0t8sttpm" path="res://Scenes/damage_particle.tscn" id="3_wnwjl"]
|
||||
[ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="6_3v8fr"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1fn60m6xfcsq" path="res://Assets/Textures/minimap_enemy.png" id="7_bkkhh"]
|
||||
[ext_resource type="PackedScene" uid="uid://hjq3nrnumklp" path="res://Scenes/health_bar.tscn" id="8_k2835"]
|
||||
@@ -12,37 +10,32 @@
|
||||
[ext_resource type="Script" uid="uid://cojjgevmbhwal" path="res://Scripts/status_effector.gd" id="11_kpdsm"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_cavbv"]
|
||||
radius = 0.42
|
||||
radius = 0.359969
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_h25mw"]
|
||||
radius = 0.151085
|
||||
radius = 0.194271
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_1kwxq"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
|
||||
[node name="Node3D" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "health", "d_n") groups=["Enemies"]]
|
||||
[node name="EyeDog" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_1dh2f")
|
||||
status_manager = NodePath("StatusEffector")
|
||||
movement_controller = NodePath("PathingController")
|
||||
health = NodePath("Health")
|
||||
d_n = NodePath("Node3D")
|
||||
corpse_scene = ExtResource("2_1dh2f")
|
||||
metadata/_custom_type_script = "uid://ejqql2660u6h"
|
||||
|
||||
[node name="Health" type="Node" parent="."]
|
||||
script = ExtResource("2_bckix")
|
||||
damage_particle_scene = ExtResource("3_wnwjl")
|
||||
|
||||
[node name="Hitbox" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, 0.0832841)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, -0.0104714)
|
||||
shape = SubResource("SphereShape3D_cavbv")
|
||||
script = ExtResource("6_3v8fr")
|
||||
metadata/_custom_type_script = "uid://cummt2be3r1gq"
|
||||
|
||||
[node name="Hitbox2" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.601201, -0.436369)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.559695, -0.45924)
|
||||
shape = SubResource("SphereShape3D_h25mw")
|
||||
script = ExtResource("6_3v8fr")
|
||||
critical_zone = true
|
||||
@@ -92,9 +85,40 @@ metadata/_custom_type_script = "uid://cojjgevmbhwal"
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.39813, 0)
|
||||
|
||||
[node name="eyedog" parent="." instance=ExtResource("10_h25mw")]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.3764, 0)
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
||||
|
||||
[connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"]
|
||||
[connection signal="health_depleted" from="Health" to="." method="die"]
|
||||
[connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"]
|
||||
[connection signal="took_damage" from="Hitbox2" to="Health" method="take_damage"]
|
||||
[node name="Skeleton3D" parent="eyedog/Armature" index="0"]
|
||||
bones/1/rotation = Quaternion(-0.439304, -1.0709e-07, 5.23691e-08, 0.898338)
|
||||
bones/3/rotation = Quaternion(0.233785, 0.324851, 0.542755, 0.738399)
|
||||
bones/4/rotation = Quaternion(0.202596, 0.730837, 0.133447, 0.637985)
|
||||
bones/5/rotation = Quaternion(0.0807169, 0.113794, 0.103388, 0.984808)
|
||||
bones/6/rotation = Quaternion(0.1897, 0.0455505, -0.0147276, 0.980674)
|
||||
bones/7/rotation = Quaternion(0.212592, -0.0409247, -0.776147, 0.592221)
|
||||
bones/8/rotation = Quaternion(0.145596, -0.673764, -0.223773, 0.689035)
|
||||
bones/9/rotation = Quaternion(0.21458, -0.0679522, -0.273831, 0.93507)
|
||||
bones/10/rotation = Quaternion(0.361696, -0.022981, -0.0737816, 0.929088)
|
||||
bones/11/position = Vector3(-0.182181, 0.0249746, -0.297013)
|
||||
bones/13/rotation = Quaternion(-0.190314, -0.343714, 0.667305, 0.632728)
|
||||
bones/14/rotation = Quaternion(-0.315946, -0.576307, -0.237059, 0.715438)
|
||||
bones/15/rotation = Quaternion(0.36767, -0.0363555, 0.344702, 0.862947)
|
||||
bones/16/rotation = Quaternion(0.39201, 0.0141284, 0.103499, 0.914011)
|
||||
bones/17/rotation = Quaternion(-0.415643, 0.234919, -0.806682, 0.348308)
|
||||
bones/18/rotation = Quaternion(-0.155071, 0.546436, 0.037938, 0.822144)
|
||||
bones/19/rotation = Quaternion(0.16324, -0.0179424, -0.154066, 0.974317)
|
||||
bones/20/rotation = Quaternion(0.200947, -0.0385468, -0.00188781, 0.978842)
|
||||
bones/21/rotation = Quaternion(0.476805, -1.04786e-07, -5.68396e-08, 0.879009)
|
||||
bones/22/position = Vector3(-0.128557, 0.0159593, 0.519261)
|
||||
bones/22/scale = Vector3(0.893472, 1, 1)
|
||||
bones/23/position = Vector3(0.255975, 0.0228185, 0.200587)
|
||||
bones/23/scale = Vector3(0.893472, 1, 1)
|
||||
bones/24/position = Vector3(0.0845419, 0.0148535, 0.129847)
|
||||
|
||||
[node name="AnimationPlayer" parent="eyedog" index="1"]
|
||||
autoplay = "Walk"
|
||||
|
||||
[connection signal="recieved_effect" from="Hitbox" to="StatusEffector" method="add_effect"]
|
||||
[connection signal="took_damage" from="Hitbox" to="." method="take_damage"]
|
||||
[connection signal="recieved_effect" from="Hitbox2" to="StatusEffector" method="add_effect"]
|
||||
[connection signal="took_damage" from="Hitbox2" to="." method="take_damage"]
|
||||
|
||||
[editable path="eyedog"]
|
||||
|
||||
Reference in New Issue
Block a user