[gd_scene load_steps=16 format=2] [ext_resource path="res://Scripts/HitBox.gd" type="Script" id=1] [ext_resource path="res://Scenes/Enemy.gd" type="Script" id=2] [ext_resource path="res://Scripts/HurtBox.gd" type="Script" id=3] [ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_METALNESS_1K_METALNESS.jpg" type="Texture" id=4] [ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_Flat.jpg" type="Texture" id=5] [ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_NRM_1K_METALNESS.jpg" type="Texture" id=6] [ext_resource path="res://Audio/boom.wav" type="AudioStream" id=7] [sub_resource type="SphereMesh" id=6] [sub_resource type="SpatialMaterial" id=12] albedo_color = Color( 0.74902, 0.992157, 0.776471, 0.341176 ) albedo_texture = ExtResource( 5 ) metallic_texture = ExtResource( 4 ) emission_enabled = true emission = Color( 0, 0, 0, 1 ) emission_energy = 1.0 emission_operator = 0 emission_on_uv2 = false normal_enabled = true normal_scale = 1.0 normal_texture = ExtResource( 6 ) [sub_resource type="SphereShape" id=7] [sub_resource type="SphereShape" id=8] [sub_resource type="SphereShape" id=9] [sub_resource type="SpatialMaterial" id=13] params_billboard_mode = 3 particles_anim_h_frames = 1 particles_anim_v_frames = 1 particles_anim_loop = false albedo_color = Color( 0.952941, 0.109804, 0.545098, 1 ) metallic = 0.25 metallic_specular = 0.98 emission_enabled = true emission = Color( 0.501961, 0.152941, 0.462745, 1 ) emission_energy = 4.61 emission_operator = 0 emission_on_uv2 = false refraction_enabled = true refraction_scale = 0.05 refraction_texture_channel = 0 [sub_resource type="SphereMesh" id=14] material = SubResource( 13 ) radius = 0.2 height = 0.4 [sub_resource type="Curve" id=15] max_value = 2.0 _data = [ Vector2( 0.029703, 1.56592 ), 0.0, 0.0, 0, 0, Vector2( 0.995049, 0.656827 ), 0.472208, 0.0, 0, 0 ] [node name="Enemy" type="KinematicBody"] script = ExtResource( 2 ) [node name="MeshInstance" type="MeshInstance" parent="."] mesh = SubResource( 6 ) material/0 = SubResource( 12 ) [node name="Hurtbox" type="Area" parent="."] transform = Transform( 2.03634, 0, 0, 0, 2.03634, 0, 0, 0, 2.03634, 0, 0, 0 ) script = ExtResource( 3 ) [node name="HeadCollision" type="CollisionShape" parent="Hurtbox"] shape = SubResource( 7 ) [node name="EnemyCollision" type="CollisionShape" parent="."] transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.094023, 0 ) shape = SubResource( 8 ) [node name="HitBox" type="Area" parent="."] transform = Transform( 1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0 ) script = ExtResource( 1 ) hitbox_type = 2 [node name="CollisionShape" type="CollisionShape" parent="HitBox"] shape = SubResource( 9 ) disabled = true [node name="CPUParticles" type="CPUParticles" parent="."] emitting = false amount = 25 lifetime = 2.5 one_shot = true speed_scale = 2.76 explosiveness = 0.18 randomness = 0.19 mesh = SubResource( 14 ) emission_shape = 1 emission_sphere_radius = 1.5 spread = 80.0 gravity = Vector3( 0.1, 0, 0 ) initial_velocity = 1.0 scale_amount_curve = SubResource( 15 ) [node name="DeathTimer" type="Timer" parent="."] wait_time = 3.0 [node name="Explosion" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 7 ) attenuation_model = 2 unit_db = 80.0 max_db = 6.0 pitch_scale = 1.5 bus = "SFX" attenuation_filter_db = 0.0 [connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"]