complete project reorganization
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
namespace Movementtests.systems.damage;
|
||||
|
||||
public enum EDamageTypes
|
||||
{
|
||||
Normal,
|
||||
Fire,
|
||||
Ice,
|
||||
Explosion,
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://dubmiwfuunxmu
|
||||
@@ -1,160 +0,0 @@
|
||||
using Godot;
|
||||
using Movementtests.interfaces;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_wind.png")]
|
||||
public partial class DashSystem: Node3D
|
||||
{
|
||||
public record DashLocation(bool HasHit, Vector3 TargetLocation, Vector3 CollisionPoint, Vector3 CollisionNormal, GodotObject HitObject = null);
|
||||
|
||||
|
||||
[Export(PropertyHint.Range, "0,0.2,0.01,or_greater")]
|
||||
public float DashSpeed { get; set; } = 0.1f;
|
||||
[Export(PropertyHint.Range, "0,1000,1,or_greater")]
|
||||
public float PostDashSpeed { get; set; } = 0f;
|
||||
|
||||
public bool HasHit { get; set; }
|
||||
public bool CanDashThroughTarget { get; set; }
|
||||
public Vector3 TargetLocation { get; set; }
|
||||
public Vector3 CollisionPoint { get; set; }
|
||||
public Vector3 CollisionNormal { get; set; }
|
||||
public GodotObject CollidedObject { get; set; }
|
||||
public Vector3 PlannedLocation { get; set; }
|
||||
|
||||
public bool ShouldMantle { get; set; }
|
||||
public Vector3 PlannedMantleLocation { get; set; }
|
||||
public MantleSystem MantleSystem { get; set; }
|
||||
|
||||
private HeadSystem _head;
|
||||
public ShapeCast3D DashCast3D;
|
||||
private Camera3D _camera;
|
||||
private Vector3 _dashDirection = Vector3.Zero;
|
||||
|
||||
private ShapeCast3D _dashCastDrop;
|
||||
private MeshInstance3D _dashDropIndicator;
|
||||
private MeshInstance3D _dashDropLocationIndicator;
|
||||
|
||||
private MeshInstance3D _dashTarget;
|
||||
private CpuParticles3D _dashIndicator;
|
||||
private AnimationPlayer _dashIndicatorAnim;
|
||||
|
||||
[Export]
|
||||
public PackedScene DashIndicatorScene { get; set; }
|
||||
|
||||
[Signal]
|
||||
public delegate void DashStartedEventHandler();
|
||||
[Signal]
|
||||
public delegate void DashEndedEventHandler();
|
||||
[Signal]
|
||||
public delegate void DashProgressEventHandler(float progress);
|
||||
|
||||
private Vector3 _globalDashPosition = Vector3.Zero;
|
||||
|
||||
public float DashCastRadius { get; set; }
|
||||
|
||||
public void Init(HeadSystem head, Camera3D camera)
|
||||
{
|
||||
DashCast3D = GetNode<ShapeCast3D>("DashCast3D");
|
||||
var dashShape = DashCast3D.GetShape() as SphereShape3D;
|
||||
DashCastRadius = dashShape!.Radius;
|
||||
|
||||
_dashCastDrop = GetNode<ShapeCast3D>("DashCastDrop");
|
||||
_dashDropIndicator = GetNode<MeshInstance3D>("DashDropIndicator");
|
||||
_dashDropIndicator.Visible = false;
|
||||
_dashDropLocationIndicator = GetNode<MeshInstance3D>("DashDropLocationIndicator");
|
||||
_dashDropLocationIndicator.Visible = false;
|
||||
|
||||
_head = head;
|
||||
_camera = camera;
|
||||
|
||||
MantleSystem = GetNode<MantleSystem>("MantleSystem");
|
||||
MantleSystem.Init();
|
||||
|
||||
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
||||
_dashTarget.SetVisible(false);
|
||||
_dashIndicator = GetNode<CpuParticles3D>("DashIndicator");
|
||||
_dashIndicatorAnim = GetNode<AnimationPlayer>("DashIndicator/AnimationPlayer");
|
||||
}
|
||||
|
||||
private DashLocation ComputeDashLocation()
|
||||
{
|
||||
var targetLocation = DashCast3D.ToGlobal(DashCast3D.TargetPosition);
|
||||
var hasHit = DashCast3D.IsColliding();
|
||||
if (!hasHit)
|
||||
{
|
||||
return new DashLocation(false, targetLocation, Vector3.Zero, Vector3.Zero);
|
||||
}
|
||||
|
||||
var collisionPoint = DashCast3D.GetCollisionPoint(0);
|
||||
var collisionNormal = DashCast3D.GetCollisionNormal(0);
|
||||
var collidedObject = DashCast3D.GetCollider(0);
|
||||
|
||||
var fraction = DashCast3D.GetClosestCollisionSafeFraction();
|
||||
var globalSweepPath = targetLocation - DashCast3D.GlobalPosition;
|
||||
var locationAlongPath = DashCast3D.GlobalPosition + globalSweepPath * fraction;
|
||||
return new DashLocation(true, locationAlongPath, collisionPoint, collisionNormal, collidedObject);
|
||||
}
|
||||
|
||||
public void PrepareDash()
|
||||
{
|
||||
DashCast3D.SetRotation(_head.GetGlobalLookRotation());
|
||||
|
||||
(HasHit, PlannedLocation, CollisionPoint, CollisionNormal, CollidedObject) = ComputeDashLocation();
|
||||
CanDashThroughTarget = false;
|
||||
if (CollidedObject is ITargetable targetable)
|
||||
{
|
||||
_dashTarget.SetVisible(false);
|
||||
CanDashThroughTarget = true;
|
||||
return;
|
||||
}
|
||||
|
||||
MantleSystem.SetGlobalPosition(PlannedLocation);
|
||||
MantleSystem.SetRotation(new Vector3(
|
||||
MantleSystem.Rotation.X,
|
||||
_head.Rotation.Y,
|
||||
MantleSystem.Rotation.Z));
|
||||
MantleSystem.ProcessMantle(false);
|
||||
ShouldMantle = MantleSystem.IsMantlePossible;
|
||||
|
||||
// Setup dash target
|
||||
var targetColor = HasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
||||
targetColor = ShouldMantle ? new Color(0.2f, 0.2f, 1f) : targetColor;
|
||||
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
||||
targetMaterial.SetAlbedo(targetColor);
|
||||
_dashTarget.SetVisible(true);
|
||||
var targetLocation = ShouldMantle ? MantleSystem.FirstMantleProfilePoint : PlannedLocation;
|
||||
_dashTarget.SetGlobalPosition(targetLocation);
|
||||
return;
|
||||
|
||||
var shouldShowDropIndicator = !HasHit && !ShouldMantle;
|
||||
_dashDropIndicator.SetVisible(shouldShowDropIndicator);
|
||||
_dashDropLocationIndicator.SetVisible(shouldShowDropIndicator);
|
||||
if (shouldShowDropIndicator)
|
||||
{
|
||||
_dashCastDrop.GlobalPosition = targetLocation; // Place drop indication cast at dash location
|
||||
var startDropLocation = targetLocation; // Start of the drop is the dash target location
|
||||
|
||||
// End of the drop is either max cast distance or first collision
|
||||
var hasDropLocationHit = _dashCastDrop.IsColliding();
|
||||
var endDropLocation = hasDropLocationHit ? _dashCastDrop.GetCollisionPoint(0) : _dashCastDrop.ToGlobal(DashCast3D.TargetPosition);
|
||||
|
||||
// Only show drop location indicator if drop cast has hit
|
||||
_dashDropLocationIndicator.SetVisible(hasDropLocationHit);
|
||||
_dashDropLocationIndicator.SetGlobalPosition(endDropLocation);
|
||||
|
||||
var dropLength = (endDropLocation - startDropLocation).Length();
|
||||
var dropDirection = (endDropLocation - startDropLocation).Normalized();
|
||||
_dashDropIndicator.SetScale(new Vector3(1, dropLength, 1));
|
||||
_dashDropIndicator.SetGlobalPosition(startDropLocation + dropDirection * dropLength * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
public void StopPreparingDash()
|
||||
{
|
||||
CanDashThroughTarget = false;
|
||||
_dashTarget.SetVisible(false);
|
||||
_dashDropIndicator.SetVisible(false);
|
||||
_dashDropLocationIndicator.SetVisible(false);
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://dwoppk8j5fxeg
|
||||
@@ -1,77 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://hd0868f4pb63"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://chvt6g0xn5c2m" path="res://systems/dash/light-ring.jpg" id="1_jadbb"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tqt6i"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_texture = ExtResource("1_jadbb")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_jngg2"]
|
||||
orientation = 2
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fmn25"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:mesh:size")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(2, 2)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_stbcc"]
|
||||
resource_name = "start"
|
||||
length = 0.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:mesh:size")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(2, 2), Vector2(0, 0)]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0.2),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"queue_free"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3aile"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_fmn25"),
|
||||
&"start": SubResource("Animation_stbcc")
|
||||
}
|
||||
|
||||
[node name="DashIndicator" type="CPUParticles3D" unique_id=585575469]
|
||||
material_override = SubResource("StandardMaterial3D_tqt6i")
|
||||
emitting = false
|
||||
amount = 1
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
mesh = SubResource("PlaneMesh_jngg2")
|
||||
gravity = Vector3(0, 0, 0)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=686842148]
|
||||
libraries/ = SubResource("AnimationLibrary_3aile")
|
||||
autoplay = &"start"
|
||||
@@ -1,57 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://cqduhd4opgwvm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://systems/dash/DashSystem.cs" id="1_hwig2"]
|
||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
||||
[ext_resource type="PackedScene" uid="uid://hd0868f4pb63" path="res://systems/dash/dash_indicator.tscn" id="2_tqt6i"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_jngg2"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_qu4wy"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v31n3"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_jngg2"]
|
||||
top_radius = 0.1
|
||||
bottom_radius = 0.1
|
||||
height = 1.0
|
||||
|
||||
[sub_resource type="TorusMesh" id="TorusMesh_tqt6i"]
|
||||
inner_radius = 0.1
|
||||
outer_radius = 0.5
|
||||
|
||||
[node name="DashSystem" type="Node3D" unique_id=2116632075]
|
||||
script = ExtResource("1_hwig2")
|
||||
DashIndicatorScene = ExtResource("2_tqt6i")
|
||||
|
||||
[node name="DashCast3D" type="ShapeCast3D" parent="." unique_id=1635795914]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
|
||||
shape = SubResource("SphereShape3D_jngg2")
|
||||
target_position = Vector3(0, 0, -12)
|
||||
max_results = 1
|
||||
collision_mask = 304
|
||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||
|
||||
[node name="DashCastDrop" type="ShapeCast3D" parent="." unique_id=980436638]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 1.6, 0)
|
||||
shape = SubResource("SphereShape3D_jngg2")
|
||||
target_position = Vector3(0, 0, -50)
|
||||
max_results = 1
|
||||
collision_mask = 304
|
||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||
|
||||
[node name="DashTarget" type="MeshInstance3D" parent="." unique_id=711803810]
|
||||
mesh = SubResource("SphereMesh_qu4wy")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_v31n3")
|
||||
|
||||
[node name="MantleSystem" parent="." unique_id=1511791010 instance=ExtResource("2_pff7b")]
|
||||
MantleEndLocationDistanceFromWall = 0.25
|
||||
MantleHeightCastStart = 2.0
|
||||
|
||||
[node name="DashIndicator" parent="." unique_id=98967688 instance=ExtResource("2_tqt6i")]
|
||||
visible = false
|
||||
|
||||
[node name="DashDropIndicator" type="MeshInstance3D" parent="." unique_id=173959533]
|
||||
mesh = SubResource("CylinderMesh_jngg2")
|
||||
|
||||
[node name="DashDropLocationIndicator" type="MeshInstance3D" parent="." unique_id=1260955364]
|
||||
mesh = SubResource("TorusMesh_tqt6i")
|
||||
@@ -1,5 +0,0 @@
|
||||
[gd_resource type="Curve" format=3 uid="uid://c2a8soliruf35"]
|
||||
|
||||
[resource]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.5, 1), -1.89032e-07, -1.89032e-07, 0, 0, Vector2(0.8, 0.05), -9.56219, 0.0, 0, 1, Vector2(0.995, 0.05), 0.0, 0.0, 0, 0, Vector2(1, 1), -0.0540619, -0.0540619, 0, 0]
|
||||
point_count = 5
|
||||
BIN
systems/dash/light-ring.jpg
(Stored with Git LFS)
BIN
systems/dash/light-ring.jpg
(Stored with Git LFS)
Binary file not shown.
@@ -1,42 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://chvt6g0xn5c2m"
|
||||
path.s3tc="res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://systems/dash/light-ring.jpg"
|
||||
dest_files=["res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.s3tc.ctex", "res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
@@ -1,370 +0,0 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using RustyOptions;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_face.png")]
|
||||
public partial class HeadSystem : Node3D
|
||||
{
|
||||
[Signal]
|
||||
public delegate void HitboxActivatedEventHandler();
|
||||
[Signal]
|
||||
public delegate void HitboxDeactivatedEventHandler();
|
||||
|
||||
[Signal]
|
||||
public delegate void ParryboxActivatedEventHandler();
|
||||
[Signal]
|
||||
public delegate void ParryboxDeactivatedEventHandler();
|
||||
|
||||
[Signal]
|
||||
public delegate void HitTargetEventHandler();
|
||||
[Signal]
|
||||
public delegate void GotHitEventHandler();
|
||||
[Signal]
|
||||
public delegate void DeathAnimationFinishedEventHandler();
|
||||
|
||||
[Signal]
|
||||
public delegate void StepFootEventHandler();
|
||||
|
||||
public record CameraParameters(
|
||||
double Delta,
|
||||
Vector2 LookDir,
|
||||
Vector3 PlayerInput,
|
||||
Vector3 PlayerVelocity,
|
||||
Vector3 WallContactPoint,
|
||||
float SensitivitMultiplier,
|
||||
bool WithCameraJitter,
|
||||
bool WithCameraBobbing,
|
||||
float BobbingMultiplier,
|
||||
float FovMultiplier);
|
||||
|
||||
private Camera3D _camera;
|
||||
private Marker3D _cameraAnchor;
|
||||
private AnimationPlayer _animationPlayer;
|
||||
private AnimationTree _animationTree;
|
||||
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float LookSensitivity { get; set; } = 1f;
|
||||
|
||||
[ExportGroup("Camera incline")]
|
||||
[Export(PropertyHint.Range, "0.1,50,0.1,or_greater")]
|
||||
public double CameraInclineAcceleration { get; set; } = 10f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float WallRunCameraIncline { get; set; } = 5f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float GroundedCameraIncline { get; set; } = 5f;
|
||||
|
||||
[ExportGroup("Sliding")]
|
||||
[Export(PropertyHint.Range, "0,2,0.1,or_greater")]
|
||||
public float SlidingCameraHeightOffset { get; set; } = 1.0f;
|
||||
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||
public float SlidingJitterFrequency { get; set; } = 0.01f;
|
||||
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||
public float SlidingJitterAmplitude { get; set; } = 0.1f;
|
||||
|
||||
private FastNoiseLite _slidingNoise = new FastNoiseLite();
|
||||
|
||||
[ExportGroup("Bobbing")]
|
||||
|
||||
private float _bobbingAccumulator; // Constantly increases when player moves in X or/and Z axis
|
||||
[Export(PropertyHint.Range, "0,10,0.01,or_greater")]
|
||||
public float BobbingFrequency { set; get; } = 2.4f;
|
||||
[Export(PropertyHint.Range, "0,0.4,0.01,or_greater")]
|
||||
public float BobbingAmplitude { set; get; } = 0.08f;
|
||||
|
||||
[ExportGroup("FOV")]
|
||||
[Export(PropertyHint.Range, "0,180,0.1,degrees")]
|
||||
public float BaseFov { get; set; } = 75.0f;
|
||||
[Export(PropertyHint.Range, "0,10,0.01,or_greater")]
|
||||
public float FovChangeFactor { get; set; } = 1.2f;
|
||||
[Export(PropertyHint.Range, "0,10,0.01,or_greater")]
|
||||
public float FovChangeSpeed { get; set; } = 6.25f;
|
||||
[Export(PropertyHint.Range, "0,100,1,or_greater")]
|
||||
public float FovMaxedOutSpeed { get; set; } = 20f;
|
||||
|
||||
[ExportGroup("First Person rig")]
|
||||
private Node3D _fpRig;
|
||||
private Node3D _rightHandedWeapon;
|
||||
private Node3D _leftHandedWeapon;
|
||||
private Node3D _fpDisplacedRig;
|
||||
private Vector3 _fpDisplacedRigInitialRotation;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float WeaponSway { get; set; } = 5f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float WeaponLookRotation { get; set; } = 1f;
|
||||
[Export(PropertyHint.Range, "0,200,1,or_greater")]
|
||||
public float WeaponMoveRotation { get; set; } = 80f;
|
||||
[Export(PropertyHint.Range, "0,20,0.1,or_greater")]
|
||||
public float WeaponAdjustmentSpeed { get; set; } = 10f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float DisplacedWeaponSway { get; set; } = 5f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,or_greater")]
|
||||
public float DisplacedWeaponLookRotation { get; set; } = 1f;
|
||||
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||
public float DisplacedWeaponMoveRotation { get; set; } = 0.1f;
|
||||
[Export(PropertyHint.Range, "0,20,0.1,or_greater")]
|
||||
public float DisplacedWeaponAdjustmentSpeed { get; set; } = 10f;
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_isPlayingForcingAnim = false;
|
||||
|
||||
Input.SetMouseMode(Input.MouseModeEnum.Captured);
|
||||
_camera = GetNode<Camera3D>("CameraSmooth/Camera3D");
|
||||
_cameraAnchor = GetNode<Marker3D>("CameraAnchor");
|
||||
_animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
|
||||
_animationTree = GetNode<AnimationTree>("AnimationTree");
|
||||
|
||||
_fpRig = GetNode<Node3D>("FPRig");
|
||||
_rightHandedWeapon = GetNode<Node3D>("FPRig/Sword");
|
||||
_leftHandedWeapon = GetNode<Node3D>("FPRig/Parry");
|
||||
_fpDisplacedRig = GetNode<Node3D>("FPRig/Sword");
|
||||
_fpDisplacedRigInitialRotation = _fpDisplacedRig.Rotation;
|
||||
|
||||
_slidingNoise.NoiseType = FastNoiseLite.NoiseTypeEnum.Perlin;
|
||||
_slidingNoise.SetFrequency(SlidingJitterFrequency);
|
||||
}
|
||||
|
||||
public void OnMantle()
|
||||
{
|
||||
_animationTree.Set("parameters/OnMantle/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
public void OnJumpStarted()
|
||||
{
|
||||
_animationTree.Set("parameters/OnJumpStart/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
public void OnJumpEnded()
|
||||
{
|
||||
_animationTree.Set("parameters/OnJumpEnd/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
public void OnHit()
|
||||
{
|
||||
_animationTree.Set("parameters/OnHit/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
public void OnParry()
|
||||
{
|
||||
_animationTree.Set("parameters/OnParry/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
public void OnStartDeathAnimation()
|
||||
{
|
||||
_isPlayingForcingAnim = true;
|
||||
_animationTree.Set("parameters/OnDie/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
|
||||
}
|
||||
|
||||
public void OnDeathAnimationFinished()
|
||||
{
|
||||
EmitSignalDeathAnimationFinished();
|
||||
}
|
||||
|
||||
public void OnHitTarget()
|
||||
{
|
||||
EmitSignalHitTarget();
|
||||
}
|
||||
public void OnGetHit()
|
||||
{
|
||||
EmitSignalGotHit();
|
||||
}
|
||||
|
||||
public void OnHitboxActivated()
|
||||
{
|
||||
EmitSignalHitboxActivated();
|
||||
}
|
||||
public void OnHitboxDeactivated()
|
||||
{
|
||||
EmitSignalHitboxDeactivated();
|
||||
}
|
||||
|
||||
public void OnParryboxActivated()
|
||||
{
|
||||
EmitSignalHitboxActivated();
|
||||
}
|
||||
public void OnParryboxDeactivated()
|
||||
{
|
||||
EmitSignalHitboxDeactivated();
|
||||
}
|
||||
|
||||
private bool _footstepEmitted;
|
||||
private bool _isPlayingForcingAnim;
|
||||
|
||||
public void LookAround(CameraParameters inputs)
|
||||
{
|
||||
if (_isPlayingForcingAnim)
|
||||
{
|
||||
_camera.Position = Vector3.Zero;
|
||||
_camera.Rotation = Vector3.Zero;
|
||||
return;
|
||||
}
|
||||
|
||||
var (delta,
|
||||
lookDir,
|
||||
playerInput,
|
||||
playerVelocity,
|
||||
wallContactPoint,
|
||||
sensitivitMultiplier,
|
||||
withCameraJitter,
|
||||
withCameraBobbing,
|
||||
bobbingMultiplier,
|
||||
fovMultiplier) = inputs;
|
||||
|
||||
// Horizontal movement of head
|
||||
float angleForHorizontalRotation = lookDir.X * LookSensitivity * sensitivitMultiplier;
|
||||
RotateY(angleForHorizontalRotation);
|
||||
|
||||
// Vertical movement of head
|
||||
Vector3 currentCameraRotation = _cameraAnchor.Rotation;
|
||||
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity * sensitivitMultiplier);
|
||||
currentCameraRotation.X = Mathf.Clamp(currentCameraRotation.X, Mathf.DegToRad(-90f), Mathf.DegToRad(90f));
|
||||
|
||||
// Camera incline on Wall and more
|
||||
var isWallRunning = wallContactPoint.Length() > Mathf.Epsilon;
|
||||
float cameraIncline;
|
||||
if (isWallRunning)
|
||||
{
|
||||
var directionToWall = (wallContactPoint - GlobalPosition).Normalized();
|
||||
var cameraInclineFactor = ComputeCameraInclineFactor(directionToWall);
|
||||
cameraIncline = Mathf.DegToRad(WallRunCameraIncline * cameraInclineFactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
var cameraInclineFactor = ComputeCameraInclineFactor(playerInput);
|
||||
cameraIncline = Mathf.DegToRad(GroundedCameraIncline * cameraInclineFactor * -1.0f);
|
||||
}
|
||||
currentCameraRotation.Z = (float) Mathf.Lerp(currentCameraRotation.Z, cameraIncline, delta * CameraInclineAcceleration);
|
||||
_cameraAnchor.Rotation = currentCameraRotation;
|
||||
|
||||
if (withCameraJitter)
|
||||
{
|
||||
_cameraAnchor.Position = Vector3.Down*SlidingCameraHeightOffset;
|
||||
float noise1D = _slidingNoise.GetNoise1D(Time.GetTicksMsec());
|
||||
float noiseAmplitude = SlidingJitterAmplitude*Mathf.Clamp(playerVelocity.Length(), 0f, 1f);
|
||||
_cameraAnchor.Position += Vector3.Up*noise1D*noiseAmplitude;
|
||||
}
|
||||
else
|
||||
{
|
||||
_cameraAnchor.Position = Vector3.Zero;
|
||||
}
|
||||
|
||||
Vector3 newPositionForCamera = Vector3.Zero;
|
||||
Vector3 newPositionForRig = Vector3.Zero;
|
||||
if (withCameraBobbing)
|
||||
{
|
||||
_bobbingAccumulator += (float) delta * playerVelocity.Length();
|
||||
|
||||
// As the _bobbingAccumulator increases we're changing values for sin and cos functions.
|
||||
// Because both of them are just waves, we will be slide up with y and then slide down with y
|
||||
// creating bobbing effect. The same works for cos. As the _bobbingAccumulator increases the cos decreases and then increases
|
||||
newPositionForCamera.Y = Mathf.Sin(_bobbingAccumulator * BobbingFrequency) * BobbingAmplitude * bobbingMultiplier;
|
||||
newPositionForCamera.X = Mathf.Cos(_bobbingAccumulator * BobbingFrequency / 2.0f) * BobbingAmplitude * bobbingMultiplier;
|
||||
|
||||
if (newPositionForCamera.Y < -0.07 && !_footstepEmitted) Footstep();
|
||||
if (newPositionForCamera.Y > 0) _footstepEmitted = false;
|
||||
|
||||
// Offset bobbing for weapon rig
|
||||
newPositionForRig.Y = Mathf.Cos(_bobbingAccumulator * BobbingFrequency) * BobbingAmplitude * bobbingMultiplier * 0.2f;
|
||||
newPositionForRig.X = Mathf.Sin(_bobbingAccumulator * BobbingFrequency / 2.0f) * BobbingAmplitude * bobbingMultiplier * 0.2f;
|
||||
}
|
||||
_cameraAnchor.Position += newPositionForCamera;
|
||||
|
||||
_camera.GlobalTransform = _cameraAnchor.GetGlobalTransformInterpolated();
|
||||
|
||||
// First person rig adjustments
|
||||
_fpRig.GlobalTransform = _cameraAnchor.GetGlobalTransformInterpolated();
|
||||
// Apply bobbing
|
||||
_fpRig.Position += newPositionForRig;
|
||||
|
||||
// Rotate the whole rig based on movement input
|
||||
var newRigRotation = _fpRig.Rotation;
|
||||
var camTilt = Mathf.Lerp(_fpRig.Rotation.Z, cameraIncline*WeaponMoveRotation, delta*WeaponAdjustmentSpeed);
|
||||
newRigRotation.Z = (float) camTilt;
|
||||
|
||||
// Rotate the whole rig based on camera rotation input
|
||||
newRigRotation.X = Mathf.Lerp(newRigRotation.X, -lookDir.Y*WeaponSway, (float) delta*WeaponAdjustmentSpeed);
|
||||
newRigRotation.Y = Mathf.Lerp(newRigRotation.Y, -lookDir.X*WeaponSway, (float) delta*WeaponAdjustmentSpeed);
|
||||
|
||||
// Apply
|
||||
_fpRig.Rotation = newRigRotation;
|
||||
|
||||
// Compute displaced rig adjustments, starting with movement input
|
||||
var newDisplacedRigRotation = _fpDisplacedRig.Rotation;
|
||||
|
||||
var howMuchForward = ComputeHowMuchInputForward(playerInput);
|
||||
var howMuchSideways = ComputeHowMuchInputSideways(playerInput);
|
||||
var displacedCamTiltForward = Mathf.Lerp(newDisplacedRigRotation.Z,
|
||||
_fpDisplacedRigInitialRotation.Z + howMuchForward*DisplacedWeaponMoveRotation,
|
||||
delta*DisplacedWeaponAdjustmentSpeed);
|
||||
var displacedCamTiltSide = Mathf.Lerp(newDisplacedRigRotation.X,
|
||||
_fpDisplacedRigInitialRotation.X - howMuchSideways*DisplacedWeaponMoveRotation,
|
||||
delta*DisplacedWeaponAdjustmentSpeed);
|
||||
|
||||
newDisplacedRigRotation.X = (float) displacedCamTiltSide;
|
||||
newDisplacedRigRotation.Z = (float) displacedCamTiltForward;
|
||||
|
||||
var displacedSwayY = Mathf.Lerp(newDisplacedRigRotation.Y,
|
||||
_fpDisplacedRigInitialRotation.Y - lookDir.X*DisplacedWeaponSway,
|
||||
delta*DisplacedWeaponAdjustmentSpeed);
|
||||
newDisplacedRigRotation.Y = (float) displacedSwayY;
|
||||
|
||||
// Apply
|
||||
_fpDisplacedRig.Rotation = newDisplacedRigRotation;
|
||||
|
||||
// Camera adjustments
|
||||
float velocityClamped = Mathf.Clamp(playerVelocity.Length(), 0.5f, FovMaxedOutSpeed);
|
||||
float targetFov = BaseFov + FovChangeFactor * velocityClamped * fovMultiplier;
|
||||
_camera.Fov = Mathf.Lerp(_camera.Fov, targetFov, (float) delta * FovChangeSpeed);
|
||||
}
|
||||
|
||||
public void Footstep()
|
||||
{
|
||||
_footstepEmitted = true;
|
||||
EmitSignalStepFoot();
|
||||
}
|
||||
|
||||
public void HideWeapon()
|
||||
{
|
||||
_rightHandedWeapon.Visible = false;
|
||||
}
|
||||
public void ShowWeapon()
|
||||
{
|
||||
_rightHandedWeapon.Visible = true;
|
||||
}
|
||||
|
||||
public float ComputeCameraInclineFactor(Vector3 direction)
|
||||
{
|
||||
var forward = GetForwardHorizontalVector().Normalized();
|
||||
var crossProduct = forward.Cross(direction);
|
||||
return crossProduct.Length()*Mathf.Sign(crossProduct.Y);
|
||||
}
|
||||
|
||||
public float ComputeHowMuchInputForward(Vector3 playerInput)
|
||||
{
|
||||
var forwardAngle = GetForwardHorizontalVector().AngleTo(playerInput);
|
||||
var forwardRemapped = Mathf.Remap(forwardAngle, 0, Mathf.Pi, -1, 1);
|
||||
return playerInput.Length() > 0 ? forwardRemapped : 0;
|
||||
}
|
||||
|
||||
public float ComputeHowMuchInputSideways(Vector3 playerInput)
|
||||
{
|
||||
var rightAngle = GetForwardHorizontalVector().Cross(Vector3.Up).Normalized().AngleTo(playerInput);
|
||||
var forwardRemapped = Mathf.Remap(rightAngle, 0, Mathf.Pi, -1, 1);
|
||||
return playerInput.Length() > 0 ? forwardRemapped : 0;
|
||||
}
|
||||
|
||||
public Vector3 GetForwardHorizontalVector()
|
||||
{
|
||||
return GetGlobalTransform().Basis.Z;
|
||||
}
|
||||
|
||||
public Vector3 GetGlobalLookRotation()
|
||||
{
|
||||
return new Vector3(
|
||||
_camera.Rotation.X,
|
||||
Rotation.Y,
|
||||
_camera.Rotation.Z);
|
||||
}
|
||||
|
||||
public void SetHeight(float height)
|
||||
{
|
||||
Position = new Vector3(Position.X, height, Position.Z);
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://dtkdrnsmlwm67
|
||||
@@ -1,76 +0,0 @@
|
||||
[gd_resource type="AnimationNodeBlendTree" format=3 uid="uid://c26yvcyyyj811"]
|
||||
|
||||
[ext_resource type="AnimationNodeStateMachine" uid="uid://3r5oeg0ho0d4" path="res://systems/head/fp_state_machine.tres" id="1_knaxl"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1hkum"]
|
||||
animation = &"die"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_knaxl"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_ao3u1"]
|
||||
filters = ["../..", "../../FPRig/Sword:position", "../../FPRig/Sword:rotation", "..:position", "..:rotation", ".:position", ".:rotation"]
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_1hkum"]
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_knaxl"]
|
||||
filter_enabled = true
|
||||
filters = ["..:position", "..:rotation"]
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_23rmc"]
|
||||
filter_enabled = true
|
||||
filters = ["..:position", "..:rotation"]
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_dlkjl"]
|
||||
filter_enabled = true
|
||||
filters = ["..:position", "..:rotation", "..:rotation:x", "..:rotation:z"]
|
||||
|
||||
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_lwjon"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_calte"]
|
||||
animation = &"parry"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_23rmc"]
|
||||
animation = &"hit1"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dlkjl"]
|
||||
animation = &"jump_end"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ao3u1"]
|
||||
animation = &"jump_start"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lwjon"]
|
||||
animation = &"mantle"
|
||||
|
||||
[resource]
|
||||
graph_offset = Vector2(-363.5551, -25.864124)
|
||||
nodes/output/position = Vector2(2020, -40)
|
||||
nodes/AnimationNodeStateMachine/node = ExtResource("1_knaxl")
|
||||
nodes/AnimationNodeStateMachine/position = Vector2(-560, 180)
|
||||
nodes/Idle/node = SubResource("AnimationNodeAnimation_knaxl")
|
||||
nodes/Idle/position = Vector2(-100, -20)
|
||||
nodes/OnHit/node = SubResource("AnimationNodeOneShot_1hkum")
|
||||
nodes/OnHit/position = Vector2(1240, -60)
|
||||
nodes/hit1/node = SubResource("AnimationNodeAnimation_23rmc")
|
||||
nodes/hit1/position = Vector2(1080, 320)
|
||||
nodes/OnJumpStart/node = SubResource("AnimationNodeOneShot_23rmc")
|
||||
nodes/OnJumpStart/position = Vector2(140, 0)
|
||||
nodes/OnJumpEnd/node = SubResource("AnimationNodeOneShot_knaxl")
|
||||
nodes/OnJumpEnd/position = Vector2(560, -20)
|
||||
nodes/jump_start/node = SubResource("AnimationNodeAnimation_ao3u1")
|
||||
nodes/jump_start/position = Vector2(-120, 320)
|
||||
nodes/jump_end/node = SubResource("AnimationNodeAnimation_dlkjl")
|
||||
nodes/jump_end/position = Vector2(300, 340)
|
||||
nodes/OnMantle/node = SubResource("AnimationNodeOneShot_dlkjl")
|
||||
nodes/OnMantle/position = Vector2(900, -60)
|
||||
nodes/mantle/node = SubResource("AnimationNodeAnimation_lwjon")
|
||||
nodes/mantle/position = Vector2(640, 320)
|
||||
nodes/OnDie/node = SubResource("AnimationNodeOneShot_ao3u1")
|
||||
nodes/OnDie/position = Vector2(1500, -60)
|
||||
nodes/Die/node = SubResource("AnimationNodeAnimation_1hkum")
|
||||
nodes/Die/position = Vector2(1280, 340)
|
||||
nodes/OnParry/node = SubResource("AnimationNodeOneShot_lwjon")
|
||||
nodes/OnParry/position = Vector2(1780, -40)
|
||||
nodes/Parry/node = SubResource("AnimationNodeAnimation_calte")
|
||||
nodes/Parry/position = Vector2(1600, 300)
|
||||
node_connections = [&"output", 0, &"OnParry", &"OnHit", 0, &"OnMantle", &"OnHit", 1, &"hit1", &"OnJumpStart", 0, &"Idle", &"OnJumpStart", 1, &"jump_start", &"OnJumpEnd", 0, &"OnJumpStart", &"OnJumpEnd", 1, &"jump_end", &"OnMantle", 0, &"OnJumpEnd", &"OnMantle", 1, &"mantle", &"OnDie", 0, &"OnHit", &"OnDie", 1, &"Die", &"OnParry", 0, &"OnDie", &"OnParry", 1, &"Parry"]
|
||||
@@ -1,14 +0,0 @@
|
||||
[gd_resource type="AnimationNodeStateMachine" format=3 uid="uid://3r5oeg0ho0d4"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_73q32"]
|
||||
animation = &"idle"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_adm0b"]
|
||||
advance_mode = 2
|
||||
|
||||
[resource]
|
||||
states/Start/position = Vector2(100, 91)
|
||||
states/idle/node = SubResource("AnimationNodeAnimation_73q32")
|
||||
states/idle/position = Vector2(331, 91)
|
||||
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_adm0b")]
|
||||
graph_offset = Vector2(-82, -9)
|
||||
@@ -1,735 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://0ysqmqphq6mq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dtkdrnsmlwm67" path="res://systems/head/HeadSystem.cs" id="1_8abgy"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://ckr26s4e3fj1m" path="res://assets/swords/resources/fp_sword23.tres" id="2_c5qep"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://dogiv0piqfmfu" path="res://assets/swords/resources/fp_sword20.tres" id="3_1ay6d"]
|
||||
[ext_resource type="AnimationNodeBlendTree" uid="uid://c26yvcyyyj811" path="res://systems/head/fp_blend_tree.tres" id="3_r0h40"]
|
||||
[ext_resource type="Script" uid="uid://dnlxsrumw6ygp" path="res://addons/shaker/src/Vector3/shaker_component3D.gd" id="3_ubhf8"]
|
||||
[ext_resource type="Script" uid="uid://0tu2q57qqu4s" path="res://addons/shaker/data/Vector3/BaseShakerType3D.gd" id="4_1ay6d"]
|
||||
[ext_resource type="Script" uid="uid://ptaespkh1sk2" path="res://addons/shaker/data/Vector3/ShakerTypeNoiseShake3D.gd" id="5_sdjj3"]
|
||||
[ext_resource type="Script" uid="uid://mlwdmecg12xd" path="res://addons/shaker/data/Vector3/ShakerPreset3D.gd" id="6_ll12k"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ubhf8"]
|
||||
frequency = 0.15
|
||||
fractal_octaves = 1
|
||||
|
||||
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_1ay6d"]
|
||||
noise = SubResource("FastNoiseLite_ubhf8")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sdjj3"]
|
||||
script = ExtResource("5_sdjj3")
|
||||
noise_texture = SubResource("NoiseTexture3D_1ay6d")
|
||||
amplitude = Vector3(0.1, 0.1, 0.1)
|
||||
metadata/_custom_type_script = "uid://ptaespkh1sk2"
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_sdjj3"]
|
||||
frequency = 0.1
|
||||
|
||||
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_ll12k"]
|
||||
noise = SubResource("FastNoiseLite_sdjj3")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dvot2"]
|
||||
script = ExtResource("5_sdjj3")
|
||||
noise_texture = SubResource("NoiseTexture3D_ll12k")
|
||||
amplitude = Vector3(0.02, 0.02, 0.02)
|
||||
metadata/_custom_type_script = "uid://ptaespkh1sk2"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_60ouj"]
|
||||
script = ExtResource("6_ll12k")
|
||||
PositionShake = Array[ExtResource("4_1ay6d")]([SubResource("Resource_sdjj3")])
|
||||
RotationShake = Array[ExtResource("4_1ay6d")]([SubResource("Resource_dvot2")])
|
||||
metadata/_custom_type_script = "uid://mlwdmecg12xd"
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_1ay6d"]
|
||||
frequency = 0.02
|
||||
fractal_octaves = 1
|
||||
|
||||
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_sdjj3"]
|
||||
noise = SubResource("FastNoiseLite_1ay6d")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ll12k"]
|
||||
script = ExtResource("5_sdjj3")
|
||||
noise_texture = SubResource("NoiseTexture3D_sdjj3")
|
||||
amplitude = Vector3(0.2, 0, 0)
|
||||
metadata/_custom_type_script = "uid://ptaespkh1sk2"
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ll12k"]
|
||||
frequency = 0.02
|
||||
fractal_octaves = 1
|
||||
|
||||
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_se3kf"]
|
||||
noise = SubResource("FastNoiseLite_ll12k")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0k6hv"]
|
||||
script = ExtResource("5_sdjj3")
|
||||
noise_texture = SubResource("NoiseTexture3D_se3kf")
|
||||
amplitude = Vector3(0.1, 0.2, 0.1)
|
||||
metadata/_custom_type_script = "uid://ptaespkh1sk2"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_se3kf"]
|
||||
script = ExtResource("6_ll12k")
|
||||
PositionShake = Array[ExtResource("4_1ay6d")]([SubResource("Resource_ll12k")])
|
||||
RotationShake = Array[ExtResource("4_1ay6d")]([SubResource("Resource_0k6hv")])
|
||||
metadata/_custom_type_script = "uid://mlwdmecg12xd"
|
||||
|
||||
[sub_resource type="Animation" id="Animation_urko7"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("../../FPRig/Sword:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.53640664, -0.7880347, -1.9288678)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("../../FPRig/Sword:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.083978735, -1.136043, 0.19867715)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("../../FPRig/Sword:scale")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1.0000001, 1.0000001, 1.0000005)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("..:rotation")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0.00011616433)]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("..:position")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("../../FPRig/Parry:position")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.22145952, -0.19867475, -1.3653086)]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("../../FPRig/Parry:rotation")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.9350104, 3.0957325, -1.9789876)]
|
||||
}
|
||||
tracks/7/type = "value"
|
||||
tracks/7/imported = false
|
||||
tracks/7/enabled = true
|
||||
tracks/7/path = NodePath("../../FPRig/Parry:visible")
|
||||
tracks/7/interp = 1
|
||||
tracks/7/loop_wrap = true
|
||||
tracks/7/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/8/type = "bezier"
|
||||
tracks/8/imported = false
|
||||
tracks/8/enabled = true
|
||||
tracks/8/path = NodePath("../../FPRig/Parry:rotation:x")
|
||||
tracks/8/interp = 1
|
||||
tracks/8/loop_wrap = true
|
||||
tracks/8/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0.9350104, -0.15, 0, 0.15, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/9/type = "bezier"
|
||||
tracks/9/imported = false
|
||||
tracks/9/enabled = true
|
||||
tracks/9/path = NodePath("../../FPRig/Parry:rotation:y")
|
||||
tracks/9/interp = 1
|
||||
tracks/9/loop_wrap = true
|
||||
tracks/9/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(3.0957325, -0.15, 0, 0.15, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/10/type = "bezier"
|
||||
tracks/10/imported = false
|
||||
tracks/10/enabled = true
|
||||
tracks/10/path = NodePath("../../FPRig/Parry:rotation:z")
|
||||
tracks/10/interp = 1
|
||||
tracks/10/loop_wrap = true
|
||||
tracks/10/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(-1.9789876, -0.15, 0, 0.15, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/11/type = "value"
|
||||
tracks/11/imported = false
|
||||
tracks/11/enabled = true
|
||||
tracks/11/path = NodePath("../../FPRig/Parry:scale")
|
||||
tracks/11/interp = 1
|
||||
tracks/11/loop_wrap = true
|
||||
tracks/11/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1.2, 1.2, 1.2)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_sdjj3"]
|
||||
resource_name = "die"
|
||||
length = 1.0000033
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("../..")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(1),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"OnDeathAnimationFinished"
|
||||
}]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("../../FPRig/Sword:position")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.20000002, 0.4, 0.53333336, 0.8000001),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.53640664, -0.7880347, -1.9288678), Vector3(0.1057997, -0.21274538, -0.63147813), Vector3(0.53640664, 1.0949166, -1.9288678), Vector3(0.13969281, 3.1670854, 0.20333667), Vector3(0.14, -1.255, 0)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("../../FPRig/Sword:rotation")
|
||||
tracks/2/interp = 2
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.20000002, 0.4, 0.53333336, 0.8000001),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.083978735, -1.136043, 0.19867715), Vector3(-1.113491, -0.31576312, -0.983999), Vector3(-0.7104627, -0.98405164, -0.17152688), Vector3(0.111641094, -0.3489763, -2.955844), Vector3(0.11164107, -0.34897622, -2.955844)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("..:position")
|
||||
tracks/3/interp = 2
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.20000002, 0.6333333),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, -0.35507536, 0.32742357), Vector3(0.219, -1.5, 1.166)]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("..:rotation")
|
||||
tracks/4/interp = 2
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0, 0.20000002, 0.6333333),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0.00011616433), Vector3(0, 0, -0.092299014), Vector3(0, 0, 1.2653637)]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("../../FPRig/Parry:position")
|
||||
tracks/5/interp = 2
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.22145952, -0.19867475, -1.3653086), Vector3(-1.3323143, -0.19867463, -1.7020192)]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("../../FPRig/Parry:rotation")
|
||||
tracks/6/interp = 2
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.9350104, 3.0957325, -1.9789876), Vector3(0.5242357, 2.32568, -3.0527115)]
|
||||
}
|
||||
tracks/7/type = "value"
|
||||
tracks/7/imported = false
|
||||
tracks/7/enabled = true
|
||||
tracks/7/path = NodePath("../../FPRig/Parry:visible")
|
||||
tracks/7/interp = 1
|
||||
tracks/7/loop_wrap = true
|
||||
tracks/7/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [true, false]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_r0h40"]
|
||||
resource_name = "hit1"
|
||||
length = 0.30000168
|
||||
step = 0.016666668
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("../../FPRig/Sword:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.11666667, 0.15, 0.21666667, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.53640664, -0.7880347, -1.9288678), Vector3(0.4045868, -0.4412415, -1.5352597), Vector3(-0.4799922, -0.5403832, -1.6861614), Vector3(-0.46995986, -0.53766656, -1.3638693), Vector3(-0.49520528, -0.5369735, -1.3145388), Vector3(-0.4048354, -0.5878634, -1.2836416)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("../../FPRig/Sword:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.11666667, 0.15, 0.21666667, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.083978735, -1.136043, 0.19867715), Vector3(-0.7788485, -2.0049822, -0.2951485), Vector3(-0.94931036, -0.5881021, -0.61733377), Vector3(-1.3252386, -0.102411434, 0.58406436), Vector3(-1.2938086, -0.18945412, 0.7334958), Vector3(-1.1484056, -0.2900904, 0.6867544)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("../../FPRig/Sword:scale")
|
||||
tracks/2/interp = 2
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.11666667, 0.15, 0.21666667, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1.0000001, 1.0000001, 1.0000005), Vector3(1, 1.0004268, 1.0000002), Vector3(0.99999994, 1.2493719, 0.99999976), Vector3(1.0000001, 1.1750004, 1.0000004), Vector3(0.99999994, 0.99999994, 0.99999994), Vector3(1.0000001, 0.9999999, 1)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("..:rotation")
|
||||
tracks/3/interp = 2
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.11666667, 0.2, 0.23333333, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(0, 0, 0.00011616433), Vector3(0, -0.02617994, -0.02617994), Vector3(0, 0.02617994, 0.02617994), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/4/type = "method"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("../..")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0.083333336, 0.23333333),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"OnHitboxActivated"
|
||||
}, {
|
||||
"args": [],
|
||||
"method": &"OnHitboxDeactivated"
|
||||
}]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("../../FPRig/Parry:position")
|
||||
tracks/5/interp = 2
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0, 0.033333335, 0.083333336, 0.16666667, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.22145952, -0.19867475, -1.3653086), Vector3(-0.0715476, -0.16325326, -0.8197592), Vector3(-0.36483923, -0.26392323, -1.3945884), Vector3(-0.8528395, -0.26392323, -1.2049117), Vector3(-0.8528395, -0.26392323, -1.2049117)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0hyrq"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("../../FPRig/Sword:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.6, 1, 1.4),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.53640664, -0.7880347, -1.9288678), Vector3(0.53640664, -0.83580256, -1.9288678), Vector3(0.53640664, -0.86088884, -1.9288678), Vector3(0.53640664, -0.8256072, -1.9288678), Vector3(0.53640664, -0.7880347, -1.9288678)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("../../FPRig/Sword:rotation")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.6, 1, 1.4),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.083978735, -1.136043, 0.19867715), Vector3(-0.06987281, -1.1365474, 0.20524277), Vector3(-0.05990464, -1.1368362, 0.20987195), Vector3(-0.06303402, -1.1367121, 0.2084137), Vector3(-0.083978735, -1.136043, 0.19867715)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("../../FPRig/Parry:position")
|
||||
tracks/2/interp = 2
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.8000001),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.22145952, -0.19867475, -1.3653086), Vector3(-0.221, -0.211, -1.365), Vector3(-0.221, -0.16, -1.365)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("../../FPRig/Parry:rotation")
|
||||
tracks/3/interp = 2
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.8000001),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.9350104, 3.0957325, -1.9789876), Vector3(0.93194425, 3.0397656, -2.0486145), Vector3(0.9362563, 3.1298003, -1.9366695)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_1ay6d"]
|
||||
resource_name = "jump_end"
|
||||
length = 0.26667002
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:rotation")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.13333334, 0.26666668),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0.00011616433), Vector3(-0.08726646, 0, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("..:position")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.26666668),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, -0.05, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ubhf8"]
|
||||
resource_name = "jump_start"
|
||||
length = 0.26667002
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.26666668),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, -0.1, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("..:rotation")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.13333334, 0.26666668),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0.00011616433), Vector3(-0.08726646, 0, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8abgy"]
|
||||
resource_name = "mantle"
|
||||
length = 0.3
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("..:rotation")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0.00011616433), Vector3(-0.5235988, 0, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ll12k"]
|
||||
resource_name = "parry"
|
||||
length = 0.3
|
||||
step = 0.016666668
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("../../FPRig/Parry:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.13333334, 0.16666667, 0.20000002, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.22145952, -0.19867475, -1.3653086), Vector3(0.08582078, -0.10871372, -0.57329714), Vector3(0.23993218, -0.07025133, -0.8836378), Vector3(0.2783246, -0.07025109, -0.9678366), Vector3(0.2897812, -0.07025109, -0.8572479), Vector3(-0.22145952, -0.19867475, -1.3653086)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("../../FPRig/Sword:position")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.15, 0.21666668, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.53640664, -0.7880347, -1.9288678), Vector3(0.35144368, -0.7880347, -0.88497114), Vector3(0.87958574, -0.7880347, -1.4807583), Vector3(0.87958574, -0.7880347, -1.4807583), Vector3(0.53640664, -0.7880347, -1.9288678)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("../../FPRig/Sword:rotation")
|
||||
tracks/2/interp = 2
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.06666667, 0.15, 0.21666668, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.083978735, -1.136043, 0.19867715), Vector3(0.012032291, -1.1376454, 0.24317425), Vector3(0.012032287, -1.8018653, 0.24317427), Vector3(0.012032287, -1.8018653, 0.24317427), Vector3(-0.083978735, -1.136043, 0.19867715)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("..:rotation")
|
||||
tracks/3/interp = 2
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.016666666, 0.1, 0.16666667, 0.2, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(0, 0, 0.05235988), Vector3(0, -0.05235988, -0.10471976), Vector3(0, 0.02617994, 0.05235988), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/4/type = "method"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("../..")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0.06666667, 0.18333334),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"OnParryboxActivated"
|
||||
}, {
|
||||
"args": [],
|
||||
"method": &"OnParryboxDeactivated"
|
||||
}]
|
||||
}
|
||||
tracks/5/type = "bezier"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("../../FPRig/Parry:rotation:x")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0, 2, 2, 2, 0),
|
||||
"points": PackedFloat32Array(0.9350104, -0.15, 0, 0.033333335, 0.17374629, 0.98194534, -0.01666667, 0.016720235, 0, 0, 1.4891908, -0.03333334, -0.06340563, 0, 0, 1.5010982, -0.005555555, 0, 0, 0, 1.3694806, -0.008333336, 0.021936258, 0, 0, 0.9350104, -0.03333333, 0.17374629, 0.033333335, 0.17374629),
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.13333334, 0.16666667, 0.21666668, 0.3)
|
||||
}
|
||||
tracks/6/type = "bezier"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("../../FPRig/Parry:rotation:y")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0, 2, 2, 2, 0),
|
||||
"points": PackedFloat32Array(3.0957325, -0.15, 0, 0.05, -0.045176744, 2.8761902, -0.033333335, 0.30117726, 0, 0, 2.9792244, -0.03333334, -0.25362277, 0, 0, 2.9158187, -0.016666666, 0.11096001, 0, 0, 2.8365617, -0.01666668, -0.18834376, 0, 0, 3.0957325, -0.050000012, -0.21161652, 0.05, -0.045176744),
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.13333334, 0.16666667, 0.21666668, 0.3)
|
||||
}
|
||||
tracks/7/type = "bezier"
|
||||
tracks/7/imported = false
|
||||
tracks/7/enabled = true
|
||||
tracks/7/path = NodePath("../../FPRig/Parry:rotation:z")
|
||||
tracks/7/interp = 1
|
||||
tracks/7/loop_wrap = true
|
||||
tracks/7/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0, 2, 2, 2, 0),
|
||||
"points": PackedFloat32Array(-1.9789876, -0.15, 0, 0.016666668, 0.6069969, -1.5225792, -0.01666667, 0.26527464, 0, 0, -0.9026986, -0.011111112, -0.101292565, 0, 0, -0.90269864, -0.005555555, 9.934108e-09, 0, 0, -1.642684, -0.008333336, 0.1233309, 0, 0, -1.9789876, -0.050000012, 0.13937998, 0.016666668, 0.6069969),
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.13333334, 0.16666667, 0.21666668, 0.3)
|
||||
}
|
||||
tracks/8/type = "value"
|
||||
tracks/8/imported = false
|
||||
tracks/8/enabled = true
|
||||
tracks/8/path = NodePath("../../FPRig/Parry:scale")
|
||||
tracks/8/interp = 2
|
||||
tracks/8/loop_wrap = true
|
||||
tracks/8/keys = {
|
||||
"times": PackedFloat32Array(0, 0.083333336, 0.13333334, 0.16666667, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1), Vector3(1.2, 1.2, 1.2), Vector3(1.65, 1, 1), Vector3(1, 1, 1), Vector3(1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0hyrq"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_urko7"),
|
||||
&"die": SubResource("Animation_sdjj3"),
|
||||
&"hit1": SubResource("Animation_r0h40"),
|
||||
&"idle": SubResource("Animation_0hyrq"),
|
||||
&"jump_end": SubResource("Animation_1ay6d"),
|
||||
&"jump_start": SubResource("Animation_ubhf8"),
|
||||
&"mantle": SubResource("Animation_8abgy"),
|
||||
&"parry": SubResource("Animation_ll12k")
|
||||
}
|
||||
|
||||
[node name="HeadSystem" type="Node3D" unique_id=2067407038]
|
||||
script = ExtResource("1_8abgy")
|
||||
WeaponMoveRotation = 20.0
|
||||
DisplacedWeaponSway = 1.0
|
||||
DisplacedWeaponAdjustmentSpeed = 8.0
|
||||
|
||||
[node name="FPRig" type="Node3D" parent="." unique_id=922968399]
|
||||
transform = Transform3D(0.9999998, 0, 0, 0, 1.0000002, 0, 0, 0, 1.0000002, 0, 0, 0)
|
||||
|
||||
[node name="Sword" type="Node3D" parent="FPRig" unique_id=1946191657]
|
||||
transform = Transform3D(0.42791694, -0.008550272, -0.9037781, 0.19667713, 0.9768738, 0.0838801, 0.88215953, -0.2136461, 0.41970265, 0.53640664, -0.7880347, -1.9288678)
|
||||
|
||||
[node name="SwordMesh" type="MeshInstance3D" parent="FPRig/Sword" unique_id=1887561286]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.99999994, 0, 0, 0, 1, 0, 0, 0)
|
||||
cast_shadow = 0
|
||||
mesh = ExtResource("2_c5qep")
|
||||
|
||||
[node name="Parry" type="Node3D" parent="FPRig" unique_id=1218775403]
|
||||
transform = Transform3D(0.43521196, -1.1178209, 0.03266725, -0.65402746, -0.2828554, -0.96552634, 0.9071047, 0.33236945, -0.711823, -0.22145952, -0.19867475, -1.3653086)
|
||||
|
||||
[node name="ParryMesh" type="MeshInstance3D" parent="FPRig/Parry" unique_id=1993291456]
|
||||
mesh = ExtResource("3_1ay6d")
|
||||
|
||||
[node name="CameraSmooth" type="Node3D" parent="." unique_id=2072010960]
|
||||
transform = Transform3D(0.9999998, -0.00011616429, 0, 0.00011616431, 0.99999964, 0, 0, 0, 0.99999976, 0, 0, 0)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraSmooth" unique_id=544372058]
|
||||
transform = Transform3D(1, 0, 0, 0, 1.0000002, 0, 0, 0, 1.0000001, 0, 0, 0)
|
||||
current = true
|
||||
fov = 90.0
|
||||
|
||||
[node name="OnGetHitShaker" type="Node3D" parent="CameraSmooth/Camera3D" unique_id=1644568585]
|
||||
transform = Transform3D(1, 0, 0, -7.275958e-12, 0.99999976, 0, 0, 0, 0.99999976, 0, 1.8626451e-09, 3.7252903e-09)
|
||||
script = ExtResource("3_ubhf8")
|
||||
intensity = 1.2
|
||||
duration = 0.5
|
||||
fade_in = 0.06470415
|
||||
fade_out = 0.46651623
|
||||
shakerPreset = SubResource("Resource_60ouj")
|
||||
metadata/_custom_type_script = "uid://dnlxsrumw6ygp"
|
||||
|
||||
[node name="OnHitShaker" type="Node3D" parent="CameraSmooth/Camera3D" unique_id=1445921461]
|
||||
transform = Transform3D(1, 0, 0, -7.275958e-12, 0.99999976, 0, 0, 0, 0.99999976, 0, 1.8626451e-09, 3.7252903e-09)
|
||||
script = ExtResource("3_ubhf8")
|
||||
duration = 0.3
|
||||
fade_in = 0.041234624
|
||||
fade_out = 0.5547845
|
||||
shakerPreset = SubResource("Resource_se3kf")
|
||||
metadata/_custom_type_script = "uid://dnlxsrumw6ygp"
|
||||
|
||||
[node name="CameraAnchor" type="Marker3D" parent="." unique_id=1554357312]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1831491746]
|
||||
root_node = NodePath("../CameraSmooth/Camera3D")
|
||||
libraries/ = SubResource("AnimationLibrary_0hyrq")
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." unique_id=1817901670]
|
||||
root_node = NodePath("../CameraSmooth/Camera3D")
|
||||
tree_root = ExtResource("3_r0h40")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/OnHit/active = false
|
||||
parameters/OnHit/internal_active = false
|
||||
parameters/OnHit/request = 0
|
||||
parameters/OnJumpStart/active = false
|
||||
parameters/OnJumpStart/internal_active = false
|
||||
parameters/OnJumpStart/request = 0
|
||||
parameters/OnJumpEnd/active = false
|
||||
parameters/OnJumpEnd/internal_active = false
|
||||
parameters/OnJumpEnd/request = 0
|
||||
parameters/OnMantle/active = false
|
||||
parameters/OnMantle/internal_active = false
|
||||
parameters/OnMantle/request = 0
|
||||
parameters/OnDie/active = false
|
||||
parameters/OnDie/internal_active = false
|
||||
parameters/OnDie/request = 0
|
||||
parameters/OnParry/active = false
|
||||
parameters/OnParry/internal_active = false
|
||||
parameters/OnParry/request = 0
|
||||
|
||||
[connection signal="GotHit" from="." to="CameraSmooth/Camera3D/OnGetHitShaker" method="play_shake"]
|
||||
[connection signal="HitTarget" from="." to="CameraSmooth/Camera3D/OnHitShaker" method="play_shake"]
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://c3e0ivgaxrsyb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gn1pi"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gn1pi")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://bebstkm608wxx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_bvbvh"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_bvbvh")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://j1o5ud0plk4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_8q4sr"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_8q4sr")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,561 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" format=3 uid="uid://bl5crtu1gkrtr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_qmhk6"]
|
||||
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="2_g6bbx"]
|
||||
[ext_resource type="Script" uid="uid://mtx1unc2aqn7" path="res://addons/guide/guide_input_mapping.gd" id="3_yp12v"]
|
||||
[ext_resource type="Script" uid="uid://doauobik3xyea" path="res://addons/guide/inputs/guide_input_joy_axis_2d.gd" id="4_1rw8g"]
|
||||
[ext_resource type="Script" uid="uid://bl8rjl4oaldje" path="res://addons/guide/modifiers/guide_modifier.gd" id="5_0qat1"]
|
||||
[ext_resource type="Script" uid="uid://bm5gjgadon6hb" path="res://addons/guide/modifiers/guide_modifier_input_swizzle.gd" id="6_li5ak"]
|
||||
[ext_resource type="Script" uid="uid://c47lkb48itd6l" path="res://addons/guide/modifiers/guide_modifier_deadzone.gd" id="7_si4d4"]
|
||||
[ext_resource type="Script" uid="uid://x74mnwgr08a7" path="res://addons/guide/triggers/guide_trigger.gd" id="8_2tfaw"]
|
||||
[ext_resource type="Resource" uid="uid://cpdaw41ah5gic" path="res://systems/inputs/base_mode/rotate_y.tres" id="9_q86qg"]
|
||||
[ext_resource type="Script" uid="uid://bbhoxsiqwo07l" path="res://addons/guide/inputs/guide_input_joy_axis_1d.gd" id="10_cvxqo"]
|
||||
[ext_resource type="Script" uid="uid://bjm4myqxg4phm" path="res://addons/guide/modifiers/guide_modifier_scale.gd" id="11_j3axn"]
|
||||
[ext_resource type="Script" uid="uid://ckggy40lm0vjc" path="res://addons/guide/modifiers/guide_modifier_negate.gd" id="12_kxb2c"]
|
||||
[ext_resource type="Script" uid="uid://b6bwb7ie85kl1" path="res://addons/guide/inputs/guide_input_mouse_axis_1d.gd" id="13_j3axn"]
|
||||
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="13_v2ywt"]
|
||||
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="14_yp12v"]
|
||||
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="15_fykw6"]
|
||||
[ext_resource type="Script" uid="uid://b4cdrn4paoj3i" path="res://addons/guide/triggers/guide_trigger_down.gd" id="15_g6bbx"]
|
||||
[ext_resource type="Script" uid="uid://cgy4anjdob2tp" path="res://addons/guide/modifiers/guide_modifier_window_relative.gd" id="15_rvpjj"]
|
||||
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="16_li5ak"]
|
||||
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="16_rvpjj"]
|
||||
[ext_resource type="Script" uid="uid://vgjlx6p007lp" path="res://addons/guide/inputs/guide_input_mouse_button.gd" id="17_kxb2c"]
|
||||
[ext_resource type="Script" uid="uid://biiggjw6tv4uq" path="res://addons/guide/triggers/guide_trigger_released.gd" id="17_s8kjn"]
|
||||
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="19_qkgmj"]
|
||||
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="21_818lq"]
|
||||
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="22_2hs2y"]
|
||||
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="23_g6bbx"]
|
||||
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="23_llfhp"]
|
||||
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/slide_pressed.tres" id="23_rvpjj"]
|
||||
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/slide_released.tres" id="25_rvpjj"]
|
||||
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="25_si4d4"]
|
||||
[ext_resource type="Resource" uid="uid://dgluj0ql5vth7" path="res://systems/inputs/base_mode/pause.tres" id="29_q86qg"]
|
||||
[ext_resource type="Script" uid="uid://cw71o87tvdx3q" path="res://addons/guide/inputs/guide_input_key.gd" id="30_cvxqo"]
|
||||
[ext_resource type="Resource" uid="uid://spo3pbqjx0eb" path="res://systems/inputs/base_mode/parry.tres" id="30_rvpjj"]
|
||||
[ext_resource type="Resource" uid="uid://dxy0071ic1wdj" path="res://systems/inputs/base_mode/slam.tres" id="32_s8kjn"]
|
||||
[ext_resource type="Resource" uid="uid://s1l0n1iitc6m" path="res://systems/inputs/base_mode/move_back.tres" id="33_fykw6"]
|
||||
[ext_resource type="Resource" uid="uid://brswsknpgwal2" path="res://systems/inputs/base_mode/move_front.tres" id="34_rvpjj"]
|
||||
[ext_resource type="Resource" uid="uid://ca68r7n3bwba3" path="res://systems/inputs/base_mode/toolbox.tres" id="34_s8kjn"]
|
||||
[ext_resource type="Resource" uid="uid://f3vs6l4m623s" path="res://systems/inputs/base_mode/move_left.tres" id="35_s8kjn"]
|
||||
[ext_resource type="Resource" uid="uid://t612lts1wi1s" path="res://systems/inputs/base_mode/move_right.tres" id="36_vibkn"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vkvga"]
|
||||
script = ExtResource("4_1rw8g")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kb1id"]
|
||||
script = ExtResource("6_li5ak")
|
||||
order = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rwam6"]
|
||||
script = ExtResource("7_si4d4")
|
||||
lower_threshold = 0.1
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1igva"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_vkvga")
|
||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_kb1id"), SubResource("Resource_rwam6")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_88x08"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("2_g6bbx")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1igva")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_05q5j"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tn8ci"]
|
||||
script = ExtResource("7_si4d4")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1koh7"]
|
||||
script = ExtResource("11_j3axn")
|
||||
scale = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_eep0a"]
|
||||
script = ExtResource("12_kxb2c")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dew8i"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_05q5j")
|
||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_tn8ci"), SubResource("Resource_1koh7"), SubResource("Resource_eep0a")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mfl87"]
|
||||
script = ExtResource("13_j3axn")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1n4k0"]
|
||||
script = ExtResource("15_rvpjj")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ukc1w"]
|
||||
script = ExtResource("12_kxb2c")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_4pf65"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_mfl87")
|
||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_1n4k0"), SubResource("Resource_ukc1w")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tgr2g"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("9_q86qg")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_dew8i"), SubResource("Resource_4pf65")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_pf0ii"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 3
|
||||
|
||||
[sub_resource type="Resource" id="Resource_nh7x4"]
|
||||
script = ExtResource("7_si4d4")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_04n84"]
|
||||
script = ExtResource("11_j3axn")
|
||||
scale = Vector3(0.1, 0.1, 0.1)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_m3aj7"]
|
||||
script = ExtResource("12_kxb2c")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qu2wi"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_pf0ii")
|
||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_nh7x4"), SubResource("Resource_04n84"), SubResource("Resource_m3aj7")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2ioub"]
|
||||
script = ExtResource("13_j3axn")
|
||||
axis = 1
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fvpbi"]
|
||||
script = ExtResource("12_kxb2c")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7l3h2"]
|
||||
script = ExtResource("15_rvpjj")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fyd0i"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_2ioub")
|
||||
modifiers = Array[ExtResource("5_0qat1")]([SubResource("Resource_fvpbi"), SubResource("Resource_7l3h2")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_iarn8"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("13_v2ywt")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qu2wi"), SubResource("Resource_fyd0i")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_si4d4"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2tfaw"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q86qg"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_si4d4")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_2tfaw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o031f"]
|
||||
script = ExtResource("17_kxb2c")
|
||||
button = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3s858"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wh232"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_o031f")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_3s858")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cvxqo"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("14_yp12v")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_q86qg"), SubResource("Resource_wh232")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_llfhp"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ib0yi"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_r6kml"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_llfhp")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ib0yi")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xh105"]
|
||||
script = ExtResource("17_kxb2c")
|
||||
button = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_30oue"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2supu"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_xh105")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_30oue")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tb8ii"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("16_li5ak")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_r6kml"), SubResource("Resource_2supu")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cqc4k"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vanwy"]
|
||||
script = ExtResource("17_s8kjn")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bkx7d"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_cqc4k")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_vanwy")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_omo75"]
|
||||
script = ExtResource("17_kxb2c")
|
||||
button = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_npyga"]
|
||||
script = ExtResource("17_s8kjn")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yxj6r"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_omo75")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_npyga")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_iihs4"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("16_rvpjj")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_bkx7d"), SubResource("Resource_yxj6r")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qkgmj"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_st2ej"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s8kjn"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_qkgmj")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_st2ej")])
|
||||
metadata/_guide_triggers_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wcvib"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 4194326
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8ifoc"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_imjft"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_wcvib")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_8ifoc")])
|
||||
metadata/_guide_triggers_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vibkn"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("23_rvpjj")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_s8kjn"), SubResource("Resource_imjft")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_f3pn5"]
|
||||
script = ExtResource("10_cvxqo")
|
||||
axis = 5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rvpjj"]
|
||||
script = ExtResource("17_s8kjn")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_818lq"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_f3pn5")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rvpjj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qksfw"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 4194326
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bhf7o"]
|
||||
script = ExtResource("17_s8kjn")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_woy8j"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_qksfw")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_bhf7o")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2hs2y"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("25_rvpjj")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_818lq"), SubResource("Resource_woy8j")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1fkas"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6pxii"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jy4f1"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_1fkas")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_6pxii")])
|
||||
metadata/_guide_triggers_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_pv160"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 32
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ra6lx"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q44n6"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_pv160")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ra6lx")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_d2r0d"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("25_si4d4")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_jy4f1"), SubResource("Resource_q44n6")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_oapce"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8w5gu"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_oapce")
|
||||
metadata/_guide_triggers_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_assli"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 32
|
||||
|
||||
[sub_resource type="Resource" id="Resource_x5v0d"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_assli")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xt1x5"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("21_818lq")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_8w5gu"), SubResource("Resource_x5v0d")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_li5ak"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 10
|
||||
|
||||
[sub_resource type="Resource" id="Resource_paxxe"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_500v3"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_li5ak")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_paxxe")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_pdblu"]
|
||||
script = ExtResource("17_kxb2c")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q0e5d"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_a8sqk"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_pdblu")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_q0e5d")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ew1hw"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("22_2hs2y")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_500v3"), SubResource("Resource_a8sqk")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kx31q"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 9
|
||||
|
||||
[sub_resource type="Resource" id="Resource_oux88"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b7w5s"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_kx31q")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_oux88")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jk2g8"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 70
|
||||
|
||||
[sub_resource type="Resource" id="Resource_y7p41"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3uxou"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_jk2g8")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_y7p41")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3frwi"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("30_rvpjj")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_b7w5s"), SubResource("Resource_3uxou")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_g6bbx"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 1
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yp12v"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1rw8g"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_g6bbx")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_yp12v")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xbeov"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 4194325
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rt8uw"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hj46p"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_xbeov")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rt8uw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0qat1"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("23_g6bbx")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1rw8g"), SubResource("Resource_hj46p")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o5yys"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_06f1o"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_v2ywt"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_o5yys")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_06f1o")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qpgnj"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 69
|
||||
|
||||
[sub_resource type="Resource" id="Resource_g5tel"]
|
||||
script = ExtResource("15_g6bbx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s6d3g"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_qpgnj")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_g5tel")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vtk18"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("32_s8kjn")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_v2ywt"), SubResource("Resource_s6d3g")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s4bc4"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 4194305
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3exnu"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ai85f"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_s4bc4")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_3exnu")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jjamb"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 6
|
||||
|
||||
[sub_resource type="Resource" id="Resource_4kb6s"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1ycft"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_jjamb")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_4kb6s")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_weyro"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("29_q86qg")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ai85f"), SubResource("Resource_1ycft")])
|
||||
metadata/_guide_input_mappings_collapsed = false
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8e1uk"]
|
||||
script = ExtResource("19_qkgmj")
|
||||
button = 4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_k8i2y"]
|
||||
script = ExtResource("15_fykw6")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ilhhf"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_8e1uk")
|
||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_k8i2y")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o5fur"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("34_s8kjn")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ilhhf")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kcylj"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 83
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yq6lj"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_kcylj")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fjku4"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("33_fykw6")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_yq6lj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wt677"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 87
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ly2iy"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_wt677")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_odnhd"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("34_rvpjj")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_ly2iy")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_i62p1"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 65
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3d0gd"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_i62p1")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0eff7"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("35_s8kjn")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_3d0gd")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_uqqnm"]
|
||||
script = ExtResource("30_cvxqo")
|
||||
key = 68
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7io5e"]
|
||||
script = ExtResource("3_yp12v")
|
||||
input = SubResource("Resource_uqqnm")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_gt77e"]
|
||||
script = ExtResource("1_qmhk6")
|
||||
action = ExtResource("36_vibkn")
|
||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_7io5e")])
|
||||
|
||||
[resource]
|
||||
script = ExtResource("23_llfhp")
|
||||
mappings = Array[ExtResource("1_qmhk6")]([SubResource("Resource_88x08"), SubResource("Resource_tgr2g"), SubResource("Resource_iarn8"), SubResource("Resource_cvxqo"), SubResource("Resource_tb8ii"), SubResource("Resource_iihs4"), SubResource("Resource_vibkn"), SubResource("Resource_2hs2y"), SubResource("Resource_d2r0d"), SubResource("Resource_xt1x5"), SubResource("Resource_ew1hw"), SubResource("Resource_3frwi"), SubResource("Resource_0qat1"), SubResource("Resource_vtk18"), SubResource("Resource_weyro"), SubResource("Resource_o5fur"), SubResource("Resource_fjku4"), SubResource("Resource_odnhd"), SubResource("Resource_0eff7"), SubResource("Resource_gt77e")])
|
||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://d2r0ur8k3cuu3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_3acf8"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3acf8")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://b5gx3q8nvu72e"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_hph1v"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hph1v")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://bdit2jy5gbpts"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_pxv2l"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_pxv2l")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://55b0dsvioj08"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_4yfi4"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_4yfi4")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://htqvokm8mufq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_xhsni"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_xhsni")
|
||||
action_value_type = 3
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://s1l0n1iitc6m"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_7ljxs"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_7ljxs")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://brswsknpgwal2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_6kcci"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_6kcci")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://f3vs6l4m623s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_u1qdq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_u1qdq")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://t612lts1wi1s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gd7dq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gd7dq")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://spo3pbqjx0eb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_hlutc"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hlutc")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://dgluj0ql5vth7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_76xvu"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_76xvu")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://ccrb5xsnphc8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_glvw1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_glvw1")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,8 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://cpdaw41ah5gic"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_3jk50"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3jk50")
|
||||
action_value_type = 1
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://dxy0071ic1wdj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_6evmc"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_6evmc")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://bbce5wfwxpns1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_v6tj6"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_v6tj6")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://b334rau1yxmm7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_06ocg"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_06ocg")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://ca68r7n3bwba3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_pmr0d"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_pmr0d")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,129 +0,0 @@
|
||||
extends Node3D
|
||||
class_name InputController
|
||||
|
||||
@export_group("Mapping contexts")
|
||||
@export var base_mode:GUIDEMappingContext
|
||||
|
||||
@export_group("Move actions")
|
||||
@export var move:GUIDEAction
|
||||
@export var move_left:GUIDEAction
|
||||
@export var move_right:GUIDEAction
|
||||
@export var move_front:GUIDEAction
|
||||
@export var move_back:GUIDEAction
|
||||
@export var rotate_vertical:GUIDEAction
|
||||
@export var rotate_floorplane:GUIDEAction
|
||||
|
||||
@export_group("Trigger actions")
|
||||
@export_subgroup("Aim")
|
||||
@export var aim_down:GUIDEAction
|
||||
@export var aim_pressed:GUIDEAction
|
||||
@export var aim_released:GUIDEAction
|
||||
@export_subgroup("Jump")
|
||||
@export var jump:GUIDEAction
|
||||
@export var jump_pressed:GUIDEAction
|
||||
@export_subgroup("Slide")
|
||||
@export var slide_pressed:GUIDEAction
|
||||
@export var slide_released:GUIDEAction
|
||||
@export_subgroup("Other")
|
||||
@export var hit:GUIDEAction
|
||||
@export var parry:GUIDEAction
|
||||
@export var dash:GUIDEAction
|
||||
@export var slam:GUIDEAction
|
||||
|
||||
signal input_device_changed(is_gamepad: bool)
|
||||
var _using_gamepad = false
|
||||
|
||||
signal input_move(value: Vector3)
|
||||
signal input_rotate_y(value: float)
|
||||
signal input_rotate_floorplane(value: float)
|
||||
signal input_move_keyboard(value: Vector3)
|
||||
|
||||
# Jump
|
||||
signal input_jump_started
|
||||
signal input_jump_ongoing
|
||||
signal input_jump_ended
|
||||
|
||||
signal input_aim_pressed
|
||||
signal input_aim_down
|
||||
signal input_aim_released
|
||||
|
||||
signal input_slide_started
|
||||
signal input_slide_ended
|
||||
|
||||
signal input_hit
|
||||
signal input_parry
|
||||
signal input_dash
|
||||
signal input_slam
|
||||
|
||||
func _ready() -> void:
|
||||
GUIDE.enable_mapping_context(base_mode)
|
||||
|
||||
aim_down.triggered.connect(on_input_aim_down)
|
||||
aim_pressed.triggered.connect(on_input_aim_pressed)
|
||||
aim_released.triggered.connect(on_input_aim_released)
|
||||
|
||||
jump_pressed.triggered.connect(on_input_jump_started)
|
||||
jump.triggered.connect(on_input_jump_ongoing)
|
||||
jump.completed.connect(on_input_jump_ended)
|
||||
|
||||
slide_pressed.triggered.connect(on_input_slide_started)
|
||||
slide_released.triggered.connect(on_input_slide_ended)
|
||||
|
||||
hit.triggered.connect(on_input_hit)
|
||||
parry.triggered.connect(on_input_parry)
|
||||
dash.triggered.connect(on_input_dash)
|
||||
slam.triggered.connect(on_input_slam)
|
||||
|
||||
|
||||
func on_input_hit():
|
||||
input_hit.emit()
|
||||
func on_input_parry():
|
||||
input_parry.emit()
|
||||
func on_input_dash():
|
||||
input_dash.emit()
|
||||
func on_input_slam():
|
||||
input_slam.emit()
|
||||
|
||||
func on_input_jump_started():
|
||||
input_jump_started.emit()
|
||||
func on_input_jump_ongoing():
|
||||
input_jump_ongoing.emit()
|
||||
func on_input_jump_ended():
|
||||
input_jump_ended.emit()
|
||||
|
||||
func on_input_aim_down():
|
||||
input_aim_down.emit()
|
||||
func on_input_aim_pressed():
|
||||
input_aim_pressed.emit()
|
||||
func on_input_aim_released():
|
||||
input_aim_released.emit()
|
||||
|
||||
func on_input_slide_started():
|
||||
input_slide_started.emit()
|
||||
func on_input_slide_ended():
|
||||
input_slide_ended.emit()
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event is InputEventKey:
|
||||
if _using_gamepad:
|
||||
_using_gamepad = false
|
||||
input_device_changed.emit(_using_gamepad)
|
||||
elif event is InputEventJoypadMotion:
|
||||
if !_using_gamepad:
|
||||
if abs(event.axis_value) > 0.5:
|
||||
_using_gamepad = true
|
||||
input_device_changed.emit(_using_gamepad)
|
||||
elif event is InputEventJoypadButton:
|
||||
if !_using_gamepad:
|
||||
_using_gamepad = true
|
||||
input_device_changed.emit(_using_gamepad)
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var value_horizontal = -move_left.value_axis_1d + move_right.value_axis_1d
|
||||
var value_vertical = -move_front.value_axis_1d + move_back.value_axis_1d
|
||||
var keyboard_input_vector = Vector3(value_horizontal, 0, value_vertical)
|
||||
|
||||
input_move_keyboard.emit(keyboard_input_vector)
|
||||
input_move.emit(move.value_axis_3d)
|
||||
input_rotate_y.emit(rotate_vertical.value_axis_1d)
|
||||
input_rotate_floorplane.emit(rotate_floorplane.value_axis_1d)
|
||||
@@ -1 +0,0 @@
|
||||
uid://b5nk6ntlps3x0
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://ck43v3q5ype3f"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_4pmby"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_4pmby")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://dv6438xhua6id"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_56ywq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_56ywq")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://by80bubgg0dpx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_jx5gn"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_jx5gn")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,230 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" format=3 uid="uid://c2hpxkcujyc13"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_xno0b"]
|
||||
[ext_resource type="Resource" uid="uid://ck43v3q5ype3f" path="res://systems/inputs/menu_mode/back.tres" id="2_6sfub"]
|
||||
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="2_w5wm7"]
|
||||
[ext_resource type="Script" uid="uid://mtx1unc2aqn7" path="res://addons/guide/guide_input_mapping.gd" id="3_scydb"]
|
||||
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="4_q6ncx"]
|
||||
[ext_resource type="Script" uid="uid://bl8rjl4oaldje" path="res://addons/guide/modifiers/guide_modifier.gd" id="5_vnf02"]
|
||||
[ext_resource type="Script" uid="uid://x74mnwgr08a7" path="res://addons/guide/triggers/guide_trigger.gd" id="6_c647i"]
|
||||
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="7_m88dc"]
|
||||
[ext_resource type="Script" uid="uid://cw71o87tvdx3q" path="res://addons/guide/inputs/guide_input_key.gd" id="8_yfqfy"]
|
||||
[ext_resource type="Resource" uid="uid://ds8quw8a7uh2u" path="res://systems/inputs/menu_mode/select.tres" id="9_dsdj3"]
|
||||
[ext_resource type="Resource" uid="uid://8t1evbmg3liq" path="res://systems/inputs/menu_mode/up.tres" id="10_q44ew"]
|
||||
[ext_resource type="Resource" uid="uid://dv6438xhua6id" path="res://systems/inputs/menu_mode/down.tres" id="11_as826"]
|
||||
[ext_resource type="Resource" uid="uid://cihlxajjlh80a" path="res://systems/inputs/menu_mode/right.tres" id="12_erftc"]
|
||||
[ext_resource type="Resource" uid="uid://by80bubgg0dpx" path="res://systems/inputs/menu_mode/left.tres" id="13_sy651"]
|
||||
[ext_resource type="Resource" uid="uid://bmef0jo6o41ic" path="res://systems/inputs/menu_mode/next.tres" id="14_2sr1w"]
|
||||
[ext_resource type="Resource" uid="uid://c3n6ww58cmbbk" path="res://systems/inputs/menu_mode/previous.tres" id="15_2j2sf"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tp5dr"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 1
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lvbl0"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2ux44"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_tp5dr")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_lvbl0")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6sfub"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194305
|
||||
|
||||
[sub_resource type="Resource" id="Resource_17mt7"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_23hmj"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_6sfub")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_17mt7")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_len71"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("2_6sfub")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_2ux44"), SubResource("Resource_23hmj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wkavf"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3uc4f"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fidv6"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_wkavf")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_3uc4f")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_y2xy1"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194309
|
||||
|
||||
[sub_resource type="Resource" id="Resource_orcaw"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yxowx"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_y2xy1")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_orcaw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ruq4f"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("9_dsdj3")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_fidv6"), SubResource("Resource_yxowx")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3fxnk"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 11
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5uay1"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0v0i1"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_3fxnk")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_5uay1")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_72t1r"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194320
|
||||
|
||||
[sub_resource type="Resource" id="Resource_4qbib"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cccin"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_72t1r")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_4qbib")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5hp22"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("10_q44ew")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_0v0i1"), SubResource("Resource_cccin")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1klk7"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 12
|
||||
|
||||
[sub_resource type="Resource" id="Resource_h4vny"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jmmtp"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_1klk7")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_h4vny")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cfqv5"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194322
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0i4uw"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fka1a"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_cfqv5")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_0i4uw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7i3b3"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("11_as826")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_jmmtp"), SubResource("Resource_fka1a")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s10di"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 14
|
||||
|
||||
[sub_resource type="Resource" id="Resource_isne2"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fru3p"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_s10di")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_isne2")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hbvow"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194321
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mq0hj"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sb8uf"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_hbvow")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_mq0hj")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6ptcp"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("12_erftc")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_fru3p"), SubResource("Resource_sb8uf")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ortmh"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 13
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1berd"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0wrqh"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_ortmh")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_1berd")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_saokt"]
|
||||
script = ExtResource("8_yfqfy")
|
||||
key = 4194319
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2b3t5"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_a5khc"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_saokt")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_2b3t5")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xked7"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("13_sy651")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_0wrqh"), SubResource("Resource_a5khc")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1y2qg"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 10
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vwpv3"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7mcrw"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_1y2qg")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_vwpv3")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qjv8h"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("14_2sr1w")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_7mcrw")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s2haq"]
|
||||
script = ExtResource("4_q6ncx")
|
||||
button = 9
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vankc"]
|
||||
script = ExtResource("7_m88dc")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3owmx"]
|
||||
script = ExtResource("3_scydb")
|
||||
input = SubResource("Resource_s2haq")
|
||||
triggers = Array[ExtResource("6_c647i")]([SubResource("Resource_vankc")])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_p0ahg"]
|
||||
script = ExtResource("1_xno0b")
|
||||
action = ExtResource("15_2j2sf")
|
||||
input_mappings = Array[ExtResource("3_scydb")]([SubResource("Resource_3owmx")])
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_w5wm7")
|
||||
mappings = Array[ExtResource("1_xno0b")]([SubResource("Resource_len71"), SubResource("Resource_ruq4f"), SubResource("Resource_5hp22"), SubResource("Resource_7i3b3"), SubResource("Resource_6ptcp"), SubResource("Resource_xked7"), SubResource("Resource_qjv8h"), SubResource("Resource_p0ahg")])
|
||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://bmef0jo6o41ic"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_u34uv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_u34uv")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://c3n6ww58cmbbk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_hipw6"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hipw6")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://cihlxajjlh80a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_x80dv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_x80dv")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://ds8quw8a7uh2u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gdlub"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gdlub")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,7 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="GUIDEAction" format=3 uid="uid://8t1evbmg3liq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_t6kxf"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_t6kxf")
|
||||
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
||||
@@ -1,114 +0,0 @@
|
||||
using Godot;
|
||||
using RustyOptions;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_follower.png")]
|
||||
public partial class MantleSystem: Node3D
|
||||
{
|
||||
[Export(PropertyHint.Range, "0,2,0.01,suffix:m,or_greater")]
|
||||
public float MantleEndLocationDistanceFromWall { get; set; } = 1f;
|
||||
[Export(PropertyHint.Range, "0,10,0.1,suffix:m,or_greater")]
|
||||
public float MantleHeightCastStart { get; set; } = 2f;
|
||||
[Export(PropertyHint.Range, "0,10,0.01,suffix:m,or_greater")]
|
||||
public float MaxStepHeight = 0.5f;
|
||||
|
||||
private ShapeCast3D _wallInFrontCast3D;
|
||||
private ShapeCast3D _mantleCast3D;
|
||||
|
||||
private ShapeCast3D _inAirWallDetect;
|
||||
private ShapeCast3D _groundedWallDetect;
|
||||
public Curve3D MantleCurve { get; private set; }
|
||||
public Vector3 FirstMantleProfilePoint { get; private set; } = Vector3.Zero;
|
||||
|
||||
public bool IsMantlePossible { get; private set; } = false;
|
||||
public bool EndedOnOtherSideOfWall { get; private set; } = false;
|
||||
public bool FoundGround { get; private set; } = false;
|
||||
public const int WallProfileCastCount = 7;
|
||||
|
||||
private ShapeCast3D[] _wallProfileShapecasts = new ShapeCast3D[WallProfileCastCount];
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_wallInFrontCast3D = GetNode<ShapeCast3D>("WallInFrontCast3D");
|
||||
_mantleCast3D = GetNode<ShapeCast3D>("MantleCast3D");
|
||||
|
||||
_inAirWallDetect = GetNode<ShapeCast3D>("InAirWallDetect");
|
||||
_groundedWallDetect = GetNode<ShapeCast3D>("GroundedWallDetect");
|
||||
for (int i = 0; i < _wallProfileShapecasts.Length; i++)
|
||||
{
|
||||
_wallProfileShapecasts[i] = GetNode<ShapeCast3D>($"WallProfileShapeCasts/ShapeCast{i + 1}");
|
||||
}
|
||||
}
|
||||
|
||||
private void SetCastsEnabled(bool enabled)
|
||||
{
|
||||
foreach (var wallProfileShapecast in _wallProfileShapecasts)
|
||||
{
|
||||
wallProfileShapecast.SetEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
public void ProcessMantle(bool isGrounded)
|
||||
{
|
||||
_inAirWallDetect.SetEnabled(!isGrounded);
|
||||
_groundedWallDetect.SetEnabled(isGrounded);
|
||||
var isColliding = _inAirWallDetect.IsColliding() || _groundedWallDetect.IsColliding();
|
||||
SetCastsEnabled(isColliding);
|
||||
|
||||
// Reset state
|
||||
IsMantlePossible = false;
|
||||
EndedOnOtherSideOfWall = false;
|
||||
FoundGround = false;
|
||||
if (!isColliding) return;
|
||||
|
||||
// Check if face something wall-like that should be climbable
|
||||
var collisionNormal = isGrounded ? _groundedWallDetect.GetCollisionNormal(0) : _inAirWallDetect.GetCollisionNormal(0);
|
||||
if (collisionNormal.Y > 0.7f) return;
|
||||
|
||||
var spaceState = GetWorld3D().DirectSpaceState;
|
||||
|
||||
MantleCurve = new Curve3D();
|
||||
MantleCurve.AddPoint(Vector3.Zero);
|
||||
var hasFirstProfileHit = false;
|
||||
var previousProfilePoint = GlobalPosition;
|
||||
foreach (var wallProfileShapecast in _wallProfileShapecasts)
|
||||
{
|
||||
// Haven't met the wall yet
|
||||
if (!wallProfileShapecast.IsColliding() && !hasFirstProfileHit) continue;
|
||||
|
||||
var globalTargetPosition = wallProfileShapecast.GlobalPosition + wallProfileShapecast.TargetPosition;
|
||||
|
||||
// Got to the other side of the wall, we stop there
|
||||
if (!wallProfileShapecast.IsColliding())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
var profilePoint = wallProfileShapecast.GetCollisionPoint(0);
|
||||
var profileNormal = wallProfileShapecast.GetCollisionNormal(0);
|
||||
var shape = wallProfileShapecast.Shape as SphereShape3D;
|
||||
var shapeRadius = shape == null ? 0.125f : shape.Radius;
|
||||
var centerOfShape = profilePoint + profileNormal * shapeRadius;
|
||||
|
||||
// Check if we collided parallel to a wall
|
||||
var isCollisionSameAsTarget = globalTargetPosition.IsEqualApprox(centerOfShape);
|
||||
var isCollidingWithWall = profileNormal.Y < 0.1f;
|
||||
if (isCollisionSameAsTarget || isCollidingWithWall) continue;
|
||||
|
||||
// Check if the path from the previous point makes us go through a wall
|
||||
var query = PhysicsRayQueryParameters3D.Create(previousProfilePoint, centerOfShape, wallProfileShapecast.CollisionMask);
|
||||
var result = spaceState.IntersectRay(query);
|
||||
if (result.Count > 0) break; // We are going through a wall, we stop there
|
||||
|
||||
// We have a valid collision
|
||||
if (!hasFirstProfileHit) FirstMantleProfilePoint = centerOfShape;
|
||||
hasFirstProfileHit = true;
|
||||
previousProfilePoint = centerOfShape;
|
||||
MantleCurve.AddPoint(ToLocal(centerOfShape));
|
||||
}
|
||||
if (MantleCurve.PointCount == 1) return;
|
||||
|
||||
IsMantlePossible = true;
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://bja6tis1vaysu
|
||||
@@ -1,4 +0,0 @@
|
||||
[gd_resource type="SphereShape3D" format=3 uid="uid://dp2p8v7demb5j"]
|
||||
|
||||
[resource]
|
||||
radius = 0.25
|
||||
@@ -1,104 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://wq1okogkhc5l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bja6tis1vaysu" path="res://systems/mantle/MantleSystem.cs" id="1_2oobp"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4coqe"]
|
||||
height = 1.7
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_2oobp"]
|
||||
radius = 0.75
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2oobp"]
|
||||
radius = 0.25
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_i32qj"]
|
||||
radius = 0.25
|
||||
height = 1.5
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_i32qj"]
|
||||
radius = 0.125
|
||||
|
||||
[node name="MantleSystem" type="Node3D" unique_id=1117790260]
|
||||
script = ExtResource("1_2oobp")
|
||||
MantleEndLocationDistanceFromWall = 0.2
|
||||
MantleHeightCastStart = 3.0
|
||||
|
||||
[node name="MantleCast3D" type="ShapeCast3D" parent="." unique_id=977434819]
|
||||
visible = false
|
||||
shape = SubResource("CapsuleShape3D_4coqe")
|
||||
target_position = Vector3(0, 0, 0)
|
||||
max_results = 1
|
||||
collision_mask = 256
|
||||
debug_shape_custom_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="." unique_id=774357590]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
visible = false
|
||||
shape = SubResource("SphereShape3D_2oobp")
|
||||
target_position = Vector3(0, 0, -1.5)
|
||||
max_results = 1
|
||||
collision_mask = 256
|
||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||
|
||||
[node name="InAirWallDetect" type="ShapeCast3D" parent="." unique_id=276043236]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.01, 0)
|
||||
shape = SubResource("CapsuleShape3D_2oobp")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="GroundedWallDetect" type="ShapeCast3D" parent="." unique_id=1673208243]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.26, 0)
|
||||
shape = SubResource("CapsuleShape3D_i32qj")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="WallProfileShapeCasts" type="Node3D" parent="." unique_id=857147957]
|
||||
|
||||
[node name="ShapeCast1" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=1271662121]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -0.5)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast2" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=147611166]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -0.75)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast3" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=1248645023]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast4" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=839558141]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.25)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast5" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=886271592]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.5)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast6" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=1927435390]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -1.75)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
|
||||
[node name="ShapeCast7" type="ShapeCast3D" parent="WallProfileShapeCasts" unique_id=2112972214]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, -2)
|
||||
enabled = false
|
||||
shape = SubResource("SphereShape3D_i32qj")
|
||||
target_position = Vector3(0, -2.125, 0)
|
||||
collision_mask = 256
|
||||
@@ -1,54 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
public partial class TweenQueueSystem : Node3D
|
||||
{
|
||||
public record TweenInputs(Vector3 Location, float Duration);
|
||||
|
||||
private Queue<TweenInputs> _tweenInputs = new Queue<TweenInputs>();
|
||||
private Node3D _tweenObject;
|
||||
private bool _isTweening = false;
|
||||
private Callable _tweenEndedCallback;
|
||||
|
||||
public void Init(Node3D tweenObject)
|
||||
{
|
||||
_tweenObject = tweenObject;
|
||||
_tweenEndedCallback = new Callable(this, MethodName.EndTween);
|
||||
}
|
||||
|
||||
public void EndTween()
|
||||
{
|
||||
_isTweening = false;
|
||||
}
|
||||
|
||||
public Tween TweenToLocation(TweenInputs inputs)
|
||||
{
|
||||
var (location, duration) = inputs;
|
||||
|
||||
var tween = GetTree().CreateTween();
|
||||
tween.SetParallel(true);
|
||||
tween.TweenProperty(_tweenObject, "global_position", location, duration);
|
||||
tween.TweenCallback(_tweenEndedCallback);
|
||||
_isTweening = true;
|
||||
return tween;
|
||||
}
|
||||
|
||||
public void QueueTween(TweenInputs inputs)
|
||||
{
|
||||
_tweenInputs.Enqueue(inputs);
|
||||
}
|
||||
|
||||
public void QueueTween(Vector3 location, float duration)
|
||||
{
|
||||
QueueTween(new TweenInputs(location, duration));
|
||||
}
|
||||
|
||||
public void ProcessTweens()
|
||||
{
|
||||
if (_tweenInputs.Count > 0 && !_isTweening)
|
||||
TweenToLocation(_tweenInputs.Dequeue());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://crm4u4r56hvg7
|
||||
@@ -1,6 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://dbe5f0p6lvqtr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://crm4u4r56hvg7" path="res://systems/tween_queue/TweenQueueSystem.cs" id="1_iqosd"]
|
||||
|
||||
[node name="TweenQueueSystem" type="Node3D" unique_id=1341402383]
|
||||
script = ExtResource("1_iqosd")
|
||||
@@ -1,45 +0,0 @@
|
||||
@icon("res://assets/ui/IconGodotNode/white/icon_gear_2.png")
|
||||
extends Node
|
||||
|
||||
@export_category("Scenes")
|
||||
@export_group("General")
|
||||
@export var main_menu_path : String = "res://menus/scenes/menus/main_menu/main_menu_with_animations.tscn"
|
||||
|
||||
@export_category("Menus")
|
||||
@export_group("Overlaid")
|
||||
@export var lost_menu_scene : PackedScene = preload("uid://ciyq8eiv1mtie")
|
||||
@export var toolbox_scene : PackedScene = preload("uid://bcn582q8qd4ns")
|
||||
|
||||
@export_category("Others")
|
||||
@export var focused_viewport : Viewport
|
||||
@export var toolbox_action:GUIDEAction = preload("uid://ca68r7n3bwba3")
|
||||
|
||||
# Debug
|
||||
@onready var debug_layer: CanvasLayer = $"../DebugLayer"
|
||||
@onready var player: PlayerController = $"../Player"
|
||||
|
||||
func _ready() -> void:
|
||||
toolbox_action.triggered.connect(open_toolbox)
|
||||
|
||||
func open_overlaid_menu(menu: PackedScene) -> Node:
|
||||
if not focused_viewport:
|
||||
focused_viewport = get_viewport()
|
||||
var _initial_focus_control = focused_viewport.gui_get_focus_owner()
|
||||
return menu.instantiate()
|
||||
|
||||
func open_toolbox() -> void:
|
||||
var toolbox: Toolbox = open_overlaid_menu(toolbox_scene)
|
||||
toolbox.player = player
|
||||
debug_layer.call_deferred("add_child", toolbox)
|
||||
|
||||
func on_player_died() -> void:
|
||||
var lost_menu: LevelLostMenu = open_overlaid_menu(lost_menu_scene)
|
||||
get_tree().current_scene.call_deferred("add_child", lost_menu)
|
||||
lost_menu.restart_pressed.connect(restart_current_level)
|
||||
lost_menu.main_menu_pressed.connect(back_to_main_menu)
|
||||
|
||||
func back_to_main_menu():
|
||||
SceneLoader.load_scene(main_menu_path)
|
||||
|
||||
func restart_current_level():
|
||||
SceneLoader.reload_current_scene()
|
||||
@@ -1 +0,0 @@
|
||||
uid://cupqhe3qv7ero
|
||||
@@ -1,4 +0,0 @@
|
||||
extends Control
|
||||
|
||||
func _ready() -> void:
|
||||
grab_focus()
|
||||
@@ -1 +0,0 @@
|
||||
uid://brrt2uj47cmld
|
||||
@@ -1,6 +0,0 @@
|
||||
extends Control
|
||||
|
||||
@export_file("*.tscn") var game_scene_path : String
|
||||
|
||||
func on_new_game() -> void:
|
||||
SceneLoader.load_scene(game_scene_path)
|
||||
@@ -1 +0,0 @@
|
||||
uid://ckywnolvqy6w1
|
||||
@@ -1,64 +0,0 @@
|
||||
extends Control
|
||||
|
||||
@export var tuto_got_sword_packed : PackedScene
|
||||
@export var focused_viewport : Viewport
|
||||
var already_shown_weapon_tuto : bool = false
|
||||
var active_tutorial: Control
|
||||
|
||||
@onready var tutorial_master_panel: PanelContainer = $PanelContainer
|
||||
@onready var wait_to_show_blocking_tuto: Timer = $WaitToShowBlockingTuto
|
||||
|
||||
@onready var tuto_move_and_look: VBoxContainer = %TutoMoveAndLook
|
||||
@onready var tuto_mantle_up: HBoxContainer = %TutoMantleUp
|
||||
@onready var tuto_wall_jump: HBoxContainer = %TutoWallJump
|
||||
@onready var tuto_dash_weapon: HBoxContainer = %TutoDashWeapon
|
||||
@onready var tuto_weapon_throw: HBoxContainer = %TutoWeaponThrow
|
||||
@onready var tuto_enjoy: HBoxContainer = %TutoEnjoy
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
active_tutorial = tuto_move_and_look
|
||||
func hide_tutorials(body: Node3D) -> void:
|
||||
active_tutorial.visible = false
|
||||
master_invisible()
|
||||
func master_invisible() -> void:
|
||||
tutorial_master_panel.visible = false
|
||||
func master_visible() -> void:
|
||||
tutorial_master_panel.visible = true
|
||||
func handle_new_tutorial(tuto: Control) -> void:
|
||||
tuto.visible = true
|
||||
active_tutorial = tuto
|
||||
master_visible()
|
||||
|
||||
|
||||
func _on_tuto_mantle_body_entered(body: Node3D) -> void:
|
||||
handle_new_tutorial(tuto_mantle_up)
|
||||
|
||||
func _on_tuto_wall_jump_body_entered(body: Node3D) -> void:
|
||||
handle_new_tutorial(tuto_wall_jump)
|
||||
|
||||
func _on_tuto_done_area_body_entered(body: Node3D) -> void:
|
||||
handle_new_tutorial(tuto_dash_weapon)
|
||||
|
||||
func _on_weapon_retrieved_body_entered(body: Node3D) -> void:
|
||||
wait_to_show_blocking_tuto.start()
|
||||
|
||||
func _on_tuto_weapon_throw_body_entered(body: Node3D) -> void:
|
||||
handle_new_tutorial(tuto_weapon_throw)
|
||||
|
||||
func _on_tuto_enjoy_body_entered(body: Node3D) -> void:
|
||||
handle_new_tutorial(tuto_enjoy)
|
||||
|
||||
func _show_weapon_tutorial() -> void:
|
||||
if already_shown_weapon_tuto:
|
||||
return
|
||||
|
||||
already_shown_weapon_tuto = true
|
||||
if not focused_viewport:
|
||||
focused_viewport = get_viewport()
|
||||
var _initial_focus_control = focused_viewport.gui_get_focus_owner()
|
||||
var current_menu = tuto_got_sword_packed.instantiate()
|
||||
get_tree().current_scene.call_deferred("add_child", current_menu)
|
||||
await current_menu.tree_exited
|
||||
if is_inside_tree() and _initial_focus_control:
|
||||
_initial_focus_control.grab_focus()
|
||||
@@ -1 +0,0 @@
|
||||
uid://dvieq1o7ci70y
|
||||
@@ -1,59 +0,0 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RustyOptions;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_wall.png")]
|
||||
public partial class WallHugSystem : Node3D
|
||||
{
|
||||
[Signal]
|
||||
public delegate void WallDetectedEventHandler();
|
||||
|
||||
private List<RayCast3D> _raycasts;
|
||||
public Option<Vector3> WallHugLocation { get; private set; } = Option<Vector3>.None;
|
||||
public Option<Vector3> WallHugNormal { get; private set; } = Option<Vector3>.None;
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_raycasts = new List<RayCast3D>();
|
||||
_raycasts.Add(GetNode<RayCast3D>("front"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("front2"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("back"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("back2"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("left"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("left2"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("right"));
|
||||
_raycasts.Add(GetNode<RayCast3D>("right2"));
|
||||
}
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
base._PhysicsProcess(delta);
|
||||
CheckWallHugging();
|
||||
if (IsWallHugging())
|
||||
EmitSignal(SignalName.WallDetected);
|
||||
}
|
||||
|
||||
public void CheckWallHugging()
|
||||
{
|
||||
foreach (RayCast3D raycast in _raycasts)
|
||||
{
|
||||
if (raycast.IsColliding() && Math.Abs(raycast.GetCollisionNormal().Y) < 0.3f)
|
||||
{
|
||||
WallHugLocation = raycast.GetCollisionPoint().Some();
|
||||
WallHugNormal = raycast.GetCollisionNormal().Some();
|
||||
return;
|
||||
}
|
||||
}
|
||||
WallHugLocation = Option<Vector3>.None;
|
||||
WallHugNormal = Option<Vector3>.None;
|
||||
}
|
||||
|
||||
public bool IsWallHugging()
|
||||
{
|
||||
return !WallHugLocation.IsNone;
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://tjiji63wlom5
|
||||
@@ -1,197 +0,0 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using GodotStateCharts;
|
||||
using Movementtests.interfaces;
|
||||
using Movementtests.systems.damage;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_sword.png")]
|
||||
public partial class WeaponSystem : RigidBody3D, IDamageDealer
|
||||
{
|
||||
[Signal]
|
||||
public delegate void WeaponThrownEventHandler();
|
||||
|
||||
[Signal]
|
||||
public delegate void WeaponRetrievedEventHandler();
|
||||
|
||||
[Export]
|
||||
public RDamage RDamage { get; set; }
|
||||
[Export(PropertyHint.Range, "0,100,1,or_greater")]
|
||||
public float ThrowForce { get; set; } = 1f;
|
||||
[Export(PropertyHint.Range, "0,0.2,0.01,or_greater")]
|
||||
public float StraightThrowDuration { get; set; } = 0.1f;
|
||||
|
||||
private StateChart _weaponState;
|
||||
public StateChartState InHandState;
|
||||
public StateChartState FlyingState;
|
||||
public StateChartState PlantedState;
|
||||
|
||||
private ShapeCast3D _dashCast3D;
|
||||
private TweenQueueSystem _tweenQueueSystem;
|
||||
|
||||
private Transform3D _startTransform;
|
||||
private Vector3 _startMeshRotation;
|
||||
|
||||
private Vector3 _throwDirection;
|
||||
public Vector3 PlantLocation { get; set; }
|
||||
public Vector3 PlantNormal { get; set; }
|
||||
public Node PlantObject { get; set; }
|
||||
|
||||
public MeshInstance3D WeaponLocationIndicator { get; set; }
|
||||
public StandardMaterial3D WeaponLocationIndicatorMaterial { get; set; }
|
||||
public MeshInstance3D WeaponMesh { get; set; }
|
||||
|
||||
public void Init()
|
||||
{
|
||||
_weaponState = StateChart.Of(GetNode("StateChart"));
|
||||
InHandState = StateChartState.Of(GetNode("StateChart/Root/InHand"));
|
||||
FlyingState = StateChartState.Of(GetNode("StateChart/Root/Flying"));
|
||||
PlantedState = StateChartState.Of(GetNode("StateChart/Root/Planted"));
|
||||
|
||||
WeaponLocationIndicator = GetNode<MeshInstance3D>("WeaponLocationIndicator");
|
||||
WeaponLocationIndicator.Visible = false;
|
||||
WeaponLocationIndicatorMaterial = WeaponLocationIndicator.GetActiveMaterial(0) as StandardMaterial3D;
|
||||
|
||||
WeaponMesh = GetNode<MeshInstance3D>("Weapon");
|
||||
_startMeshRotation = WeaponMesh.Rotation;
|
||||
|
||||
_tweenQueueSystem = GetNode<TweenQueueSystem>("TweenQueueSystem");
|
||||
_tweenQueueSystem.Init(this);
|
||||
|
||||
_startTransform = Transform;
|
||||
Freeze = true;
|
||||
Visible = false;
|
||||
|
||||
BodyEntered += OnThrownWeaponReachesGround;
|
||||
|
||||
InHandState.StateExited += WeaponLeft;
|
||||
InHandState.StateEntered += WeaponBack;
|
||||
}
|
||||
|
||||
public void WeaponLeft()
|
||||
{
|
||||
Visible = true;
|
||||
// WeaponLocationIndicator.Visible = true;
|
||||
EmitSignalWeaponThrown();
|
||||
}
|
||||
|
||||
public void WeaponBack()
|
||||
{
|
||||
Visible = false;
|
||||
// WeaponLocationIndicator.Visible = false;
|
||||
EmitSignalWeaponRetrieved();
|
||||
}
|
||||
|
||||
public void PlaceWeaponForTutorial(Vector3 location)
|
||||
{
|
||||
_weaponState.SendEvent("plant");
|
||||
Freeze = true;
|
||||
GlobalPosition = location;
|
||||
PlantLocation = location;
|
||||
}
|
||||
|
||||
public void ThrowWeapon(Vector3 end, bool hasHit, Vector3 collisionLocation, Vector3 collisionNormal, Node collidedObject)
|
||||
{
|
||||
_weaponState.SendEvent("throw");
|
||||
|
||||
// WeaponLocationIndicatorMaterial.StencilColor = new Color(1f, 1f, 1f);
|
||||
|
||||
_throwDirection = (end - GlobalPosition).Normalized();
|
||||
PlantLocation = collisionLocation;
|
||||
PlantNormal = collisionNormal;
|
||||
LookAt(end);
|
||||
|
||||
var tween = _tweenQueueSystem.TweenToLocation(new TweenQueueSystem.TweenInputs(end, StraightThrowDuration));
|
||||
if (hasHit)
|
||||
{
|
||||
PlantObject = collidedObject;
|
||||
tween.Finished += PlantWeaponInWall;
|
||||
}
|
||||
else
|
||||
tween.Finished += ThrowWeaponOnCurve;
|
||||
}
|
||||
|
||||
public void PlantInEnemy(Node3D enemy)
|
||||
{
|
||||
GetTree().GetRoot().CallDeferred(Node.MethodName.RemoveChild, this);
|
||||
enemy.CallDeferred(Node.MethodName.AddChild, this);
|
||||
|
||||
if (enemy is IDamageable damageable)
|
||||
{
|
||||
damageable.TakeDamage(new DamageRecord(GlobalPosition, RDamage));
|
||||
}
|
||||
}
|
||||
|
||||
public void RethrowWeapon()
|
||||
{
|
||||
_weaponState.SendEvent("throw");
|
||||
_throwDirection = Vector3.Up;
|
||||
ThrowWeaponOnCurve();
|
||||
}
|
||||
|
||||
public void ThrowWeaponOnCurve()
|
||||
{
|
||||
Freeze = false;
|
||||
ApplyImpulse(_throwDirection * ThrowForce);
|
||||
}
|
||||
|
||||
public void PlantWeaponInWall()
|
||||
{
|
||||
_weaponState.SendEvent("plant");
|
||||
|
||||
Freeze = true;
|
||||
WeaponMesh.Rotation = _startMeshRotation;
|
||||
|
||||
// WeaponLocationIndicatorMaterial.StencilColor = new Color(1f, 0.2f, 0.2f);
|
||||
if (PlantObject is Node3D node)
|
||||
{
|
||||
PlantInEnemy(node);
|
||||
}
|
||||
CallDeferred(Node3D.MethodName.SetGlobalPosition, PlantLocation);
|
||||
CallDeferred(Node3D.MethodName.LookAt, GlobalTransform.Origin + PlantNormal, Vector3.Up, true);
|
||||
}
|
||||
|
||||
public void OnThrownWeaponReachesGround(Node other)
|
||||
{
|
||||
PlantObject = other;
|
||||
PlantWeaponInWall();
|
||||
}
|
||||
|
||||
public void ResetWeapon()
|
||||
{
|
||||
_weaponState.SendEvent("recover");
|
||||
Transform = _startTransform;
|
||||
Freeze = true;
|
||||
Visible = false;
|
||||
}
|
||||
|
||||
public override void _IntegrateForces(PhysicsDirectBodyState3D state)
|
||||
{
|
||||
base._IntegrateForces(state);
|
||||
|
||||
if (!Freeze && state.GetContactCount() > 0)
|
||||
{
|
||||
PlantLocation = state.GetContactLocalPosition(0);
|
||||
PlantNormal = state.GetContactLocalNormal(0);
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (!FlyingState.Active) return;
|
||||
|
||||
WeaponMesh.Rotation = new Vector3(WeaponMesh.Rotation.X, WeaponMesh.Rotation.Y + (float) delta * 100, WeaponMesh.Rotation.Z);
|
||||
//LookAt(GlobalTransform.Origin + LinearVelocity.Normalized(), Vector3.Up, false);
|
||||
}
|
||||
|
||||
public bool IsPlantedUnderPlatform()
|
||||
{
|
||||
return PlantedState.Active && GlobalRotation.X > 1 && Math.Abs(GlobalRotation.Y) > 1;
|
||||
}
|
||||
|
||||
public bool IsPlantedInWall()
|
||||
{
|
||||
return PlantedState.Active && Math.Abs(GlobalRotation.X) + Math.Abs(GlobalRotation.Z) < 0.3;
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://iii3wfto4t5b
|
||||
@@ -1,5 +0,0 @@
|
||||
extends MeshInstance3D
|
||||
|
||||
|
||||
func _on_weapon_retrieved_body_entered(body: Node3D) -> void:
|
||||
visible = false
|
||||
@@ -1 +0,0 @@
|
||||
uid://v4nnql2laqdn
|
||||
@@ -1,13 +0,0 @@
|
||||
[gd_resource type="CylinderMesh" format=3 uid="uid://b7vt0nk2htpo4"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jv82r"]
|
||||
use_z_clip_scale = true
|
||||
z_clip_scale = 0.9
|
||||
use_fov_override = true
|
||||
fov_override = 70.0
|
||||
|
||||
[resource]
|
||||
material = SubResource("StandardMaterial3D_jv82r")
|
||||
top_radius = 0.0
|
||||
bottom_radius = 0.05
|
||||
height = 1.0
|
||||
@@ -1,112 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://ckm3d6k08a72u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://iii3wfto4t5b" path="res://systems/weapon/WeaponSystem.cs" id="1_csqwk"]
|
||||
[ext_resource type="Script" uid="uid://jitubgv6judn" path="res://components/damage/RDamage.cs" id="2_m0v1h"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbe5f0p6lvqtr" path="res://systems/tween_queue/tween_queue_system.tscn" id="2_x1nha"]
|
||||
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="3_5owyf"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://cho5fixitrbds" path="res://assets/swords/resources/sword23.tres" id="3_svc06"]
|
||||
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="4_svc06"]
|
||||
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="5_m0v1h"]
|
||||
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="6_jpdh0"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jpdh0"]
|
||||
script = ExtResource("2_m0v1h")
|
||||
DamageDealt = 2.0
|
||||
metadata/_custom_type_script = "uid://jitubgv6judn"
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_avini"]
|
||||
height = 1.0
|
||||
radius = 0.1
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_svc06"]
|
||||
render_priority = 1
|
||||
transparency = 1
|
||||
no_depth_test = true
|
||||
shading_mode = 0
|
||||
grow_amount = 0.1
|
||||
stencil_mode = 3
|
||||
stencil_flags = 1
|
||||
stencil_compare = 5
|
||||
metadata/_stencil_owned = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m0v1h"]
|
||||
next_pass = SubResource("StandardMaterial3D_svc06")
|
||||
transparency = 1
|
||||
albedo_color = Color(1, 1, 1, 0)
|
||||
z_clip_scale = 0.1
|
||||
stencil_mode = 2
|
||||
stencil_flags = 2
|
||||
stencil_color = Color(1, 1, 1, 1)
|
||||
stencil_outline_thickness = 0.1
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_jpdh0"]
|
||||
material = SubResource("StandardMaterial3D_m0v1h")
|
||||
|
||||
[node name="Weapon" type="RigidBody3D" unique_id=831063023]
|
||||
collision_layer = 65536
|
||||
collision_mask = 304
|
||||
continuous_cd = true
|
||||
contact_monitor = true
|
||||
max_contacts_reported = 1
|
||||
script = ExtResource("1_csqwk")
|
||||
RDamage = SubResource("Resource_jpdh0")
|
||||
|
||||
[node name="TweenQueueSystem" parent="." unique_id=238214283 instance=ExtResource("2_x1nha")]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=884463982]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_avini")
|
||||
|
||||
[node name="Weapon" type="MeshInstance3D" parent="." unique_id=1970473659]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0.8673003)
|
||||
mesh = ExtResource("3_svc06")
|
||||
|
||||
[node name="WeaponLocationIndicator" type="MeshInstance3D" parent="." unique_id=406396593]
|
||||
mesh = SubResource("SphereMesh_jpdh0")
|
||||
|
||||
[node name="StateChart" type="Node" parent="." unique_id=1135887603]
|
||||
script = ExtResource("3_5owyf")
|
||||
metadata/_custom_type_script = "uid://couw105c3bde4"
|
||||
|
||||
[node name="Root" type="Node" parent="StateChart" unique_id=1816439862]
|
||||
script = ExtResource("4_svc06")
|
||||
initial_state = NodePath("InHand")
|
||||
|
||||
[node name="ToPlanted" type="Node" parent="StateChart/Root" unique_id=357013486]
|
||||
script = ExtResource("6_jpdh0")
|
||||
to = NodePath("../Planted")
|
||||
event = &"plant"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="InHand" type="Node" parent="StateChart/Root" unique_id=1828871728]
|
||||
script = ExtResource("5_m0v1h")
|
||||
|
||||
[node name="ToFlying" type="Node" parent="StateChart/Root/InHand" unique_id=1644664016]
|
||||
script = ExtResource("6_jpdh0")
|
||||
to = NodePath("../../Flying")
|
||||
event = &"throw"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Flying" type="Node" parent="StateChart/Root" unique_id=861606667]
|
||||
script = ExtResource("5_m0v1h")
|
||||
|
||||
[node name="ToHand" type="Node" parent="StateChart/Root/Flying" unique_id=1236392249]
|
||||
script = ExtResource("6_jpdh0")
|
||||
to = NodePath("../../InHand")
|
||||
event = &"recover"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Planted" type="Node" parent="StateChart/Root" unique_id=1036062749]
|
||||
script = ExtResource("5_m0v1h")
|
||||
|
||||
[node name="ToFlying" type="Node" parent="StateChart/Root/Planted" unique_id=1472568793]
|
||||
script = ExtResource("6_jpdh0")
|
||||
to = NodePath("../../Flying")
|
||||
event = &"throw"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="ToHand" type="Node" parent="StateChart/Root/Planted" unique_id=627081934]
|
||||
script = ExtResource("6_jpdh0")
|
||||
to = NodePath("../../InHand")
|
||||
event = &"recover"
|
||||
delay_in_seconds = "0.0"
|
||||
@@ -1,11 +0,0 @@
|
||||
[gd_resource type="CylinderMesh" format=3 uid="uid://bhkbwvuft1bpg"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f5qr4"]
|
||||
z_clip_scale = 0.9
|
||||
fov_override = 70.0
|
||||
|
||||
[resource]
|
||||
material = SubResource("StandardMaterial3D_f5qr4")
|
||||
top_radius = 0.0
|
||||
bottom_radius = 0.05
|
||||
height = 1.0
|
||||
Reference in New Issue
Block a user