[gd_scene load_steps=13 format=2] [ext_resource path="res://scenes/creatures/human/human_female.tscn" type="PackedScene" id=1] [ext_resource path="res://scenes/characters/character.gd" type="Script" id=2] [ext_resource path="res://scenes/characters/head_infos.tscn" type="PackedScene" id=3] [ext_resource path="res://assets/interfaces/focus_reticle.png" type="Texture" id=4] [ext_resource path="res://scenes/interfaces/focus_reticle.tscn" type="PackedScene" id=5] [sub_resource type="QuadMesh" id=1] size = Vector2( 0.5, 0.5 ) [sub_resource type="ViewportTexture" id=2] viewport_path = NodePath("head_infos_viewport") [sub_resource type="SpatialMaterial" id=3] resource_local_to_scene = true flags_transparent = true flags_unshaded = true params_cull_mode = 2 params_billboard_mode = 1 albedo_texture = SubResource( 2 ) [sub_resource type="CapsuleShape" id=4] resource_local_to_scene = true radius = 0.448335 height = 0.743739 [sub_resource type="CylinderShape" id=5] resource_local_to_scene = true radius = 0.189727 height = 0.0303032 [sub_resource type="QuadMesh" id=6] resource_local_to_scene = true size = Vector2( 1, 1.5 ) [sub_resource type="SpatialMaterial" id=7] resource_local_to_scene = true render_priority = 10 flags_unshaded = true flags_no_depth_test = true params_billboard_mode = 1 params_use_alpha_scissor = true params_alpha_scissor_threshold = 0.1 albedo_texture = ExtResource( 4 ) [node name="character" type="KinematicBody"] collision_layer = 1025 collision_mask = 1025 script = ExtResource( 2 ) [node name="head_infos_viewport" type="Viewport" parent="."] size = Vector2( 512, 256 ) transparent_bg = true render_target_v_flip = true gui_disable_input = true [node name="head_infos" parent="head_infos_viewport" instance=ExtResource( 3 )] [node name="head_infos_frame" type="MeshInstance" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) visible = false mesh = SubResource( 1 ) material/0 = SubResource( 3 ) [node name="creature" parent="." instance=ExtResource( 1 )] shape = SubResource( 4 ) [node name="look_at" type="Spatial" parent="."] transform = Transform( -1, 0, 3.25841e-07, 0, 1, 0, -3.25841e-07, 0, -1, 0, 1.5, 0 ) [node name="ground_area" type="Area" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0398086, 0 ) [node name="collision_shape" type="CollisionShape" parent="ground_area"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0422903, 0 ) shape = SubResource( 5 ) [node name="focus" parent="." instance=ExtResource( 5 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.807215, 0 ) visible = false mesh = SubResource( 6 ) material/0 = SubResource( 7 ) size = Vector2( 1, 1.5 ) [node name="attack_delay" type="Timer" parent="."] one_shot = true [connection signal="animation_finished" from="creature" to="." method="_on_creature_animation_finished"] [connection signal="equip" from="creature" to="." method="_on_creature_equip"] [connection signal="is_dead" from="creature" to="." method="_on_creature_is_dead"] [connection signal="unequip" from="creature" to="." method="_on_creature_unequip"] [connection signal="body_entered" from="ground_area" to="." method="_on_ground_area_body_entered"] [connection signal="body_exited" from="ground_area" to="." method="_on_ground_area_body_exited"] [connection signal="timeout" from="attack_delay" to="." method="_on_attack_delay_timeout"]