diff --git a/project.godot b/project.godot index d1128cd..17b7d48 100644 --- a/project.godot +++ b/project.godot @@ -33,7 +33,9 @@ gdscript/warnings/unsafe_call_argument=2 [display] window/size/viewport_width=1900 -window/size/viewport_height=768 +window/size/viewport_height=1024 +window/size/resizable=false +window/size/borderless=true window/stretch/mode="canvas_items" [dotnet] @@ -57,49 +59,96 @@ import/fbx/enabled=false forward={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null) ] } left={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null) ] } backward={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"script":null) ] } right={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null) ] } jump={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"echo":false,"script":null) -, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null) ] } boost={ "deadzone": 0.5, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"echo":false,"script":null) -, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":true,"script":null) ] } weapon_trigger={ "deadzone": 0.5, "events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"canceled":false,"pressed":false,"double_click":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":5,"axis_value":1.0,"script":null) ] } weapon_alt={ "deadzone": 0.5, "events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":2,"position":Vector2(209, 12),"global_position":Vector2(213, 53),"factor":1.0,"button_index":2,"canceled":false,"pressed":true,"double_click":false,"script":null) -, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":4,"axis_value":1.0,"script":null) +] +} +forward_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null) +] +} +left_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null) +] +} +backward_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"script":null) +] +} +right_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null) +] +} +jump_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null) +] +} +boost_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":true,"script":null) +] +} +weapon_trigger_2={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":5,"axis_value":1.0,"script":null) +] +} +camera_up={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":-1.0,"script":null) +] +} +camera_left={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":-1.0,"script":null) +] +} +camera_down={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":1.0,"script":null) +] +} +camera_right={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":1.0,"script":null) ] } diff --git a/src/effects/rifle_beam/rifle_beam.tscn b/src/effects/rifle_beam/rifle_beam.tscn index c344a8b..cd62750 100644 --- a/src/effects/rifle_beam/rifle_beam.tscn +++ b/src/effects/rifle_beam/rifle_beam.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=10 format=3 uid="uid://bnj8nokkrrd7d"] [ext_resource type="Script" path="res://src/effects/rifle_beam/rifle_beam.gd" id="1_gqjmp"] -[ext_resource type="Shader" path="res://src/shaders/plasma_morph.gdshader" id="2_01uhq"] +[ext_resource type="Shader" path="res://src/shaders/plasma_morph_compat.gdshader" id="2_em5vi"] [sub_resource type="FastNoiseLite" id="FastNoiseLite_6o211"] frequency = 0.0867 @@ -15,7 +15,7 @@ noise = SubResource("FastNoiseLite_6o211") [sub_resource type="ShaderMaterial" id="ShaderMaterial_igb6u"] resource_local_to_scene = true render_priority = 0 -shader = ExtResource("2_01uhq") +shader = ExtResource("2_em5vi") shader_parameter/color_low = Color(0, 0, 0, 0) shader_parameter/color_hi = Color(1, 1, 1, 1) shader_parameter/threshold = 0.0 diff --git a/src/equip/autocannon/autocannon.gd b/src/equip/autocannon/autocannon.gd index 9546258..660dbb2 100644 --- a/src/equip/autocannon/autocannon.gd +++ b/src/equip/autocannon/autocannon.gd @@ -6,7 +6,6 @@ const BULLET_COLLISION_MASK: int = 0x00000001 @onready var animation_player: AnimationPlayer = $AnimationPlayer @onready var muzzle: Node3D = $Muzzle -@onready var aimcast: RayCast3D = get_tree().get_first_node_in_group("AimCastGroup") @onready var impact_scene: PackedScene = load("res://src/effects/ballistic_impact.tscn") diff --git a/src/equip/rifle/rifle.gd b/src/equip/rifle/rifle.gd index 7276a7b..caf41db 100644 --- a/src/equip/rifle/rifle.gd +++ b/src/equip/rifle/rifle.gd @@ -1,6 +1,6 @@ extends Weapon -const DAMAGE: float = 40.0 +const DAMAGE: float = 100.0 const HEAT_DAMAGE: float = 10.0 const BULLET_COLLISION_MASK: int = 0x00000001 @@ -9,7 +9,6 @@ var _charged: bool = false @onready var animation_player: AnimationPlayer = $AnimationPlayer @onready var muzzle: Node3D = $Muzzle -@onready var aimcast: RayCast3D = get_tree().get_first_node_in_group("AimCastGroup") @onready var rifle_beam_scene: PackedScene = load("res://src/effects/rifle_beam/rifle_beam.tscn") @@ -49,8 +48,6 @@ func release() -> void: else: # sad trombone animation_player.play_backwards("charge") - # DEBUG (REMOVEME) - fire() func deactivate() -> void: diff --git a/src/equip/weapon.gd b/src/equip/weapon.gd index 402d5ef..a04e2de 100644 --- a/src/equip/weapon.gd +++ b/src/equip/weapon.gd @@ -10,6 +10,8 @@ extends Node3D var _excluded_rid: Array[RID] = [] +var aimcast: RayCast3D + func trigger() -> void: pass # Implemented in derived type diff --git a/src/main.tscn b/src/main.tscn index 0df18bb..d3c64f3 100644 --- a/src/main.tscn +++ b/src/main.tscn @@ -1,437 +1,53 @@ -[gd_scene load_steps=33 format=3 uid="uid://d75odchj18u1"] +[gd_scene load_steps=3 format=3 uid="uid://d75odchj18u1"] -[ext_resource type="Script" path="res://src/ui/crosshair.gd" id="1_8vuwf"] [ext_resource type="PackedScene" uid="uid://drbiyuustse8b" path="res://src/maps/arena_map/arena_map.tscn" id="1_bvhtq"] -[ext_resource type="Shader" path="res://src/shaders/invert.gdshader" id="1_rg2hr"] -[ext_resource type="Texture2D" uid="uid://bepxfquua1v6" path="res://assets/textures/crosshair_circle.png" id="3_1ycfj"] -[ext_resource type="Texture2D" uid="uid://hmt7s15m7eto" path="res://assets/textures/crosshair_dot.png" id="3_3u7nt"] -[ext_resource type="Texture2D" uid="uid://mmit1txxkbvb" path="res://assets/textures/compass.png" id="5_6lb45"] -[ext_resource type="Script" path="res://src/ui/compass.gd" id="5_ovssf"] -[ext_resource type="Script" path="res://src/ui/overlay_effects.gd" id="7_o2wgd"] -[ext_resource type="Shader" path="res://src/shaders/speed_lines.gdshader" id="7_sbbkm"] -[ext_resource type="Theme" uid="uid://cq6k0lttfws5w" path="res://src/HUD_theme.tres" id="9_ph71t"] -[ext_resource type="Texture2D" uid="uid://bgujaq21oq2mm" path="res://assets/textures/structure.png" id="10_e82wu"] -[ext_resource type="Shader" path="res://src/shaders/death_fade.gdshader" id="10_jx7mb"] -[ext_resource type="Script" path="res://src/ui/structure_meter.gd" id="10_w8rja"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_csvvm"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_hre76"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_c6880"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="FastNoiseLite" id="FastNoiseLite_gkq2g"] -noise_type = 0 -frequency = 0.1344 - -[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jnd2r"] -noise = SubResource("FastNoiseLite_gkq2g") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_d76dl"] -shader = ExtResource("7_sbbkm") -shader_parameter/line_count = 2.0 -shader_parameter/line_density = 0.0 -shader_parameter/line_falloff = 0.0 -shader_parameter/mask_size = 0.166 -shader_parameter/mask_edge = 1.0 -shader_parameter/animation_speed = 20.0 -shader_parameter/noise = SubResource("NoiseTexture2D_jnd2r") - -[sub_resource type="FastNoiseLite" id="FastNoiseLite_hddyf"] -noise_type = 0 -frequency = 0.018 - -[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_ia5a8"] -width = 512 -height = 256 -seamless = true -noise = SubResource("FastNoiseLite_hddyf") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_rpcp4"] -shader = ExtResource("10_jx7mb") -shader_parameter/threshold = 1.0 -shader_parameter/speed = 0.5 -shader_parameter/color_hi = Color(1, 1, 1, 1) -shader_parameter/color_low = Color(0, 0, 0, 0) -shader_parameter/base_noise = SubResource("NoiseTexture3D_ia5a8") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_3nxtv"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_r85sm"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_say15"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_klw0t"] -shader = ExtResource("1_rg2hr") - -[sub_resource type="Animation" id="Animation_g25ja"] -length = 0.001 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("UI/OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [0.0] -} -tracks/1/type = "value" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath("UI/OverlayEffects/DestructureLabel:visible") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [false] -} -tracks/2/type = "value" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath("UI/OverlayEffects/DeathOverlay:material:shader_parameter/threshold") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [1.0] -} -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("UI/OverlayEffects/DeathOverlay:visible") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [false] -} -tracks/4/type = "value" -tracks/4/imported = false -tracks/4/enabled = true -tracks/4/path = NodePath("UI/MarginContainer:visible") -tracks/4/interp = 1 -tracks/4/loop_wrap = true -tracks/4/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [true] -} - -[sub_resource type="Animation" id="Animation_vu38v"] -resource_name = "boost_lines" -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("UI/OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 0.1, 1), -"transitions": PackedFloat32Array(1, 1.4, 1), -"update": 0, -"values": [0.0, 0.4, 0.0] -} - -[sub_resource type="Animation" id="Animation_gqvyn"] -resource_name = "death_overlay" -length = 2.0 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("UI/OverlayEffects/DeathOverlay:material:shader_parameter/threshold") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 2), -"transitions": PackedFloat32Array(1, 1), -"update": 0, -"values": [1.0, 0.0] -} -tracks/1/type = "value" -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/path = NodePath("UI/OverlayEffects/DeathOverlay:visible") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 1, -"values": [true] -} -tracks/2/type = "value" -tracks/2/imported = false -tracks/2/enabled = true -tracks/2/path = NodePath("UI/MarginContainer:visible") -tracks/2/interp = 1 -tracks/2/loop_wrap = true -tracks/2/keys = { -"times": PackedFloat32Array(0, 0.9, 1, 1.4, 1.5, 1.6), -"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), -"update": 1, -"values": [true, false, true, false, true, false] -} - -[sub_resource type="Animation" id="Animation_hc6tj"] -resource_name = "destructure_alert" -length = 5.0 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("UI/OverlayEffects/DestructureLabel:visible") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 5), -"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1), -"update": 1, -"values": [true, false, true, false, true, false, true, false] -} - -[sub_resource type="AnimationLibrary" id="AnimationLibrary_qjn7a"] -_data = { -"RESET": SubResource("Animation_g25ja"), -"boost_lines": SubResource("Animation_vu38v"), -"death_overlay": SubResource("Animation_gqvyn"), -"destructure_alert": SubResource("Animation_hc6tj") -} +[ext_resource type="PackedScene" uid="uid://boswew1ihrw7p" path="res://src/ui/ui.tscn" id="1_thtk2"] [node name="Main" type="Control"] -custom_minimum_size = Vector2(1900, 768) +custom_minimum_size = Vector2(1900, 1024) layout_mode = 3 anchors_preset = 0 +focus_mode = 1 +mouse_filter = 1 -[node name="UI" type="Control" parent="."] -z_index = 1 -anchors_preset = 0 -offset_right = 40.0 -offset_bottom = 40.0 +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 -[node name="Crosshair" type="CenterContainer" parent="UI" groups=["CrosshairGroup"]] +[node name="UI1" parent="VBoxContainer" instance=ExtResource("1_thtk2")] +layout_mode = 2 + +[node name="UI2" parent="VBoxContainer" instance=ExtResource("1_thtk2")] +layout_mode = 2 + +[node name="ArenaMap" parent="." instance=ExtResource("1_bvhtq")] + +[node name="ViewportContainer1" type="SubViewportContainer" parent="."] layout_mode = 0 offset_right = 1900.0 -offset_bottom = 768.0 -script = ExtResource("1_8vuwf") - -[node name="CrosshairContainer" type="Control" parent="UI/Crosshair"] -custom_minimum_size = Vector2(32, 32) -layout_mode = 2 - -[node name="CrosshairCircle" type="TextureRect" parent="UI/Crosshair/CrosshairContainer"] -material = SubResource("ShaderMaterial_ag8l2") -layout_mode = 2 -offset_right = 32.0 -offset_bottom = 32.0 -texture = ExtResource("3_1ycfj") -stretch_mode = 2 - -[node name="CrosshairDot" type="TextureRect" parent="UI/Crosshair/CrosshairContainer"] -material = SubResource("ShaderMaterial_csvvm") -layout_mode = 2 -offset_right = 32.0 -offset_bottom = 32.0 -texture = ExtResource("3_3u7nt") - -[node name="Compass" type="Control" parent="UI" groups=["CompassGroup"]] -clip_contents = true -anchors_preset = 0 -offset_left = 760.0 -offset_top = 20.0 -offset_right = 1140.0 -offset_bottom = 52.0 -script = ExtResource("5_ovssf") - -[node name="CompassTexture" type="TextureRect" parent="UI/Compass"] -material = SubResource("ShaderMaterial_hre76") -custom_minimum_size = Vector2(2304, 32) -layout_mode = 0 -offset_right = 2304.0 -offset_bottom = 32.0 -texture = ExtResource("5_6lb45") -stretch_mode = 1 - -[node name="OverlayEffects" type="Control" parent="UI" groups=["OverlayEffectsGroup"]] -anchors_preset = 0 -offset_right = 1900.0 -offset_bottom = 768.0 -script = ExtResource("7_o2wgd") - -[node name="DestructureLabel" type="Label" parent="UI/OverlayEffects"] -visible = false -material = SubResource("ShaderMaterial_c6880") -layout_mode = 2 -offset_left = 443.0 -offset_top = 395.0 -offset_right = 1457.0 -offset_bottom = 472.0 -theme = ExtResource("9_ph71t") -theme_override_font_sizes/font_size = 76 -text = "hull destructured -" - -[node name="SpeedLinesOverlay" type="ColorRect" parent="UI/OverlayEffects"] -material = SubResource("ShaderMaterial_d76dl") -layout_mode = 0 -offset_right = 1900.0 -offset_bottom = 768.0 - -[node name="DeathOverlay" type="ColorRect" parent="UI/OverlayEffects"] -visible = false -material = SubResource("ShaderMaterial_rpcp4") -layout_mode = 0 -offset_right = 1900.0 -offset_bottom = 768.0 - -[node name="MarginContainer" type="MarginContainer" parent="UI"] -layout_mode = 0 -offset_right = 160.0 -offset_bottom = 768.0 -theme_override_constants/margin_left = 32 -theme_override_constants/margin_top = 32 -theme_override_constants/margin_right = 32 -theme_override_constants/margin_bottom = 32 - -[node name="HBoxContainer" type="HBoxContainer" parent="UI/MarginContainer"] -layout_mode = 2 -theme_override_constants/separation = 32 - -[node name="HeatContainer" type="VBoxContainer" parent="UI/MarginContainer/HBoxContainer"] -custom_minimum_size = Vector2(48, 0) -layout_mode = 2 -size_flags_horizontal = 4 - -[node name="HeatMeter" type="ProgressBar" parent="UI/MarginContainer/HBoxContainer/HeatContainer" groups=["HeatMeterGroup"]] -material = SubResource("ShaderMaterial_3nxtv") -layout_mode = 2 -size_flags_vertical = 3 -theme = ExtResource("9_ph71t") -fill_mode = 3 -show_percentage = false - -[node name="Control" type="Control" parent="UI/MarginContainer/HBoxContainer/HeatContainer"] -custom_minimum_size = Vector2(48, 17) -layout_mode = 2 - -[node name="Label" type="Label" parent="UI/MarginContainer/HBoxContainer/HeatContainer/Control"] -material = SubResource("ShaderMaterial_r85sm") -layout_mode = 2 -offset_left = -1.0 -offset_right = 51.0 -offset_bottom = 17.0 -size_flags_horizontal = 0 -theme = ExtResource("9_ph71t") -text = "heat" - -[node name="VBoxContainer" type="VBoxContainer" parent="UI/MarginContainer/HBoxContainer"] -custom_minimum_size = Vector2(48, 0) -layout_mode = 2 -size_flags_horizontal = 4 - -[node name="StructureContainer" type="HBoxContainer" parent="UI/MarginContainer/HBoxContainer/VBoxContainer"] -layout_mode = 2 -size_flags_vertical = 10 - -[node name="LabelRotation" type="Control" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer"] -custom_minimum_size = Vector2(11, 128) -layout_mode = 2 -size_flags_vertical = 8 - -[node name="Label" type="Label" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/LabelRotation"] -material = SubResource("ShaderMaterial_say15") -layout_mode = 2 -offset_right = 90.0 -offset_bottom = 11.0 -rotation = 1.5708 -pivot_offset = Vector2(0, 13) -theme = ExtResource("9_ph71t") -text = "structure" - -[node name="StructureMeter" type="VBoxContainer" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer" groups=["StructureMeterGroup"]] -layout_mode = 2 -alignment = 2 -script = ExtResource("10_w8rja") - -[node name="StructureIcon1" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] -material = SubResource("ShaderMaterial_klw0t") -layout_mode = 2 -texture = ExtResource("10_e82wu") - -[node name="StructureIcon2" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] -material = SubResource("ShaderMaterial_klw0t") -layout_mode = 2 -texture = ExtResource("10_e82wu") - -[node name="StructureIcon3" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] -material = SubResource("ShaderMaterial_klw0t") -layout_mode = 2 -texture = ExtResource("10_e82wu") - -[node name="StructureIcon4" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] -material = SubResource("ShaderMaterial_klw0t") -layout_mode = 2 -texture = ExtResource("10_e82wu") - -[node name="StructureIcon5" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] -material = SubResource("ShaderMaterial_klw0t") -layout_mode = 2 -texture = ExtResource("10_e82wu") - -[node name="DamageContainer" type="VBoxContainer" parent="UI/MarginContainer/HBoxContainer/VBoxContainer"] -custom_minimum_size = Vector2(0, 256) -layout_mode = 2 - -[node name="DamageMeter" type="ProgressBar" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/DamageContainer" groups=["DamageMeterGroup"]] -material = SubResource("ShaderMaterial_3nxtv") -layout_mode = 2 -size_flags_vertical = 3 -theme = ExtResource("9_ph71t") -fill_mode = 3 -show_percentage = false - -[node name="CenterContainer" type="CenterContainer" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/DamageContainer"] -layout_mode = 2 - -[node name="Label" type="Label" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/DamageContainer/CenterContainer"] -material = SubResource("ShaderMaterial_r85sm") -layout_mode = 2 -size_flags_horizontal = 4 -theme = ExtResource("9_ph71t") -text = "dmg" - -[node name="ViewportContainer" type="SubViewportContainer" parent="."] -layout_mode = 0 -offset_right = 1900.0 -offset_bottom = 768.0 +offset_bottom = 513.0 +focus_mode = 2 +mouse_filter = 0 stretch = true -[node name="Viewport" type="SubViewport" parent="ViewportContainer"] +[node name="Viewport" type="SubViewport" parent="ViewportContainer1" groups=["Viewport1"]] handle_input_locally = false mesh_lod_threshold = 0.0 -size = Vector2i(1900, 768) +size = Vector2i(1900, 513) render_target_update_mode = 4 -[node name="ArenaMap" parent="ViewportContainer/Viewport" instance=ExtResource("1_bvhtq")] +[node name="ViewportContainer2" type="SubViewportContainer" parent="."] +custom_minimum_size = Vector2(1900, 512) +layout_mode = 0 +offset_top = 513.0 +offset_right = 1900.0 +offset_bottom = 1025.0 -[node name="AnimationPlayer" type="AnimationPlayer" parent="."] -libraries = { -"": SubResource("AnimationLibrary_qjn7a") -} +[node name="Viewport" type="SubViewport" parent="ViewportContainer2" groups=["Viewport2"]] +handle_input_locally = false +size = Vector2i(1900, 512) +render_target_update_mode = 4 diff --git a/src/maps/arena_map/arena_map.tscn b/src/maps/arena_map/arena_map.tscn index b76ce76..fa72374 100644 --- a/src/maps/arena_map/arena_map.tscn +++ b/src/maps/arena_map/arena_map.tscn @@ -95,7 +95,12 @@ _data = { [node name="ArenaMap" type="Node3D"] script = ExtResource("1_5ols7") -[node name="PlayerManager" parent="." instance=ExtResource("2_n8j0g")] +[node name="PlayerManager1" parent="." instance=ExtResource("2_n8j0g")] +transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.1, 20) + +[node name="PlayerManager2" parent="." instance=ExtResource("2_n8j0g")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, -20) +player_id = 2 [node name="Environment" type="Node3D" parent="."] diff --git a/src/npc/mech_character/mech_character.tscn b/src/npc/mech_character/mech_character.tscn index 055349b..415fc07 100644 --- a/src/npc/mech_character/mech_character.tscn +++ b/src/npc/mech_character/mech_character.tscn @@ -20,86 +20,86 @@ script = ExtResource("1_0ew1j") transform = Transform3D(0.15, 0, 0, 0, 0.15, 0, 0, 0, 0.15, 0, 0, -0.05) [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00652992, 6.46847) -bones/3/rotation = Quaternion(0.656238, 0.675607, 0.234226, 0.240924) -bones/4/rotation = Quaternion(0.697261, 0.0564221, 0.0720531, 0.710951) -bones/5/rotation = Quaternion(-0.619035, -0.0014507, -0.100998, 0.778841) -bones/6/rotation = Quaternion(-0.437217, 0.0113251, -0.0630917, 0.897069) -bones/7/rotation = Quaternion(-0.838546, 0.036811, -0.173368, 0.515199) -bones/11/rotation = Quaternion(-0.834921, 0.0434624, -0.168801, 0.522039) -bones/17/rotation = Quaternion(0.751763, 0.00921834, 0.659299, 0.00957109) -bones/23/rotation = Quaternion(0.902269, 0.00361016, 0.148878, 0.404639) -bones/27/rotation = Quaternion(-0.549772, -0.00582429, -0.102386, 0.828996) -bones/33/rotation = Quaternion(-0.541887, -0.00996412, -0.107438, 0.833496) -bones/35/rotation = Quaternion(-0.629369, 0.00357528, -0.102356, 0.770328) -bones/41/rotation = Quaternion(-0.0147555, 0.935574, 0.352617, 0.0120505) -bones/49/rotation = Quaternion(-8.88618e-05, 6.57829e-24, -4.94964e-31, 1) -bones/51/rotation = Quaternion(0.595806, -0.000239682, 0.000322647, 0.803128) -bones/55/rotation = Quaternion(0.595806, 0.000238917, -0.000322078, 0.803128) -bones/74/rotation = Quaternion(-0.655396, 0.674731, 0.236597, -0.243341) -bones/75/rotation = Quaternion(0.69744, -0.0564108, -0.072073, 0.710774) -bones/76/rotation = Quaternion(-0.619187, 0.00144857, 0.101021, 0.778717) -bones/77/rotation = Quaternion(-0.434613, -0.0113456, 0.0627099, 0.89836) -bones/78/rotation = Quaternion(-0.840581, -0.0366409, 0.173806, 0.511734) -bones/82/rotation = Quaternion(-0.836982, -0.0433042, 0.169239, 0.518598) -bones/88/rotation = Quaternion(0.751766, -0.00901419, -0.659303, 0.00924947) -bones/94/rotation = Quaternion(0.90243, -0.00359788, -0.148911, 0.404269) -bones/98/rotation = Quaternion(-0.551637, 0.00582995, 0.102694, 0.827718) -bones/102/rotation = Quaternion(-0.543752, 0.00998477, 0.107769, 0.832238) -bones/106/rotation = Quaternion(-0.629595, -0.00356049, 0.102404, 0.770137) -bones/112/rotation = Quaternion(0.0147588, 0.935589, 0.352575, -0.0120548) -bones/122/position = Vector3(3.16409, -0.187628, 0.386645) -bones/122/rotation = Quaternion(0.993178, -0.00681884, 0.0811594, -0.0834454) -bones/126/position = Vector3(-3.16409, -0.228638, 0.391794) -bones/126/rotation = Quaternion(0.993229, 0.00676917, -0.0811635, -0.0828376) +bones/1/position = Vector3(-1.16428e-18, -0.0054943, 6.33131) +bones/3/rotation = Quaternion(0.652825, 0.672448, 0.243099, 0.250073) +bones/4/rotation = Quaternion(0.720814, 0.0547512, 0.0745786, 0.686926) +bones/5/rotation = Quaternion(-0.639058, -0.00116619, -0.103928, 0.762104) +bones/6/rotation = Quaternion(-0.432013, 0.0116722, -0.062539, 0.899621) +bones/7/rotation = Quaternion(-0.845601, 0.0357566, -0.175166, 0.502988) +bones/11/rotation = Quaternion(-0.842113, 0.0423418, -0.170675, 0.509826) +bones/17/rotation = Quaternion(0.751597, 0.0154489, 0.659195, 0.0180361) +bones/23/rotation = Quaternion(0.884201, 0.00326685, 0.146024, 0.443683) +bones/27/rotation = Quaternion(-0.579241, -0.00534443, -0.10658, 0.808141) +bones/33/rotation = Quaternion(-0.57162, -0.00943029, -0.111596, 0.81284) +bones/35/rotation = Quaternion(-0.65872, 0.00395804, -0.10683, 0.744755) +bones/41/rotation = Quaternion(-0.0149485, 0.938737, 0.344099, 0.0120737) +bones/49/rotation = Quaternion(4.37688e-05, 6.57828e-24, -4.94386e-31, 1) +bones/51/rotation = Quaternion(0.595643, -0.000239311, 0.000322147, 0.80325) +bones/55/rotation = Quaternion(0.595643, 0.000238545, -0.000321578, 0.80325) +bones/74/rotation = Quaternion(-0.652923, 0.672619, 0.242756, -0.24969) +bones/75/rotation = Quaternion(0.72214, -0.0546818, -0.0747348, 0.685521) +bones/76/rotation = Quaternion(-0.63996, 0.00113944, 0.104048, 0.76133) +bones/77/rotation = Quaternion(-0.433074, -0.0117031, 0.0627126, 0.899098) +bones/78/rotation = Quaternion(-0.845331, -0.0357248, 0.175139, 0.503454) +bones/82/rotation = Quaternion(-0.841849, -0.0422912, 0.170661, 0.51027) +bones/88/rotation = Quaternion(0.751556, -0.0167999, -0.659149, 0.0200827) +bones/94/rotation = Quaternion(0.880873, -0.00309725, -0.145554, 0.450407) +bones/98/rotation = Quaternion(-0.579833, 0.00531982, 0.106644, 0.807708) +bones/102/rotation = Quaternion(-0.572229, 0.00939806, 0.111651, 0.812404) +bones/106/rotation = Quaternion(-0.659938, -0.00399149, 0.106996, 0.743652) +bones/112/rotation = Quaternion(0.0148249, 0.940231, 0.339999, -0.0121153) +bones/122/position = Vector3(3.16409, -0.209392, 0.385707) +bones/122/rotation = Quaternion(0.993207, -0.0067908, 0.0811618, -0.0831023) +bones/126/position = Vector3(-3.16409, -0.19985, 0.394355) +bones/126/rotation = Quaternion(0.993201, 0.00679721, -0.0811612, -0.0831807) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(1, 1.91331e-05, -2.89977e-05, -1.9297e-05, 0.99999, -0.00465935, 2.89455e-05, 0.00465932, 0.999989, 0.000243664, 0.0184716, -0.0101423) +transform = Transform3D(0.999998, 0.000417814, 0.00180264, -0.000461563, 0.999705, 0.0243299, -0.0017919, -0.0243308, 0.999703, -0.00779033, -0.0231159, 0.0315084) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(1, 1.36495e-05, -5.88596e-07, -1.37389e-05, 0.999989, -0.00463316, 5.96046e-07, 0.00463316, 0.999989, 0.000226021, 0.0184583, -0.0100445) +transform = Transform3D(0.999998, 0.000643775, 0.00192634, -0.000690788, 0.999699, 0.0245158, -0.00190996, -0.0245172, 0.999698, -0.00811934, -0.0230814, 0.0314264) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(1, 5.50505e-05, -4.09931e-05, -5.51026e-05, 1, -0.00106469, 4.1008e-05, 0.0010647, 1, 0.000217199, 0.0155682, -0.00659958) +transform = Transform3D(0.999999, -0.000215001, 0.000903815, 0.000215536, 1, -0.00056237, -0.000903666, 0.000562519, 1, -0.00640774, -0.00487612, 0.0032531) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999998, -0.000479236, -0.00132395, 0.000473365, 0.999991, -0.00429117, 0.00132614, 0.00429053, 0.99999, 0.00208211, 0.0159009, -0.0103563) +transform = Transform3D(0.999998, -0.000259891, 0.00128455, 0.000222653, 0.999584, 0.028848, -0.00129141, -0.0288478, 0.999583, -0.00617504, -0.0354834, 0.00834596) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(1, 2.8573e-05, -3.27751e-05, -2.86922e-05, 0.999995, -0.00349867, 3.27304e-05, 0.00349873, 0.999994, 0.000209093, 0.0164203, -0.00607324) +transform = Transform3D(0.999999, -0.000219718, 0.00166439, 0.000205353, 0.999963, 0.0086447, -0.00166616, -0.0086444, 0.999961, -0.00669837, -0.00839901, 0.00379372) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(1, 4.27663e-06, -6.96201e-05, -4.44055e-06, 0.999997, -0.00251548, 6.96629e-05, 0.00251563, 0.999997, 0.000421286, 0.0113951, -0.00584364) +transform = Transform3D(0.999999, -0.0010214, -0.00084162, 0.00105689, 0.999063, 0.0432768, 0.00079672, -0.0432776, 0.999063, 0.00604224, -0.266977, -0.00997972) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(1, 6.11544e-05, 2.28956e-05, -6.10799e-05, 0.999992, -0.00416651, -2.30558e-05, 0.00416645, 0.999991, 3.52859e-05, 0.0180683, -0.006706) +transform = Transform3D(0.999998, 0.00074552, 0.00183837, -0.000796914, 0.999604, 0.0281415, -0.00181657, -0.028143, 0.999602, -0.00868869, -0.0176146, 0.0556908) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(1, 6.11544e-05, 2.28956e-05, -6.10799e-05, 0.999992, -0.00416651, -2.30558e-05, 0.00416645, 0.999991, 3.52859e-05, 0.0180683, -0.006706) +transform = Transform3D(0.999998, 0.00074552, 0.00183837, -0.000796914, 0.999604, 0.0281415, -0.00181657, -0.028143, 0.999602, -0.00868869, -0.0176146, 0.0556908) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(1, 6.02901e-05, -1.68383e-06, -6.03124e-05, 0.999994, -0.00337404, 1.56462e-06, 0.0033741, 0.999994, 0.000115633, 0.0163581, -0.00594711) +transform = Transform3D(0.999999, -0.000307597, 0.00141614, 0.000258453, 0.999401, 0.0346135, -0.00142583, -0.0346131, 0.9994, -0.00634098, -0.0428792, 0.0111597) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(1, 1.43424e-05, -1.83433e-05, -1.44169e-05, 0.999993, -0.00376788, 1.83806e-05, 0.00376776, 0.999993, 0.000185251, 0.0170763, -0.00628805) +transform = Transform3D(0.999997, -0.000152886, 0.00222947, 0.000251181, 0.999026, -0.0441336, -0.00222047, 0.0441338, 0.999023, -0.00823092, 0.12966, -0.0438561) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -2.61031e-05, -1.98691e-05, 2.60435e-05, 0.999995, -0.00315795, 2.00106e-05, 0.00315797, 0.999995, 0.00014782, 0.0139953, -0.00649929) +transform = Transform3D(1, -3.00836e-05, -0.000548292, 5.31953e-05, 0.999112, 0.0421352, 0.000546598, -0.0421351, 0.999112, 0.00355887, -0.260173, -0.109031) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -3.29428e-05, -1.52884e-05, 3.2894e-05, 0.999995, -0.00343165, 1.54603e-05, 0.00343162, 0.999994, 0.000126362, 0.0154919, -0.00660944) +transform = Transform3D(1, -0.000211494, -0.000472223, 0.000222665, 0.99972, 0.0236959, 0.000467149, -0.023696, 0.999719, 0.00322175, -0.158728, -0.120737) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00652993, -0.00372887) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0054943, -0.140889) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 8.45999e-08, 6.81917e-07, -8.46266e-08, 1, -2.96832e-05, -6.82067e-07, 2.97129e-05, 1, -7.86781e-06, -0.00537133, -0.0032711) +transform = Transform3D(1, -7.92629e-08, -5.63834e-07, 7.93605e-08, 1, 0.000112325, 5.63682e-07, -0.000112295, 1, 5.72205e-06, -0.00715804, -0.141333) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, -8.21697e-08, -6.8186e-07, 8.21673e-08, 1, -2.96832e-05, 6.81892e-07, 2.9713e-05, 1, 7.86781e-06, -0.00537157, -0.00327206) +transform = Transform3D(1, 8.04875e-08, 5.65289e-07, -8.05683e-08, 1, 0.000112325, -5.65312e-07, -0.000112295, 1, -5.72205e-06, -0.00715804, -0.141334) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000176817, 3.97904e-13, -0.000176817, 1, -9.09154e-13, -0.00767553, -0.00373077) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -8.84533e-05, 3.97904e-13, 8.84533e-05, 1, -9.09154e-13, -0.00492293, -0.140891) [node name="WeaponSlot" type="Node3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0" index="1"] unique_name_in_owner = true @@ -115,58 +115,58 @@ transform = Transform3D(1, 6.97955e-19, 1.77636e-13, 0, -4.37112e-08, -1, -1.355 visible = false [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000176817, 3.97904e-13, -0.000176817, 1, -9.09154e-13, -0.00767553, -0.00373077) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -8.84533e-05, 3.97904e-13, 8.84533e-05, 1, -9.09154e-13, -0.00492293, -0.140891) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.08258e-10, 1, 0.000177441, 1.02476e-08, -0.000177441, 1, -2.38419e-07, -0.00767994, -0.00372887) +transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.10987e-10, 1, -8.78205e-05, 1.02819e-08, 8.78204e-05, 1, -2.38419e-07, -0.00492787, -0.140889) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.08258e-10, 1, 0.000177441, -1.02476e-08, -0.000177441, 1, 2.38419e-07, -0.00767994, -0.00372887) +transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.10987e-10, 1, -8.78205e-05, -1.02819e-08, 8.78204e-05, 1, 2.38419e-07, -0.00492787, -0.140889) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, -1.16813e-27, 2.63915e-23, 1, 0.000177724, -3.52226e-27, -0.000177724, 1, -1.16428e-18, -0.00768018, -0.00372887) +transform = Transform3D(1, -2.63914e-23, 5.76836e-28, 2.63914e-23, 1, -8.75376e-05, 1.73341e-27, 8.75376e-05, 1, -1.16428e-18, -0.00492774, -0.140889) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, -1.16813e-27, 2.63915e-23, 1, 0.000177724, -3.52226e-27, -0.000177724, 1, -1.16428e-18, -0.00768018, -0.00372887) +transform = Transform3D(1, -2.63914e-23, 5.76836e-28, 2.63914e-23, 1, -8.75376e-05, 1.73341e-27, 8.75376e-05, 1, -1.16428e-18, -0.00492774, -0.140889) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(1, -0.000135005, 5.17294e-05, 0.000134751, 0.999991, 0.00465384, -5.25862e-05, -0.0046539, 0.99999, -4.45843e-05, -0.0309148, 0.00594783) +transform = Transform3D(0.999998, -0.00054808, -0.00193057, 0.000592455, 0.999734, 0.0230679, 0.00191738, -0.0230691, 0.999732, 0.00798106, -0.00590265, 0.0358121) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(1, -0.000176832, 6.33895e-05, 0.000176474, 0.999991, 0.00466231, -6.44475e-05, -0.00466242, 0.99999, -1.33514e-05, -0.0308514, 0.00593805) +transform = Transform3D(0.999997, -0.000777751, -0.00209741, 0.000826389, 0.999729, 0.0233013, 0.00207871, -0.0233031, 0.999727, 0.00834894, -0.00591588, 0.0358173) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(1, -6.62543e-05, 3.0145e-05, 6.61854e-05, 1, 0.000156701, -3.03835e-05, -0.000156716, 1, -9.56059e-05, -0.0273882, 0.00152013) +transform = Transform3D(0.999999, 0.000114491, -0.000907227, -0.00011519, 1, -0.000752404, 0.000907138, 0.000752464, 0.999999, 0.00646329, 0.0113585, 0.0082255) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(1, 0.000437662, 0.00129162, -0.000439659, 0.999999, 0.00203107, -0.00129138, -0.0020319, 0.999997, -0.00193715, -0.0282226, -0.00356543) +transform = Transform3D(0.999999, 0.000172243, -0.00135165, -0.000129357, 0.999514, 0.0311721, 0.0013559, -0.0311722, 0.999513, 0.0062499, -0.0249103, 0.0153855) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(1, -6.66231e-05, 1.4782e-05, 6.6489e-05, 0.999994, 0.00358561, -1.52439e-05, -0.00358558, 0.999994, -9.03606e-05, -0.0287099, 0.000867367) +transform = Transform3D(0.999998, 0.000144057, -0.00175065, -0.000133447, 0.999981, 0.00606415, 0.00175147, -0.00606397, 0.99998, 0.00678992, 0.00867057, 0.00950789) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(1, -4.90993e-05, 5.24404e-05, 4.88609e-05, 0.999995, 0.00336359, -5.28246e-05, -0.00336367, 0.999995, -0.000311136, -0.0290347, 0.000319958) +transform = Transform3D(0.999998, 0.0010853, 0.00153478, -0.00116557, 0.998577, 0.0533125, -0.00147477, -0.0533142, 0.998577, -0.00952864, -0.31153, 0.000259876) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(1, -0.000115246, 8.00937e-05, 0.00011465, 0.999975, 0.00708443, -8.11666e-05, -0.00708449, 0.999975, -0.00014019, -0.0354292, 0.00590205) +transform = Transform3D(0.999998, -0.000834569, -0.0019607, 0.000882685, 0.999696, 0.0246448, 0.0019395, -0.0246466, 0.999694, 0.00887799, 0.00245297, 0.06125) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(1, -0.000134856, 0.00011415, 0.000133991, 0.999976, 0.00708792, -0.000115346, -0.00708792, 0.999975, -0.000185728, -0.0354419, 0.00578022) +transform = Transform3D(0.999997, -0.00142378, -0.00204641, 0.00147426, 0.99969, 0.0248809, 0.0020103, -0.0248839, 0.999688, 0.00985193, 0.00258946, 0.0604174) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(1, -6.72936e-05, 1.65626e-05, 6.71521e-05, 0.999992, 0.00391343, -1.70842e-05, -0.00391352, 0.999992, -8.86917e-05, -0.0291497, 0.000947237) +transform = Transform3D(0.999999, 0.000234127, -0.00151022, -0.000184245, 0.999457, 0.0329483, 0.00151706, -0.0329481, 0.999456, 0.00644279, -0.0267844, 0.0170171) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(1, -5.19827e-05, -4.96209e-06, 5.19305e-05, 0.999996, 0.00292119, 4.56721e-06, -0.00292131, 0.999996, -5.19753e-05, -0.0270302, 0.000274181) +transform = Transform3D(0.999997, 9.17837e-05, -0.00230879, -0.000205033, 0.998794, -0.0490984, 0.00230148, 0.0490987, 0.998791, 0.00829101, 0.153097, -0.0398455) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, -4.7069e-06, 1.09979e-05, 4.57093e-06, 0.999992, 0.00412579, -1.12697e-05, -0.00412583, 0.999992, -6.86646e-05, -0.0327854, -0.000397205) +transform = Transform3D(1, 0.00012801, 0.00107839, -0.000181515, 0.998762, 0.0497514, -0.00107073, -0.0497514, 0.998761, -0.00663877, -0.301679, -0.105625) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, -3.25507e-06, 1.35051e-05, 3.12182e-06, 0.999993, 0.00376272, -1.37715e-05, -0.00376278, 0.999993, -8.46386e-05, -0.0307763, -0.000585079) +transform = Transform3D(1, 0.000204452, 0.000578293, -0.000217472, 0.999745, 0.0226001, -0.00057357, -0.0226002, 0.999745, -0.00390029, -0.151668, -0.122149) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00652993, -0.00372887) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0054943, -0.140889) [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) diff --git a/src/npc/mech_enemy/mech_enemy.tscn b/src/npc/mech_enemy/mech_enemy.tscn index 0c524cf..27fe69b 100644 --- a/src/npc/mech_enemy/mech_enemy.tscn +++ b/src/npc/mech_enemy/mech_enemy.tscn @@ -24,86 +24,86 @@ max_damage = 100.0 max_structure = 5 [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00663787, 6.29231) -bones/3/rotation = Quaternion(0.652547, 0.672245, 0.243714, 0.250746) -bones/4/rotation = Quaternion(0.726543, 0.0543345, 0.0751952, 0.68083) -bones/5/rotation = Quaternion(-0.643942, -0.00109193, -0.104644, 0.757883) -bones/6/rotation = Quaternion(-0.432506, 0.0117586, -0.0626639, 0.899374) -bones/7/rotation = Quaternion(-0.84641, 0.0355289, -0.175436, 0.501548) -bones/11/rotation = Quaternion(-0.842957, 0.042066, -0.170977, 0.508351) -bones/17/rotation = Quaternion(0.751517, 0.0174765, 0.659142, 0.0211634) -bones/23/rotation = Quaternion(0.878881, 0.00321576, 0.14516, 0.454408) -bones/27/rotation = Quaternion(-0.585773, -0.0052189, -0.107488, 0.803299) -bones/33/rotation = Quaternion(-0.57823, -0.00928012, -0.11248, 0.80803) -bones/35/rotation = Quaternion(-0.66582, 0.00405588, -0.107906, 0.738257) -bones/41/rotation = Quaternion(-0.0149927, 0.939737, 0.341357, 0.0120879) -bones/49/rotation = Quaternion(-7.02198e-05, 6.57829e-24, -4.94868e-31, 1) -bones/51/rotation = Quaternion(0.595812, -0.000239709, 0.000322683, 0.803124) -bones/55/rotation = Quaternion(0.595812, 0.000238943, -0.000322114, 0.803124) -bones/74/rotation = Quaternion(-0.651697, 0.671353, 0.246011, -0.253088) -bones/75/rotation = Quaternion(0.726517, -0.0543364, -0.0751923, 0.680858) -bones/76/rotation = Quaternion(-0.643919, 0.00109224, 0.104641, 0.757904) -bones/77/rotation = Quaternion(-0.429941, -0.0117764, 0.0622872, 0.900629) -bones/78/rotation = Quaternion(-0.848258, -0.0353734, 0.175833, 0.498287) -bones/82/rotation = Quaternion(-0.844827, -0.041922, 0.171375, 0.505114) -bones/88/rotation = Quaternion(0.751528, -0.0171667, -0.659154, 0.0206801) -bones/94/rotation = Quaternion(0.879226, -0.00320471, -0.145224, 0.45372) -bones/98/rotation = Quaternion(-0.587276, 0.00521601, 0.107734, 0.802167) -bones/102/rotation = Quaternion(-0.579729, 0.00929395, 0.112749, 0.806918) -bones/106/rotation = Quaternion(-0.665787, -0.00405554, 0.1079, 0.738288) -bones/112/rotation = Quaternion(0.0149948, 0.939734, 0.341363, -0.0120922) -bones/122/position = Vector3(3.16409, -0.187045, 0.38667) -bones/122/rotation = Quaternion(0.993178, -0.00681964, 0.0811594, -0.0834537) -bones/126/position = Vector3(-3.16409, -0.228447, 0.389736) -bones/126/rotation = Quaternion(0.99323, 0.00676854, -0.0811635, -0.0828304) +bones/1/position = Vector3(-1.16428e-18, -0.00559251, 6.40927) +bones/3/rotation = Quaternion(0.6547, 0.674227, 0.238228, 0.245019) +bones/4/rotation = Quaternion(0.708461, 0.0556945, 0.0733162, 0.699718) +bones/5/rotation = Quaternion(-0.628445, -0.0013148, -0.102368, 0.771088) +bones/6/rotation = Quaternion(-0.435145, 0.0114869, -0.0628814, 0.898089) +bones/7/rotation = Quaternion(-0.84154, 0.0363645, -0.174136, 0.510063) +bones/11/rotation = Quaternion(-0.837969, 0.0429847, -0.169595, 0.516912) +bones/17/rotation = Quaternion(0.751916, 0.0129708, 0.65898, 0.0141343) +bones/23/rotation = Quaternion(0.892204, 0.00328584, 0.147353, 0.426905) +bones/27/rotation = Quaternion(-0.563348, -0.00561388, -0.104318, 0.819589) +bones/33/rotation = Quaternion(-0.555583, -0.00972756, -0.109352, 0.824181) +bones/35/rotation = Quaternion(-0.643161, 0.00374865, -0.104456, 0.758564) +bones/41/rotation = Quaternion(-0.0147758, 0.937913, 0.346345, 0.0120991) +bones/49/rotation = Quaternion(0.000126153, 6.57829e-24, -4.94097e-31, 1) +bones/51/rotation = Quaternion(0.595651, -0.000239336, 0.00032218, 0.803243) +bones/55/rotation = Quaternion(0.595651, 0.00023857, -0.000321611, 0.803243) +bones/74/rotation = Quaternion(-0.654427, 0.673904, 0.239026, -0.245857) +bones/75/rotation = Quaternion(0.707703, -0.0557359, -0.0732293, 0.700491) +bones/76/rotation = Quaternion(-0.627898, 0.00132897, 0.102293, 0.771543) +bones/77/rotation = Quaternion(-0.433898, -0.0114737, 0.0626922, 0.898705) +bones/78/rotation = Quaternion(-0.842208, -0.0363431, 0.174259, 0.50892) +bones/82/rotation = Quaternion(-0.838636, -0.0429831, 0.169708, 0.515793) +bones/88/rotation = Quaternion(0.75193, -0.0118468, -0.65902, 0.0124279) +bones/94/rotation = Quaternion(0.894619, -0.00341755, -0.147692, 0.421702) +bones/98/rotation = Quaternion(-0.563328, 0.00562399, 0.104329, 0.819601) +bones/102/rotation = Quaternion(-0.555554, 0.00974624, 0.109374, 0.824198) +bones/106/rotation = Quaternion(-0.642404, -0.00373093, 0.104349, 0.75922) +bones/112/rotation = Quaternion(0.0148415, 0.936864, 0.349169, -0.0120623) +bones/122/position = Vector3(3.16409, -0.198025, 0.389896) +bones/122/rotation = Quaternion(0.993196, -0.00680206, 0.0811608, -0.08324) +bones/126/position = Vector3(-3.16409, -0.213151, 0.385528) +bones/126/rotation = Quaternion(0.993212, 0.00678596, -0.0811622, -0.083043) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(0.999997, 0.000493586, 0.00237732, -0.000557542, 0.999637, 0.0269629, -0.0023632, -0.0269641, 0.999634, -0.00991583, -0.00331461, 0.0294973) +transform = Transform3D(1, 0.000318378, 0.000898682, -0.000325099, 0.999972, 0.00759897, -0.000896111, -0.00759912, 0.999971, -0.0036726, 0.00510514, 0.0121794) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999996, 0.00077875, 0.00259168, -0.000849172, 0.999628, 0.0272541, -0.00256956, -0.027256, 0.999625, -0.0103793, -0.0033015, 0.0295489) +transform = Transform3D(0.999999, 0.00042288, 0.000964217, -0.000430211, 0.99997, 0.00767097, -0.000960834, -0.00767124, 0.99997, -0.00383115, 0.00516629, 0.0121645) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(0.999999, -0.000282886, 0.00114633, 0.000284337, 0.999999, -0.00128633, -0.00114608, 0.00128683, 0.999999, -0.00811362, 0.0171, -0.00332582) +transform = Transform3D(1, 6.71353e-05, 0.00049971, -6.66566e-05, 1, -0.000818506, -0.000499666, 0.00081861, 0.999999, -0.003088, 0.0112417, 0.00234774) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999998, -0.000418186, 0.00166774, 0.000360385, 0.999406, 0.0344525, -0.00168119, -0.0344519, 0.999405, -0.00786066, -0.0232467, 0.00464523) +transform = Transform3D(0.999999, 0.000739768, 0.000292659, -0.00074321, 0.999923, 0.012344, -0.000283435, -0.0123443, 0.999924, -0.00264668, -0.0021711, 0.00415254) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(0.999998, -0.000314824, 0.00211264, 0.00030046, 0.999977, 0.00679591, -0.0021148, -0.0067952, 0.999974, -0.00848651, 0.0139302, -0.00190759) +transform = Transform3D(1, 4.08366e-05, 0.000857994, -4.19468e-05, 1, 0.00138366, -0.000857823, -0.0013836, 0.999999, -0.00322962, 0.0103143, 0.00302935) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(0.999999, -0.00133447, -0.00101046, 0.00138558, 0.998624, 0.0524211, 0.000939032, -0.0524224, 0.998625, 0.00739646, -0.319079, -0.0177898) +transform = Transform3D(0.999999, -0.000429884, -0.00092721, 0.00045462, 0.999642, 0.0267534, 0.000915455, -0.0267538, 0.999642, 0.00553083, -0.15263, -0.000828266) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999997, 0.000860497, 0.00237821, -0.000930697, 0.99956, 0.0296654, -0.0023517, -0.0296674, 0.999557, -0.0110192, 0.00506043, 0.061137) +transform = Transform3D(0.999999, 0.000489339, 0.000953365, -0.000498235, 0.999956, 0.00943464, -0.000948582, -0.00943509, 0.999955, -0.00419235, 0.00814033, 0.0255735) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999997, 0.000860497, 0.00237821, -0.000930697, 0.99956, 0.0296654, -0.0023517, -0.0296674, 0.999557, -0.0110192, 0.00506043, 0.061137) +transform = Transform3D(0.999999, 0.000489339, 0.000953365, -0.000498235, 0.999956, 0.00943464, -0.000948582, -0.00943509, 0.999955, -0.00419235, 0.00814033, 0.0255735) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(0.999998, -0.000447929, 0.00180467, 0.000376947, 0.999234, 0.0391413, -0.00182089, -0.0391404, 0.999232, -0.00803709, -0.0288801, 0.00760293) +transform = Transform3D(1, 1.04755e-05, 0.000752226, -2.05487e-05, 0.999909, 0.0134667, -0.000751883, -0.0134667, 0.999909, -0.00307822, -0.00578249, 0.00597286) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.999996, -0.000202127, 0.00282205, 0.000368141, 0.998261, -0.0589521, -0.00280529, 0.0589529, 0.998257, -0.0104382, 0.186422, -0.0598392) +transform = Transform3D(0.999999, 3.7618e-05, 0.00110759, -1.15857e-05, 0.999726, -0.0234224, -0.00110805, 0.0234223, 0.999725, -0.00387526, 0.0750109, -0.0198331) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -8.54582e-05, -0.000693315, 0.000119934, 0.998754, 0.0499096, 0.000688083, -0.0499094, 0.998753, 0.00450516, -0.306208, -0.142106) +transform = Transform3D(1, -9.76678e-05, -0.000560014, 0.000110246, 0.999749, 0.0223972, 0.000557751, -0.0223971, 0.999749, 0.00344968, -0.137901, -0.049593) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.0003013, -0.000563813, 0.000315631, 0.999671, 0.0256401, 0.000555804, -0.0256402, 0.999671, 0.00388741, -0.172657, -0.158079) +transform = Transform3D(1, -9.38153e-05, -0.000292436, 9.64262e-05, 0.999962, 0.00873956, 0.000291676, -0.00873962, 0.999962, 0.00196409, -0.0622107, -0.056293) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00663787, -0.179889) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00559253, -0.0629292) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 8.9982e-08, 7.71669e-07, -8.99428e-08, 1, -8.14201e-05, -7.71665e-07, 8.14498e-05, 1, -8.70228e-06, -0.00507689, -0.179399) +transform = Transform3D(1, -7.15926e-08, -4.80371e-07, 7.15135e-08, 1, -7.36715e-05, 4.80268e-07, 7.37011e-05, 1, 4.88758e-06, -0.00595307, -0.0633259) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, -8.9178e-08, -7.70389e-07, 8.91861e-08, 1, -8.14201e-05, 7.70268e-07, 8.14499e-05, 1, 8.70228e-06, -0.00507689, -0.1794) +transform = Transform3D(1, 7.27784e-08, 4.81825e-07, -7.27743e-08, 1, -7.36417e-05, -4.81781e-07, 7.37012e-05, 1, -4.88758e-06, -0.00595379, -0.0633259) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000139534, 3.97904e-13, -0.000139534, 1, -9.09154e-13, -0.00754225, -0.17989) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 1.98952e-13, 1, -0.000253201, 3.97904e-13, 0.000253201, 1, -9.09154e-13, -0.00395525, -0.0629311) [node name="VisionCone" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D/Cube_005_Material_0" index="2" instance=ExtResource("3_m0nb6")] unique_name_in_owner = true @@ -111,58 +111,58 @@ transform = Transform3D(2, 6.81965e-13, 6.82114e-13, -6.82121e-13, 2, 0.00045645 body_offset = Vector3(0, 1, 0) [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000139534, 3.97904e-13, -0.000139534, 1, -9.09154e-13, -0.00754225, -0.17989) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 1.98952e-13, 1, -0.000253201, 3.97904e-13, 0.000253201, 1, -9.09154e-13, -0.00395525, -0.0629311) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.08656e-10, 1, 0.000140157, 1.02361e-08, -0.000140157, 1, -2.38419e-07, -0.00754666, -0.179889) +transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.1272e-10, 1, -0.000252589, 1.02308e-08, 0.000252589, 1, -2.38419e-07, -0.00395942, -0.0629282) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.08656e-10, 1, 0.000140157, -1.02361e-08, -0.000140157, 1, 2.38419e-07, -0.00754666, -0.179889) +transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.1272e-10, 1, -0.000252589, -1.02308e-08, 0.000252589, 1, 2.38419e-07, -0.00395942, -0.0629282) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, -9.22863e-28, 2.63915e-23, 1, 0.00014044, -2.78354e-27, -0.00014044, 1, -1.16428e-18, -0.00754682, -0.179889) +transform = Transform3D(1, -2.63915e-23, 1.66073e-27, 2.63915e-23, 1, -0.000252306, 4.99799e-27, 0.000252306, 1, -1.16428e-18, -0.00395954, -0.0629287) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, -9.22863e-28, 2.63915e-23, 1, 0.00014044, -2.78354e-27, -0.00014044, 1, -1.16428e-18, -0.00754682, -0.179889) +transform = Transform3D(1, -2.63915e-23, 1.66073e-27, 2.63915e-23, 1, -0.000252306, 4.99799e-27, 0.000252306, 1, -1.16428e-18, -0.00395954, -0.0629287) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(0.999997, -0.000593811, -0.00234684, 0.000677377, 0.999361, 0.0357652, 0.00232412, -0.0357668, 0.999358, 0.010056, -0.0508438, 0.0440001) +transform = Transform3D(1, -0.000264049, -0.00081791, 0.000272661, 0.999944, 0.0106545, 0.000815079, -0.0106548, 0.999943, 0.00362563, -0.0173482, 0.0136192) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(0.999996, -0.000920266, -0.00252651, 0.00101069, 0.999351, 0.036034, 0.00249176, -0.0360364, 0.999348, 0.0105317, -0.0507587, 0.043953) +transform = Transform3D(1, -0.000371486, -0.000838928, 0.000380367, 0.999944, 0.0106792, 0.000834972, -0.0106796, 0.999943, 0.00375009, -0.017247, 0.01349) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(0.999999, 0.000260631, -0.00115325, -0.000260664, 1, -2.47508e-05, 0.00115328, 2.50638e-05, 1, 0.00820613, -0.0247099, 0.0035671) +transform = Transform3D(1, -6.20261e-06, -0.000506401, 5.93811e-06, 1, -0.000422001, 0.000506446, 0.000421941, 1, 0.00310636, -0.00903592, 0.00141376) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(0.999999, 0.000373006, -0.00169478, -0.00030385, 0.999187, 0.0403219, 0.00170811, -0.0403217, 0.999185, 0.00798154, -0.0656024, 0.0103509) +transform = Transform3D(1, -0.000668362, -0.000289246, 0.000672057, 0.999935, 0.01146, 0.000281274, -0.0114606, 0.999934, 0.00268149, -0.0180829, 0.00153661) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(0.999998, 0.00027433, -0.00212068, -0.000245012, 0.999905, 0.0138178, 0.00212428, -0.0138172, 0.999902, 0.00857544, -0.030013, 0.00384068) +transform = Transform3D(1, -7.41333e-06, -0.00082317, 1.11312e-05, 0.99999, 0.00458708, 0.000823133, -0.00458714, 0.999989, 0.00322676, -0.0109518, 0.00139308) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(0.999999, 0.00128147, 0.000984342, -0.00133638, 0.998319, 0.0579528, -0.00090843, -0.0579542, 0.998319, -0.00721288, -0.356334, -0.0107541) +transform = Transform3D(1, 0.000355631, 0.000373458, -0.000363126, 0.999802, 0.0199102, -0.000366342, -0.0199103, 0.999802, -0.00281549, -0.125625, -0.00549841) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(0.999997, -0.000921801, -0.00229023, 0.00101389, 0.999178, 0.0405371, 0.00225094, -0.0405394, 0.999175, 0.0109382, -0.0461727, 0.0723205) +transform = Transform3D(1, -0.000454798, -0.000884488, 0.000467092, 0.999902, 0.0140249, 0.00087801, -0.0140255, 0.999901, 0.0041132, -0.0166522, 0.0251937) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(0.999996, -0.00164211, -0.00234484, 0.00173639, 0.999166, 0.0407986, 0.00227588, -0.0408025, 0.999165, 0.0120246, -0.0459616, 0.0711391) +transform = Transform3D(1, -0.000711679, -0.000900201, 0.000724241, 0.999901, 0.0141135, 0.000890065, -0.0141143, 0.9999, 0.004493, -0.0165757, 0.0247655) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(0.999998, 0.000407889, -0.00181714, -0.000323623, 0.998935, 0.0461285, 0.00183402, -0.0461279, 0.998934, 0.0081346, -0.0727206, 0.0136511) +transform = Transform3D(1, 2.17333e-05, -0.000716627, -1.02296e-05, 0.999871, 0.0160861, 0.000716835, -0.0160862, 0.99987, 0.00307703, -0.0263669, 0.00426745) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(0.999996, 0.000161514, -0.0028273, -0.000307962, 0.998654, -0.0518785, 0.00281513, 0.051879, 0.998649, 0.0105205, 0.141902, -0.0552483) +transform = Transform3D(1, -1.3344e-05, -0.00107086, -6.83218e-06, 0.999824, -0.018789, 0.00107089, 0.0187889, 0.999823, 0.00387764, 0.0499588, -0.0203514) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 5.24819e-05, 0.000672923, -9.06978e-05, 0.99838, 0.0568945, -0.00066886, -0.0568945, 0.99838, -0.00434971, -0.350918, -0.133945) +transform = Transform3D(1, 1.9161e-05, 0.00024629, -2.38363e-05, 0.999823, 0.01884, -0.000245886, -0.0188401, 0.999822, -0.00161672, -0.120143, -0.0497384) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 0.000261278, 0.000551664, -0.000279163, 0.999467, 0.0326453, -0.000542855, -0.0326454, 0.999467, -0.00377631, -0.217535, -0.150867) +transform = Transform3D(1, 9.55554e-05, 0.000229453, -9.81597e-05, 0.999938, 0.0112026, -0.000228373, -0.0112027, 0.999938, -0.00155973, -0.0780743, -0.0538783) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00663787, -0.179889) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00559253, -0.0629292) [node name="NavigationAgent3D" type="NavigationAgent3D" parent="." index="5"] path_desired_distance = 2.5 diff --git a/src/player/player.gd b/src/player/player.gd index 130b656..14d8719 100644 --- a/src/player/player.gd +++ b/src/player/player.gd @@ -11,41 +11,36 @@ var _controllable: bool = true @onready var camera_root: ThirdPersonCamera = $CameraRoot @onready var animation_player: AnimationPlayer = $AnimationPlayer - -@onready var _crosshair: Crosshair = get_tree().get_first_node_in_group("CrosshairGroup") -@onready var _overlay: OverlayEffects = get_tree().get_first_node_in_group("OverlayEffectsGroup") -@onready var _heat_meter: ProgressBar = get_tree().get_first_node_in_group("HeatMeterGroup") -@onready var _damage_meter: ProgressBar = get_tree().get_first_node_in_group("DamageMeterGroup") -@onready -var _structure_meter: StructureMeter = get_tree().get_first_node_in_group("StructureMeterGroup") +@onready var aim_cast: RayCast3D = $CameraRoot/AimCast # gdlint: disable=class-definitions-order var structure: int: set(value): - _structure_meter.structure_count = clamp( + manager.structure_meter.structure_count = clamp( value, StructureMeter.MIN_STRUCTURE, StructureMeter.MAX_STRUCTURE ) get: - return _structure_meter.structure_count + return manager.structure_meter.structure_count # gdlint: enable=class-definitions-order func _ready() -> void: super._ready() - _heat_meter.value = _heat - _damage_meter.value = _damage + manager.heat_meter.value = _heat + manager.damage_meter.value = _damage + _weapon.aimcast = aim_cast func deal_damage(delta: float) -> void: _damage += delta - _damage_meter.value = _damage + manager.damage_meter.value = _damage if _damage >= MAX_DAMAGE: overdamage() func deal_heat(delta: float) -> void: _heat += delta - _heat_meter.value = _heat + manager.heat_meter.value = _heat if _heat >= MAX_HEAT: overheat() @@ -66,10 +61,10 @@ func destructure() -> void: _controllable = false shutdown() if structure > 0: - _overlay.play_destructure() + manager.overlay.play_destructure() animation_player.play("destructure_respawn") else: - _overlay.play_death() + manager.overlay.play_death() print("GAME OVER DUDE") @@ -85,35 +80,16 @@ func _physics_process(delta: float) -> void: var delta_factor: float = delta * GameState.TARGET_FPS - # DEBUG BLOCK {{{ - if Input.is_action_just_pressed("ui_left"): - deal_structure(-1) - - if Input.is_action_just_pressed("ui_right"): - deal_structure(1) - - if Input.is_action_just_pressed("ui_up"): - deal_heat(1) - deal_damage(-1) - - if Input.is_action_just_pressed("ui_down"): - deal_heat(-1) - deal_damage(1) - - if Input.is_action_just_pressed("ui_cancel"): - deal_damage(100) - # DEBUG BLOCK }}} - if is_boosting(): - _crosshair.jostle(Vector2(randf_range(-3, 3), randf_range(-3, 3))) + manager.crosshair.jostle(Vector2(randf_range(-3, 3), randf_range(-3, 3))) # Handle jump. - if Input.is_action_just_pressed("jump") and is_on_floor(): + if Input.is_action_just_pressed(manager.jump_action()) and is_on_floor(): jump() # Get the input direction and handle the movement/deceleration. var movement: Vector3 = Vector3.ZERO - var input_dir: Vector2 = Input.get_vector("left", "right", "forward", "backward") + var input_dir: Vector2 = manager.get_input_vector() if input_dir: # Transform movement based on camera angle movement = ( @@ -125,9 +101,9 @@ func _physics_process(delta: float) -> void: . normalized() ) - if Input.is_action_just_pressed("boost") and boost_ready(): + if Input.is_action_just_pressed(manager.boost_action()) and boost_ready(): boost(movement) - _overlay.play_boost() + manager.overlay.play_boost() animation_player.play("boost_fov") animation_player.seek(0) @@ -143,10 +119,10 @@ func _physics_process(delta: float) -> void: delta_factor * TURN_SENSITIVITY ) - if Input.is_action_just_pressed("weapon_trigger"): + if Input.is_action_just_pressed(manager.weapon_action()): _weapon.trigger() - if Input.is_action_just_released("weapon_trigger"): + if Input.is_action_just_released(manager.weapon_action()): _weapon.release() # Take heat if exposed to the sun: @@ -157,5 +133,5 @@ func _physics_process(delta: float) -> void: func _on_mech_stomp() -> void: - _crosshair.jostle(Vector2(randf_range(-1, 1), randf_range(-1, 5))) + manager.crosshair.jostle(Vector2(randf_range(-1, 1), randf_range(-1, 5))) # camera_root.jostle(randf_range(-2, 2)) diff --git a/src/player/player.tscn b/src/player/player.tscn index 4eae154..72e795a 100644 --- a/src/player/player.tscn +++ b/src/player/player.tscn @@ -63,140 +63,140 @@ _data = { script = ExtResource("1_h16ke") [node name="Skeleton3D" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5" index="0"] -bones/1/position = Vector3(-1.16428e-18, -0.00625332, 6.22668) -bones/3/rotation = Quaternion(0.651396, 0.671209, 0.246541, 0.25373) -bones/4/rotation = Quaternion(0.737153, 0.0535674, 0.0763608, 0.669257) -bones/5/rotation = Quaternion(-0.652979, -0.00101519, -0.105892, 0.749936) -bones/6/rotation = Quaternion(-0.431764, 0.0118393, -0.0626393, 0.899731) -bones/7/rotation = Quaternion(-0.849564, 0.0349521, -0.176548, 0.495832) -bones/11/rotation = Quaternion(-0.846193, 0.0412531, -0.172066, 0.502641) -bones/17/rotation = Quaternion(0.750926, 0.0220907, 0.659414, 0.0281955) -bones/23/rotation = Quaternion(0.86921, 0.00330647, 0.143504, 0.473149) -bones/27/rotation = Quaternion(-0.598465, -0.00500283, -0.109267, 0.793647) -bones/33/rotation = Quaternion(-0.591048, -0.00908817, -0.114169, 0.798464) -bones/35/rotation = Quaternion(-0.678875, 0.00411232, -0.109741, 0.725995) -bones/41/rotation = Quaternion(-0.0150623, 0.942095, 0.334789, 0.0121375) -bones/49/rotation = Quaternion(-0.000134777, 6.57829e-24, -4.95253e-31, 1) -bones/51/rotation = Quaternion(0.595792, -0.000239576, 0.000322504, 0.803139) -bones/55/rotation = Quaternion(0.595792, 0.00023881, -0.000321935, 0.803139) -bones/74/rotation = Quaternion(-0.650443, 0.670243, 0.249041, -0.256274) -bones/75/rotation = Quaternion(0.737812, -0.0535205, -0.0764348, 0.668526) -bones/76/rotation = Quaternion(-0.653547, 0.00100658, 0.105975, 0.749429) -bones/77/rotation = Quaternion(-0.429047, -0.011862, 0.0622482, 0.901057) -bones/78/rotation = Quaternion(-0.85198, -0.0347576, 0.17704, 0.491507) -bones/82/rotation = Quaternion(-0.848643, -0.0410502, 0.172598, 0.498326) -bones/88/rotation = Quaternion(0.750917, -0.0223197, -0.659403, 0.0285337) -bones/94/rotation = Quaternion(0.868786, -0.00329651, -0.143439, 0.473947) -bones/98/rotation = Quaternion(-0.600942, 0.0049751, 0.109639, 0.791722) -bones/102/rotation = Quaternion(-0.593543, 0.00907395, 0.114561, 0.796556) -bones/106/rotation = Quaternion(-0.679693, -0.00412398, 0.109865, 0.725211) -bones/112/rotation = Quaternion(0.0150685, 0.942205, 0.334478, -0.0121439) -bones/122/position = Vector3(3.16409, -0.189686, 0.386556) -bones/122/rotation = Quaternion(0.993181, -0.00681619, 0.0811596, -0.083413) -bones/126/position = Vector3(-3.16409, -0.228764, 0.397146) -bones/126/rotation = Quaternion(0.993227, 0.00677182, -0.0811633, -0.08287) +bones/1/position = Vector3(-1.16428e-18, -0.00711169, 6.2403) +bones/3/rotation = Quaternion(0.651548, 0.671355, 0.24618, 0.253303) +bones/4/rotation = Quaternion(0.73464, 0.0537681, 0.0761003, 0.672028) +bones/5/rotation = Quaternion(-0.650847, -0.000993103, -0.105645, 0.751822) +bones/6/rotation = Quaternion(-0.431505, 0.0119056, -0.0626059, 0.899857) +bones/7/rotation = Quaternion(-0.848606, 0.0351569, -0.176018, 0.497643) +bones/11/rotation = Quaternion(-0.845203, 0.041661, -0.17159, 0.504433) +bones/17/rotation = Quaternion(0.751382, 0.02038, 0.659055, 0.0256098) +bones/23/rotation = Quaternion(0.871145, 0.00315792, 0.143895, 0.469458) +bones/27/rotation = Quaternion(-0.595436, -0.00505166, -0.10885, 0.795979) +bones/33/rotation = Quaternion(-0.58799, -0.00908788, -0.113829, 0.800767) +bones/35/rotation = Quaternion(-0.675805, 0.00420145, -0.10942, 0.728902) +bones/41/rotation = Quaternion(-0.015051, 0.941438, 0.336631, 0.0121203) +bones/49/rotation = Quaternion(1.20534e-05, 6.57828e-24, -4.94531e-31, 1) +bones/51/rotation = Quaternion(0.595819, -0.000239696, 0.000322665, 0.803119) +bones/55/rotation = Quaternion(0.595819, 0.00023893, -0.000322096, 0.803119) +bones/74/rotation = Quaternion(-0.65072, 0.670468, 0.248416, -0.255589) +bones/75/rotation = Quaternion(0.734186, -0.0538003, -0.0760494, 0.672527) +bones/76/rotation = Quaternion(-0.650453, 0.000998948, 0.105587, 0.752171) +bones/77/rotation = Quaternion(-0.428912, -0.0119165, 0.0622269, 0.901122) +bones/78/rotation = Quaternion(-0.850516, -0.0350211, 0.176408, 0.494244) +bones/82/rotation = Quaternion(-0.847131, -0.0415657, 0.171971, 0.501067) +bones/88/rotation = Quaternion(0.751401, -0.0199265, -0.659075, 0.0249221) +bones/94/rotation = Quaternion(0.87184, -0.00314583, -0.144019, 0.468128) +bones/98/rotation = Quaternion(-0.596289, 0.00505966, 0.109002, 0.795319) +bones/102/rotation = Quaternion(-0.588829, 0.0091146, 0.114004, 0.800125) +bones/106/rotation = Quaternion(-0.675237, -0.00419339, 0.109334, 0.729441) +bones/112/rotation = Quaternion(0.0150487, 0.941381, 0.336791, -0.0121246) +bones/122/position = Vector3(3.16409, -0.186119, 0.386721) +bones/122/rotation = Quaternion(0.993177, -0.0068208, 0.0811594, -0.0834612) +bones/126/position = Vector3(-3.16409, -0.227672, 0.384868) +bones/126/rotation = Quaternion(0.993231, 0.00676755, -0.0811628, -0.0828238) [node name="Plane_009_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="0"] -transform = Transform3D(0.999992, 0.000149131, 0.00413907, -0.000314847, 0.999198, 0.0400581, -0.00412982, -0.0400591, 0.999189, -0.0143139, -0.00171494, 0.0483842) +transform = Transform3D(0.999995, 0.000672162, 0.0030969, -0.000782713, 0.999357, 0.035875, -0.00307059, -0.0358775, 0.999352, -0.0128465, -0.0059588, 0.0395161) [node name="Plane_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="1"] -transform = Transform3D(0.999989, 0.0009211, 0.00458287, -0.00110571, 0.999182, 0.0404292, -0.00454191, -0.0404337, 0.999172, -0.015455, -0.00041616, 0.0484503) +transform = Transform3D(0.999994, 0.00103894, 0.00336584, -0.00116023, 0.999342, 0.0362459, -0.00332578, -0.0362498, 0.999337, -0.0134375, -0.00594306, 0.0395533) [node name="Cube_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="2"] -transform = Transform3D(0.999998, -0.000620119, 0.00195104, 0.000622921, 0.999999, -0.00144377, -0.00195017, 0.00144503, 0.999997, -0.01173, 0.0290573, -0.0014388) +transform = Transform3D(0.999999, -0.000319269, 0.0015057, 0.000321506, 0.999999, -0.00142531, -0.00150506, 0.00142561, 0.999998, -0.0105324, 0.0208585, -0.00381646) [node name="Plane_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="3"] -transform = Transform3D(0.999993, -0.00183529, 0.00313874, 0.00166701, 0.998606, 0.0527506, -0.00323114, -0.052745, 0.998603, -0.0118513, -0.0373511, 0.0139661) +transform = Transform3D(0.999996, -0.000568926, 0.00229976, 0.000459954, 0.998888, 0.0471492, -0.00232388, -0.0471482, 0.998886, -0.0103056, -0.0346667, 0.00802553) [node name="Cube_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="4"] -transform = Transform3D(0.999995, -0.000608318, 0.00313471, 0.000582345, 0.999966, 0.00827864, -0.00313966, -0.0082767, 0.999961, -0.0121732, 0.0254328, 0.000346661) +transform = Transform3D(0.999996, -0.000369929, 0.00280219, 0.000345126, 0.999961, 0.00887775, -0.00280517, -0.00887692, 0.999957, -0.0110326, 0.0168061, -0.00179791) [node name="Plane_011_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="5"] -transform = Transform3D(0.999998, -0.00189282, -0.000796504, 0.00194527, 0.997405, 0.0719642, 0.000658177, -0.0719656, 0.997407, 0.00763035, -0.434548, -0.0181565) +transform = Transform3D(0.999998, -0.00167735, -0.00118125, 0.00175586, 0.997552, 0.0699065, 0.00106129, -0.0699085, 0.997553, 0.00916362, -0.420806, -0.0188103) [node name="Plane_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="6"] -transform = Transform3D(0.999994, 0.00106987, 0.00340071, -0.00120181, 0.999237, 0.0390334, -0.00335636, -0.0390373, 0.999232, -0.0153739, 0.0144867, 0.0863142) +transform = Transform3D(0.999995, 0.00110115, 0.00313124, -0.00121821, 0.999291, 0.0376556, -0.00308735, -0.0376594, 0.999286, -0.0141618, 0.00638747, 0.0787499) [node name="Plane_013_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="7"] -transform = Transform3D(0.999994, 0.00106987, 0.00340071, -0.00120181, 0.999237, 0.0390334, -0.00335636, -0.0390373, 0.999232, -0.0153739, 0.0144867, 0.0863142) +transform = Transform3D(0.999995, 0.00110115, 0.00313124, -0.00121821, 0.999291, 0.0376556, -0.00308735, -0.0376594, 0.999286, -0.0141618, 0.00638747, 0.0787499) [node name="Cube_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="8"] -transform = Transform3D(0.999996, -0.000996836, 0.00280821, 0.000848271, 0.998625, 0.0524202, -0.00285663, -0.0524175, 0.998621, -0.0116246, -0.0329599, 0.0147698) +transform = Transform3D(0.999997, -0.000545196, 0.00239264, 0.000424296, 0.998736, 0.0502602, -0.00241682, -0.0502592, 0.998733, -0.0104325, -0.0375249, 0.0111606) [node name="Plane_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="9"] -transform = Transform3D(0.999992, -0.000213325, 0.00399523, 0.000538677, 0.996664, -0.08161, -0.00396454, 0.0816114, 0.996656, -0.0147908, 0.262625, -0.0767446) +transform = Transform3D(0.999993, -0.000147723, 0.00369377, 0.000425592, 0.99716, -0.0753175, -0.00367194, 0.0753183, 0.997153, -0.0135617, 0.238307, -0.0744677) [node name="Cube_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="10"] -transform = Transform3D(1, -0.000212753, -0.0010438, 0.000287985, 0.997361, 0.0726049, 0.00102556, -0.072605, 0.99736, 0.00671554, -0.439381, -0.187017) +transform = Transform3D(1, -0.000132298, -0.000987213, 0.000198724, 0.997719, 0.0675139, 0.000976201, -0.0675141, 0.997718, 0.00634527, -0.410832, -0.178071) [node name="Cube_012_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="11"] -transform = Transform3D(1, -0.000462148, -0.000727294, 0.000486914, 0.999408, 0.0344181, 0.000710927, -0.0344183, 0.999408, 0.00507665, -0.229179, -0.215157) +transform = Transform3D(1, -0.000384845, -0.000738104, 0.000409237, 0.999448, 0.033226, 0.000725086, -0.0332265, 0.999448, 0.00508118, -0.222143, -0.202838) [node name="Cylinder_002_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="12"] -transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0062533, -0.245519) +transform = Transform3D(1, -1.77636e-15, 0, -1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00711167, -0.231899) [node name="Cube_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="13"] -transform = Transform3D(1, 6.998e-08, 3.2558e-07, -6.99538e-08, 1, 9.77815e-05, -3.25736e-07, -9.77517e-05, 1, -3.8147e-06, -0.00608635, -0.24514) +transform = Transform3D(1, 9.62766e-08, 7.27077e-07, -9.60264e-08, 1, -0.000263006, -7.27254e-07, 0.000263035, 1, -8.22544e-06, -0.0042963, -0.23137) [node name="Cube_017_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="14"] -transform = Transform3D(1, -6.91137e-08, -3.24242e-07, 6.90953e-08, 1, 9.77815e-05, 3.24281e-07, -9.77517e-05, 1, 3.8147e-06, -0.00608659, -0.245141) +transform = Transform3D(1, -9.54747e-08, -7.25739e-07, 9.51824e-08, 1, -0.000263006, 7.25799e-07, 0.000263035, 1, 8.22544e-06, -0.0042963, -0.231371) [node name="Cube_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="15"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000268638, 3.97904e-13, -0.000268638, 1, -9.09154e-13, -0.00799316, -0.245521) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -2.50041e-05, 3.97904e-13, 2.50041e-05, 1, -9.09154e-13, -0.00695103, -0.231901) [node name="Cube_005_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="16"] -transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, 0.000268638, 3.97904e-13, -0.000268638, 1, -9.09154e-13, -0.00799316, -0.245521) +transform = Transform3D(1, -1.42109e-13, -3.41061e-13, 2.27374e-13, 1, -2.50041e-05, 3.97904e-13, 2.50041e-05, 1, -9.09154e-13, -0.00695103, -0.231901) [node name="Plane_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="17"] -transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.0732e-10, 1, 0.000269271, 1.02178e-08, -0.000269271, 1, -2.38419e-07, -0.00799751, -0.245519) +transform = Transform3D(1, 1.0877e-10, -1.02383e-08, -1.1039e-10, 1, -2.43896e-05, 1.02433e-08, 2.43896e-05, 1, -2.38419e-07, -0.00695562, -0.231898) [node name="Plane_016_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="18"] -transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.0732e-10, 1, 0.000269271, -1.02178e-08, -0.000269271, 1, 2.38419e-07, -0.00799751, -0.245519) +transform = Transform3D(1, -1.0877e-10, 1.02383e-08, 1.1039e-10, 1, -2.43896e-05, -1.02433e-08, 2.43896e-05, 1, 2.38419e-07, -0.00695562, -0.231898) [node name="Cube_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="19"] -transform = Transform3D(1, -2.63915e-23, -1.77221e-27, 2.63915e-23, 1, 0.000269554, -5.34171e-27, -0.000269554, 1, -1.16428e-18, -0.00799793, -0.245519) +transform = Transform3D(1, -2.63914e-23, 1.5957e-28, 2.63914e-23, 1, -2.41068e-05, 4.76643e-28, 2.41068e-05, 1, -1.16428e-18, -0.00695567, -0.231899) [node name="Cube_008_Inside_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="20"] -transform = Transform3D(1, -2.63915e-23, -1.77221e-27, 2.63915e-23, 1, 0.000269554, -5.34171e-27, -0.000269554, 1, -1.16428e-18, -0.00799793, -0.245519) +transform = Transform3D(1, -2.63914e-23, 1.5957e-28, 2.63914e-23, 1, -2.41068e-05, 4.76643e-28, 2.41068e-05, 1, -1.16428e-18, -0.00695567, -0.231899) [node name="Plane_006_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="21"] -transform = Transform3D(0.999992, -0.000273302, -0.00405153, 0.000479981, 0.998694, 0.0511027, 0.00403227, -0.0511041, 0.998685, 0.014441, -0.0498836, 0.069557) +transform = Transform3D(0.999995, -0.000748038, -0.00299232, 0.00088194, 0.998986, 0.0450236, 0.00295569, -0.0450261, 0.998981, 0.0128927, -0.0549581, 0.0516267) [node name="Plane_008_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="22"] -transform = Transform3D(0.999989, -0.00108357, -0.00453627, 0.00131577, 0.998673, 0.051497, 0.00447445, -0.0515022, 0.998663, 0.0156541, -0.0485729, 0.0698174) +transform = Transform3D(0.999994, -0.00112794, -0.00317461, 0.00127071, 0.998971, 0.045348, 0.00312031, -0.0453518, 0.998966, 0.0134246, -0.0549299, 0.0514403) [node name="Cube_004_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="23"] -transform = Transform3D(0.999998, 0.000603536, -0.00197171, -0.00060422, 1, -0.00035131, 0.0019715, 0.000352666, 0.999998, 0.0118382, -0.0117709, 0.00977635) +transform = Transform3D(0.999999, 0.000307947, -0.00150439, -0.000308149, 1, -0.000110418, 0.00150448, 0.000110865, 0.999999, 0.0105989, -0.0222339, 0.000551045) [node name="Plane_005_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="24"] -transform = Transform3D(0.999994, 0.00179106, -0.00317859, -0.00159411, 0.998152, 0.0607441, 0.0032811, -0.0607389, 0.998148, 0.0119734, -0.0813601, 0.0247627) +transform = Transform3D(0.999998, 0.000532821, -0.00229874, -0.000410646, 0.998614, 0.0526282, 0.00232334, -0.0526275, 0.998611, 0.0103803, -0.0776364, 0.0110588) [node name="Cube_003_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="25"] -transform = Transform3D(0.999995, 0.000570126, -0.00317011, -0.000521034, 0.99988, 0.0154676, 0.00317855, -0.0154657, 0.999875, 0.0122821, -0.0176265, 0.0104017) +transform = Transform3D(0.999996, 0.000331908, -0.00279241, -0.000287198, 0.999872, 0.0160117, 0.00279746, -0.0160109, 0.999868, 0.0110908, -0.028405, 0.0013895) [node name="Plane_007_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="26"] -transform = Transform3D(0.999998, 0.00187063, 0.000813936, -0.00192934, 0.99684, 0.0794113, -0.000662819, -0.0794127, 0.996842, -0.0077858, -0.481886, -0.00568295) +transform = Transform3D(0.999998, 0.00161563, 0.00114788, -0.00169724, 0.997177, 0.0750757, -0.0010233, -0.0750775, 0.997177, -0.0088706, -0.455359, -0.0133791) [node name="Plane_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="27"] -transform = Transform3D(0.999994, -0.0011625, -0.00336945, 0.00133286, 0.998698, 0.0509962, 0.00330578, -0.0510004, 0.998693, 0.0154266, -0.0365633, 0.104132) +transform = Transform3D(0.999995, -0.00113848, -0.00302539, 0.00128242, 0.998846, 0.0480163, 0.00296729, -0.04802, 0.998842, 0.0140147, -0.0452584, 0.0860486) [node name="Plane_010_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="28"] -transform = Transform3D(0.999992, -0.00200857, -0.0035671, 0.0021892, 0.998678, 0.05137, 0.00345919, -0.0513774, 0.998674, 0.0169764, -0.0366492, 0.102825) +transform = Transform3D(0.999993, -0.00204428, -0.00310561, 0.00219204, 0.998829, 0.0483446, 0.00300321, -0.0483511, 0.998826, 0.0154066, -0.0449579, 0.0845857) [node name="Cube_014_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="29"] -transform = Transform3D(0.999995, 0.000963926, -0.00283785, -0.000790909, 0.998177, 0.0603449, 0.00289084, -0.0603424, 0.998173, 0.0117249, -0.0768592, 0.0255539) +transform = Transform3D(0.999997, 0.000504203, -0.00238866, -0.000367582, 0.998381, 0.056869, 0.00241353, -0.056868, 0.998379, 0.0104985, -0.0819867, 0.0145264) [node name="Plane_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="30"] -transform = Transform3D(0.999992, 0.000167109, -0.00404328, -0.000473782, 0.99711, -0.0759701, 0.0040189, 0.0759714, 0.997102, 0.0149415, 0.223085, -0.0695434) +transform = Transform3D(0.999993, 0.000113793, -0.0036687, -0.000359915, 0.997743, -0.0671448, 0.00365286, 0.0671456, 0.997736, 0.0135767, 0.189758, -0.0720453) [node name="Cube_015_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="31"] -transform = Transform3D(1, 0.000180077, 0.00107653, -0.000266541, 0.996724, 0.0808727, -0.00105843, -0.0808728, 0.996724, -0.00689936, -0.491635, -0.176655) +transform = Transform3D(1, 0.00010577, 0.000940799, -0.000175124, 0.997258, 0.0739982, -0.000930332, -0.0739983, 0.997258, -0.00602627, -0.452573, -0.169602) [node name="Cube_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="32"] -transform = Transform3D(1, 0.000426453, 0.0007611, -0.000458066, 0.999116, 0.0420446, -0.000742497, -0.042045, 0.999116, -0.00526524, -0.278013, -0.207001) +transform = Transform3D(1, 0.000345632, 0.000699884, -0.000373414, 0.999197, 0.0400618, -0.000685418, -0.040062, 0.999197, -0.00480294, -0.265892, -0.195384) [node name="Cylinder_001_Material_0" parent="Mesh/Mech/Sketchfab_model/bed584e06fe94e71a7ac484cee9f0a16_fbx/Object_2/RootNode/Armature/Object_5/Skeleton3D" index="33"] -transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.0062533, -0.245519) +transform = Transform3D(1, 1.77636e-15, 0, 1.77636e-15, 1, -4.37113e-08, 0, 4.37113e-08, 1, 0, -0.00711167, -0.231899) [node name="CameraRoot" type="Node3D" parent="." index="6"] transform = Transform3D(1, 0, 0, 0, 0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 2, 0) diff --git a/src/player/player_manager.gd b/src/player/player_manager.gd index 686ac3e..cefa25a 100644 --- a/src/player/player_manager.gd +++ b/src/player/player_manager.gd @@ -1,17 +1,90 @@ class_name PlayerManager extends Node3D -@onready var player_scene: PackedScene = load("res://src/player/player.tscn") +const P2_CAMERA_SENSITIVITY: Vector2 = Vector2(3.0, 2.0) + +@export var player_id: int = 1 + var _spawned: Player +@onready var player_scene: PackedScene = load("res://src/player/player.tscn") + +@onready var crosshair: Crosshair = get_tree().get_nodes_in_group("CrosshairGroup")[player_id - 1] +@onready +var overlay: OverlayEffects = get_tree().get_nodes_in_group("OverlayEffectsGroup")[player_id - 1] +@onready var heat_meter: ProgressBar = get_tree().get_nodes_in_group("HeatMeterGroup")[player_id - 1] +@onready +var damage_meter: ProgressBar = get_tree().get_nodes_in_group("DamageMeterGroup")[player_id - 1] +@onready var structure_meter: StructureMeter = get_tree().get_nodes_in_group("StructureMeterGroup")[ + player_id - 1 +] + func _ready() -> void: respawn() +func get_player_viewport() -> SubViewport: + return ( + get_tree().get_first_node_in_group("Viewport1" if player_id == 1 else "Viewport2") + as SubViewport + ) + + +# TODO terrible pattern. clean up when it isn't 4AM lmao + + +func _unhandled_input(event: InputEvent) -> void: + if _spawned and player_id == 1 and event is InputEventMouseMotion: + _spawned.camera_root.camera_motion((event as InputEventMouseMotion).relative) + + +func _physics_process(_delta: float) -> void: + if _spawned and player_id != 1: + _spawned.camera_root.camera_motion( + ( + Input.get_vector("camera_left", "camera_right", "camera_up", "camera_down") + * P2_CAMERA_SENSITIVITY + ) + ) + + +func get_input_vector() -> Vector2: + if player_id == 1: + return Input.get_vector("left", "right", "forward", "backward") + return Input.get_vector("left_2", "right_2", "forward_2", "backward_2") + + +func jump_action() -> String: + if player_id == 1: + return "jump" + return "jump_2" + + +func boost_action() -> String: + if player_id == 1: + return "boost" + return "boost_2" + + +func weapon_action() -> String: + if player_id == 1: + return "weapon_trigger" + return "weapon_trigger_2" + + func respawn() -> void: if _spawned: _spawned.queue_free() _spawned = player_scene.instantiate() _spawned.manager = self - add_child(_spawned) - _spawned.reparent(self) + if player_id == 1: + _spawned._equipment = MechCharacter.Equipment.RIFLE + else: + _spawned._equipment = MechCharacter.Equipment.AUTOCANNON + + var viewport: SubViewport = get_player_viewport() + viewport.add_child(_spawned) + _spawned.reparent(viewport) + + _spawned.global_position = global_position + _spawned.global_rotation = global_rotation diff --git a/src/player/third_person_camera.gd b/src/player/third_person_camera.gd index 2a0be07..6f1dcc8 100644 --- a/src/player/third_person_camera.gd +++ b/src/player/third_person_camera.gd @@ -22,6 +22,7 @@ const CORRECTION_SPEED: float = 10 func _ready() -> void: Input.mouse_mode = Input.MOUSE_MODE_CAPTURED + set_process_unhandled_input(true) func jostle(delta: float) -> void: @@ -31,14 +32,16 @@ func jostle(delta: float) -> void: func _unhandled_input(event: InputEvent) -> void: if event is InputEventMouseMotion: var motion: Vector2 = (event as InputEventMouseMotion).relative - _target.y = _target.y - motion.x * yaw_sensitivity - _target.x = clampf( - _target.x + motion.y * pitch_sensitivity * (-1 if invert_pitch else 1), - pitch_min, - pitch_max - ) - if _crosshair: - _crosshair.jostle(motion * CROSSHAIR_MOUSE_JOSTLE * -1.0) + camera_motion(motion) + + +func camera_motion(motion: Vector2) -> void: + _target.y = _target.y - motion.x * yaw_sensitivity + _target.x = clampf( + _target.x + motion.y * pitch_sensitivity * (-1 if invert_pitch else 1), pitch_min, pitch_max + ) + if _crosshair: + _crosshair.jostle(motion * CROSSHAIR_MOUSE_JOSTLE * -1.0) func _physics_process(delta: float) -> void: diff --git a/src/shaders/death_fade_compat.gdshader b/src/shaders/death_fade_compat.gdshader new file mode 100644 index 0000000..59e48c2 --- /dev/null +++ b/src/shaders/death_fade_compat.gdshader @@ -0,0 +1,107 @@ +shader_type canvas_item; + +uniform float threshold: hint_range(0.0, 1.0) = 0.3; +uniform vec2 dimensions = vec2(32.0, 32.0); +uniform float speed = 0.5; + +uniform vec4 color_hi : source_color = vec4(1.0, 1.0, 1.0, 1.0); +uniform vec4 color_low : source_color = vec4(0.0, 0.0, 0.0, 1.0); + +// Noise implementation shamelessly ripped from https://godotshaders.com/shader/corner-void/ + +vec3 mod289(vec3 x) { + return x - floor(x * (1.0 / 289.0)) * 289.0; +} + +vec4 mod2891(vec4 x) { + return x - floor(x * (1.0 / 289.0)) * 289.0; +} + +vec4 permute(vec4 x) { + return mod2891(((x*34.0)+1.0)*x); +} + +vec4 taylorInvSqrt(vec4 r) +{ + return 1.79284291400159 - 0.85373472095314 * r; +} + +float snoise(vec3 v) { + const vec2 C = vec2(1.0/6.0, 1.0/3.0) ; + const vec4 D = vec4(0.0, 0.5, 1.0, 2.0); + + // First corner + vec3 i = floor(v + dot(v, C.yyy) ); + vec3 x0 = v - i + dot(i, C.xxx) ; + + // Other corners + vec3 g = step(x0.yzx, x0.xyz); + vec3 l = 1.0 - g; + vec3 i1 = min( g.xyz, l.zxy ); + vec3 i2 = max( g.xyz, l.zxy ); + + // x0 = x0 - 0.0 + 0.0 * C.xxx; + // x1 = x0 - i1 + 1.0 * C.xxx; + // x2 = x0 - i2 + 2.0 * C.xxx; + // x3 = x0 - 1.0 + 3.0 * C.xxx; + vec3 x1 = x0 - i1 + C.xxx; + vec3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y + vec3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y + + // Permutations + i = mod289(i); + vec4 p = permute( permute( permute( + i.z + vec4(0.0, i1.z, i2.z, 1.0 )) + + i.y + vec4(0.0, i1.y, i2.y, 1.0 )) + + i.x + vec4(0.0, i1.x, i2.x, 1.0 )); + + // Gradients: 7x7 points over a square, mapped onto an octahedron. + // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) + float n_ = 0.142857142857; // 1.0/7.0 + vec3 ns = n_ * D.wyz - D.xzx; + + vec4 j = p - 49.0 * floor(p * ns.z * ns.z); // mod(p,7*7) + + vec4 x_ = floor(j * ns.z); + vec4 y_ = floor(j - 7.0 * x_ ); // mod(j,N) + + vec4 x = x_ *ns.x + ns.yyyy; + vec4 y = y_ *ns.x + ns.yyyy; + vec4 h = 1.0 - abs(x) - abs(y); + + vec4 b0 = vec4( x.xy, y.xy ); + vec4 b1 = vec4( x.zw, y.zw ); + + //vec4 s0 = vec4(lessThan(b0,0.0))*2.0 - 1.0; + //vec4 s1 = vec4(lessThan(b1,0.0))*2.0 - 1.0; + vec4 s0 = floor(b0)*2.0 + 1.0; + vec4 s1 = floor(b1)*2.0 + 1.0; + vec4 sh = -step(h, vec4(0.0)); + + vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy ; + vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww ; + + vec3 p0 = vec3(a0.xy,h.x); + vec3 p1 = vec3(a0.zw,h.y); + vec3 p2 = vec3(a1.xy,h.z); + vec3 p3 = vec3(a1.zw,h.w); + + //Normalise gradients + vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3))); + p0 *= norm.x; + p1 *= norm.y; + p2 *= norm.z; + p3 *= norm.w; + + // Mix final noise value + vec4 m = max(0.5 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0); + m = m * m; + return 21.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1), + dot(p2,x2), dot(p3,x3) ) ) + 0.5; +} + +void fragment() { + //vec4 noise_color = texture(base_noise, vec3(UV.x, UV.y, TIME * speed)).rgba; + float noise = snoise(vec3(dimensions.x * UV.x, dimensions.y * UV.y, TIME * speed)); + COLOR.rgba = noise > threshold ? color_hi : color_low; +} \ No newline at end of file diff --git a/src/shaders/plasma_morph_compat.gdshader b/src/shaders/plasma_morph_compat.gdshader new file mode 100644 index 0000000..c2861f0 --- /dev/null +++ b/src/shaders/plasma_morph_compat.gdshader @@ -0,0 +1,112 @@ +shader_type spatial; +render_mode unshaded; + +uniform vec4 color_low: source_color = vec4(0.0, 0.0, 0.0, 1.0); +uniform vec4 color_hi: source_color = vec4(1.0, 1.0, 1.0, 1.0); + +uniform float threshold: hint_range(0.0, 1.0) = 0.5; +uniform float speed = 0.5; +uniform float y_scale = 1.0; + +uniform sampler3D noise: repeat_enable; + +// Noise implementation shamelessly ripped from https://godotshaders.com/shader/corner-void/ + +vec3 mod289(vec3 x) { + return x - floor(x * (1.0 / 289.0)) * 289.0; +} + +vec4 mod2891(vec4 x) { + return x - floor(x * (1.0 / 289.0)) * 289.0; +} + +vec4 permute(vec4 x) { + return mod2891(((x*34.0)+1.0)*x); +} + +vec4 taylorInvSqrt(vec4 r) +{ + return 1.79284291400159 - 0.85373472095314 * r; +} + +float snoise(vec3 v) { + const vec2 C = vec2(1.0/6.0, 1.0/3.0) ; + const vec4 D = vec4(0.0, 0.5, 1.0, 2.0); + + // First corner + vec3 i = floor(v + dot(v, C.yyy) ); + vec3 x0 = v - i + dot(i, C.xxx) ; + + // Other corners + vec3 g = step(x0.yzx, x0.xyz); + vec3 l = 1.0 - g; + vec3 i1 = min( g.xyz, l.zxy ); + vec3 i2 = max( g.xyz, l.zxy ); + + // x0 = x0 - 0.0 + 0.0 * C.xxx; + // x1 = x0 - i1 + 1.0 * C.xxx; + // x2 = x0 - i2 + 2.0 * C.xxx; + // x3 = x0 - 1.0 + 3.0 * C.xxx; + vec3 x1 = x0 - i1 + C.xxx; + vec3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y + vec3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y + + // Permutations + i = mod289(i); + vec4 p = permute( permute( permute( + i.z + vec4(0.0, i1.z, i2.z, 1.0 )) + + i.y + vec4(0.0, i1.y, i2.y, 1.0 )) + + i.x + vec4(0.0, i1.x, i2.x, 1.0 )); + + // Gradients: 7x7 points over a square, mapped onto an octahedron. + // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) + float n_ = 0.142857142857; // 1.0/7.0 + vec3 ns = n_ * D.wyz - D.xzx; + + vec4 j = p - 49.0 * floor(p * ns.z * ns.z); // mod(p,7*7) + + vec4 x_ = floor(j * ns.z); + vec4 y_ = floor(j - 7.0 * x_ ); // mod(j,N) + + vec4 x = x_ *ns.x + ns.yyyy; + vec4 y = y_ *ns.x + ns.yyyy; + vec4 h = 1.0 - abs(x) - abs(y); + + vec4 b0 = vec4( x.xy, y.xy ); + vec4 b1 = vec4( x.zw, y.zw ); + + //vec4 s0 = vec4(lessThan(b0,0.0))*2.0 - 1.0; + //vec4 s1 = vec4(lessThan(b1,0.0))*2.0 - 1.0; + vec4 s0 = floor(b0)*2.0 + 1.0; + vec4 s1 = floor(b1)*2.0 + 1.0; + vec4 sh = -step(h, vec4(0.0)); + + vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy ; + vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww ; + + vec3 p0 = vec3(a0.xy,h.x); + vec3 p1 = vec3(a0.zw,h.y); + vec3 p2 = vec3(a1.xy,h.z); + vec3 p3 = vec3(a1.zw,h.w); + + //Normalise gradients + vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3))); + p0 *= norm.x; + p1 *= norm.y; + p2 *= norm.z; + p3 *= norm.w; + + // Mix final noise value + vec4 m = max(0.5 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0); + m = m * m; + return 21.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1), + dot(p2,x2), dot(p3,x3) ) ) + 0.5; +} + +void fragment() { + float noise_color = snoise(vec3(10.0 * UV.x, 10.0 * UV.y * y_scale, TIME * speed)); + + vec4 color = noise_color >= threshold ? color_hi : color_low; + ALBEDO.rgb = color.rgb; + ALPHA = color.a; +} \ No newline at end of file diff --git a/src/ui/overlay_effects.gd b/src/ui/overlay_effects.gd index 4e19002..a34cdb3 100644 --- a/src/ui/overlay_effects.gd +++ b/src/ui/overlay_effects.gd @@ -1,7 +1,7 @@ class_name OverlayEffects extends Control -@onready var animation_player: AnimationPlayer = $"../../AnimationPlayer" +@onready var animation_player: AnimationPlayer = $"../AnimationPlayer" func play_boost() -> void: diff --git a/src/ui/structure_meter.gd b/src/ui/structure_meter.gd index b60c4a5..38d545e 100644 --- a/src/ui/structure_meter.gd +++ b/src/ui/structure_meter.gd @@ -2,14 +2,14 @@ class_name StructureMeter extends VBoxContainer const MIN_STRUCTURE: int = 0 -const MAX_STRUCTURE: int = 5 +const MAX_STRUCTURE: int = 4 var structure_count: int: set = _set_structure_count, get = _get_structure_count @onready var _structure_nodes: Array[Control] = [ - $StructureIcon5, $StructureIcon4, $StructureIcon3, $StructureIcon2, $StructureIcon1 + $StructureIcon4, $StructureIcon3, $StructureIcon2, $StructureIcon1 ] diff --git a/src/ui/ui.tscn b/src/ui/ui.tscn new file mode 100644 index 0000000..f802bba --- /dev/null +++ b/src/ui/ui.tscn @@ -0,0 +1,402 @@ +[gd_scene load_steps=30 format=3 uid="uid://boswew1ihrw7p"] + +[ext_resource type="Script" path="res://src/ui/crosshair.gd" id="1_6vonm"] +[ext_resource type="Shader" path="res://src/shaders/invert.gdshader" id="2_q710s"] +[ext_resource type="Texture2D" uid="uid://bepxfquua1v6" path="res://assets/textures/crosshair_circle.png" id="3_sofbx"] +[ext_resource type="Texture2D" uid="uid://hmt7s15m7eto" path="res://assets/textures/crosshair_dot.png" id="4_uuure"] +[ext_resource type="Script" path="res://src/ui/compass.gd" id="5_kawl0"] +[ext_resource type="Texture2D" uid="uid://mmit1txxkbvb" path="res://assets/textures/compass.png" id="6_lhld6"] +[ext_resource type="Script" path="res://src/ui/overlay_effects.gd" id="7_5y016"] +[ext_resource type="Theme" uid="uid://cq6k0lttfws5w" path="res://src/HUD_theme.tres" id="8_y74gd"] +[ext_resource type="Shader" path="res://src/shaders/speed_lines.gdshader" id="9_5roxj"] +[ext_resource type="Shader" path="res://src/shaders/death_fade_compat.gdshader" id="10_xxkgw"] +[ext_resource type="Script" path="res://src/ui/structure_meter.gd" id="11_j8d8e"] +[ext_resource type="Texture2D" uid="uid://bgujaq21oq2mm" path="res://assets/textures/structure.png" id="12_jbttb"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_csvvm"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_hre76"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_c6880"] +shader = ExtResource("2_q710s") + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_gkq2g"] +noise_type = 0 +frequency = 0.1344 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jnd2r"] +noise = SubResource("FastNoiseLite_gkq2g") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_d76dl"] +shader = ExtResource("9_5roxj") +shader_parameter/line_count = 2.0 +shader_parameter/line_density = 0.0 +shader_parameter/line_falloff = 0.0 +shader_parameter/mask_size = 0.166 +shader_parameter/mask_edge = 1.0 +shader_parameter/animation_speed = 20.0 +shader_parameter/noise = SubResource("NoiseTexture2D_jnd2r") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_rpcp4"] +shader = ExtResource("10_xxkgw") +shader_parameter/threshold = 1.0 +shader_parameter/dimensions = Vector2(64, 32) +shader_parameter/speed = 0.5 +shader_parameter/color_hi = Color(1, 1, 1, 1) +shader_parameter/color_low = Color(0, 0, 0, 0) + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_3nxtv"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_r85sm"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_say15"] +shader = ExtResource("2_q710s") + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_klw0t"] +shader = ExtResource("2_q710s") + +[sub_resource type="Animation" id="Animation_lm3ec"] +resource_name = "boost_lines" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.1, 1), +"transitions": PackedFloat32Array(1, 1.4, 1), +"update": 0, +"values": [0.0, 0.4, 0.0] +} + +[sub_resource type="Animation" id="Animation_4ygdu"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [0.0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("OverlayEffects/DestructureLabel:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("OverlayEffects/DeathOverlay:visible") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("OverlayEffects/DeathOverlay:material:shader_parameter/threshold") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [1.0] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("MarginContainer:visible") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="Animation" id="Animation_8kp5l"] +resource_name = "destructure_alert" +length = 5.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("OverlayEffects/DestructureLabel:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 5), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1), +"update": 1, +"values": [true, false, true, false, true, false, true, false] +} + +[sub_resource type="Animation" id="Animation_cpxxb"] +resource_name = "death_overlay" +length = 2.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("OverlayEffects/DeathOverlay:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("OverlayEffects/DeathOverlay:material:shader_parameter/threshold") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 2), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [1.0, 0.0] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("MarginContainer:visible") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0, 0.9, 1, 1.4, 1.5, 1.6), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), +"update": 1, +"values": [true, false, true, false, true, false] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_w4b5c"] +_data = { +"RESET": SubResource("Animation_4ygdu"), +"boost_lines": SubResource("Animation_lm3ec"), +"death_overlay": SubResource("Animation_cpxxb"), +"destructure_alert": SubResource("Animation_8kp5l") +} + +[node name="UI" type="Control"] +z_index = 1 +custom_minimum_size = Vector2(1900, 512) +layout_mode = 3 +anchors_preset = 0 + +[node name="Crosshair" type="CenterContainer" parent="." groups=["CrosshairGroup"]] +layout_mode = 0 +offset_right = 1900.0 +offset_bottom = 512.0 +script = ExtResource("1_6vonm") + +[node name="CrosshairContainer" type="Control" parent="Crosshair"] +custom_minimum_size = Vector2(32, 32) +layout_mode = 2 + +[node name="CrosshairCircle" type="TextureRect" parent="Crosshair/CrosshairContainer"] +material = SubResource("ShaderMaterial_ag8l2") +layout_mode = 2 +offset_right = 32.0 +offset_bottom = 32.0 +texture = ExtResource("3_sofbx") +stretch_mode = 2 + +[node name="CrosshairDot" type="TextureRect" parent="Crosshair/CrosshairContainer"] +material = SubResource("ShaderMaterial_csvvm") +layout_mode = 2 +offset_right = 32.0 +offset_bottom = 32.0 +texture = ExtResource("4_uuure") + +[node name="Compass" type="Control" parent="." groups=["CompassGroup"]] +clip_contents = true +anchors_preset = 0 +offset_left = 760.0 +offset_top = 20.0 +offset_right = 1140.0 +offset_bottom = 52.0 +script = ExtResource("5_kawl0") + +[node name="CompassTexture" type="TextureRect" parent="Compass"] +material = SubResource("ShaderMaterial_hre76") +custom_minimum_size = Vector2(2304, 32) +layout_mode = 0 +offset_right = 2304.0 +offset_bottom = 32.0 +texture = ExtResource("6_lhld6") +stretch_mode = 1 + +[node name="OverlayEffects" type="Control" parent="." groups=["OverlayEffectsGroup"]] +anchors_preset = 0 +offset_right = 1900.0 +offset_bottom = 512.0 +script = ExtResource("7_5y016") + +[node name="DestructureLabel" type="Label" parent="OverlayEffects"] +visible = false +material = SubResource("ShaderMaterial_c6880") +layout_mode = 2 +offset_left = 443.0 +offset_top = 295.0 +offset_right = 1457.0 +offset_bottom = 372.0 +theme = ExtResource("8_y74gd") +theme_override_font_sizes/font_size = 76 +text = "hull destructured +" + +[node name="SpeedLinesOverlay" type="ColorRect" parent="OverlayEffects"] +material = SubResource("ShaderMaterial_d76dl") +layout_mode = 0 +offset_right = 1900.0 +offset_bottom = 512.0 + +[node name="DeathOverlay" type="ColorRect" parent="OverlayEffects"] +visible = false +material = SubResource("ShaderMaterial_rpcp4") +layout_mode = 0 +offset_right = 1900.0 +offset_bottom = 512.0 + +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 0 +offset_right = 192.0 +offset_bottom = 512.0 +theme_override_constants/margin_left = 32 +theme_override_constants/margin_top = 32 +theme_override_constants/margin_right = 32 +theme_override_constants/margin_bottom = 32 + +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"] +layout_mode = 2 +theme_override_constants/separation = 32 + +[node name="HeatContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"] +custom_minimum_size = Vector2(48, 0) +layout_mode = 2 +size_flags_horizontal = 4 + +[node name="HeatMeter" type="ProgressBar" parent="MarginContainer/HBoxContainer/HeatContainer" groups=["HeatMeterGroup"]] +material = SubResource("ShaderMaterial_3nxtv") +layout_mode = 2 +size_flags_vertical = 3 +theme = ExtResource("8_y74gd") +fill_mode = 3 +show_percentage = false + +[node name="Control" type="Control" parent="MarginContainer/HBoxContainer/HeatContainer"] +custom_minimum_size = Vector2(48, 17) +layout_mode = 2 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/HeatContainer/Control"] +material = SubResource("ShaderMaterial_r85sm") +layout_mode = 2 +offset_left = -1.0 +offset_right = 51.0 +offset_bottom = 17.0 +size_flags_horizontal = 0 +theme = ExtResource("8_y74gd") +text = "heat" + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"] +custom_minimum_size = Vector2(48, 0) +layout_mode = 2 +size_flags_horizontal = 4 + +[node name="StructureContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 10 + +[node name="LabelRotation" type="Control" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer"] +custom_minimum_size = Vector2(11, 128) +layout_mode = 2 +size_flags_vertical = 8 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/LabelRotation"] +material = SubResource("ShaderMaterial_say15") +layout_mode = 2 +offset_right = 90.0 +offset_bottom = 11.0 +rotation = 1.5708 +pivot_offset = Vector2(0, 13) +theme = ExtResource("8_y74gd") +text = "structure" + +[node name="StructureMeter" type="VBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer" groups=["StructureMeterGroup"]] +layout_mode = 2 +alignment = 2 +script = ExtResource("11_j8d8e") + +[node name="StructureIcon1" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] +material = SubResource("ShaderMaterial_klw0t") +layout_mode = 2 +texture = ExtResource("12_jbttb") + +[node name="StructureIcon2" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] +material = SubResource("ShaderMaterial_klw0t") +layout_mode = 2 +texture = ExtResource("12_jbttb") + +[node name="StructureIcon3" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] +material = SubResource("ShaderMaterial_klw0t") +layout_mode = 2 +texture = ExtResource("12_jbttb") + +[node name="StructureIcon4" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"] +material = SubResource("ShaderMaterial_klw0t") +layout_mode = 2 +texture = ExtResource("12_jbttb") + +[node name="DamageContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer"] +custom_minimum_size = Vector2(0, 256) +layout_mode = 2 + +[node name="DamageMeter" type="ProgressBar" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer" groups=["DamageMeterGroup"]] +material = SubResource("ShaderMaterial_3nxtv") +layout_mode = 2 +size_flags_vertical = 3 +theme = ExtResource("8_y74gd") +fill_mode = 3 +show_percentage = false + +[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer"] +layout_mode = 2 + +[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer/CenterContainer"] +material = SubResource("ShaderMaterial_r85sm") +layout_mode = 2 +size_flags_horizontal = 4 +theme = ExtResource("8_y74gd") +text = "dmg" + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_w4b5c") +}