Beeg checkin
This commit is contained in:
51
Player/Sagittarius/Attacks/MegamiBeam.tscn
Normal file
51
Player/Sagittarius/Attacks/MegamiBeam.tscn
Normal file
@@ -0,0 +1,51 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://criqb4bokctlr"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cferkvvp0rjht" path="res://Textures/Projectiles/Projectile_Sagittarius.png" id="1_57flt"]
|
||||
[ext_resource type="Script" path="res://Player/Sagittarius/Attacks/MegamiBeamShot.cs" id="1_a146o"]
|
||||
[ext_resource type="AudioStream" uid="uid://m8mvw8acs5sk" path="res://Audio/SFX/Green Wave.wav" id="2_vvcho"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_7ok4f"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0.008, 1, -10),
|
||||
"tilts": PackedFloat32Array(0, 0)
|
||||
}
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_bnunv"]
|
||||
radius = 0.419241
|
||||
|
||||
[node name="MegamiBeam" type="Node3D" node_paths=PackedStringArray("_pathFollow")]
|
||||
script = ExtResource("1_a146o")
|
||||
_pathFollow = NodePath("Path3D/PathFollow3D")
|
||||
_soundEffect = ExtResource("2_vvcho")
|
||||
Cooldown = 3.0
|
||||
_soundEffect = ExtResource("2_vvcho")
|
||||
_projectileSpeed = 3.0
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
top_level = true
|
||||
curve = SubResource("Curve3D_7ok4f")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
|
||||
transform = Transform3D(-0.999999, 0, 0.000800044, 0, 1, 0, -0.000800044, 0, -0.999999, 0, 1, 0)
|
||||
loop = false
|
||||
tilt_enabled = false
|
||||
|
||||
[node name="Beam" type="RigidBody3D" parent="Path3D/PathFollow3D"]
|
||||
transform = Transform3D(-1, 0, -8.74229e-08, 0, 1, 0, 8.74229e-08, 0, -1, 0, 0, 0)
|
||||
collision_layer = 34
|
||||
collision_mask = 34
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Path3D/PathFollow3D/Beam"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
shape = SubResource("CylinderShape3D_bnunv")
|
||||
|
||||
[node name="Sprite3D2" type="Sprite3D" parent="Path3D/PathFollow3D/Beam"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00355998, 0, 0.140453)
|
||||
axis = 1
|
||||
texture = ExtResource("1_57flt")
|
||||
31
Player/Sagittarius/Attacks/MegamiBeamShot.cs
Normal file
31
Player/Sagittarius/Attacks/MegamiBeamShot.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class MegamiBeamShot : Projectile
|
||||
{
|
||||
[Export]
|
||||
private PathFollow3D _pathFollow;
|
||||
[Export]
|
||||
public new AudioStream _soundEffect;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_pathFollow = GetNode<PathFollow3D>("Path3D/PathFollow3D");
|
||||
_pathFollow.GetParentNode3D().Rotation = ParentCharacter.GetNode<Node3D>("Pivot").Rotation;
|
||||
var sfxPlayer = GetTree().Root.GetNode<AudioStreamPlayer>("Main/SFXPlayer");
|
||||
sfxPlayer.Stream = _soundEffect;
|
||||
sfxPlayer.Play();
|
||||
}
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
_pathFollow.Progress += 10f * (float)delta;
|
||||
if (Mathf.IsEqualApprox(_pathFollow.ProgressRatio, 1.0f))
|
||||
QueueFree();
|
||||
}
|
||||
|
||||
private void OnBulletHitObject(Node node)
|
||||
{
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
1682
Player/Sagittarius/Models/megami.gltf
Normal file
1682
Player/Sagittarius/Models/megami.gltf
Normal file
File diff suppressed because one or more lines are too long
32
Player/Sagittarius/Models/megami.gltf.import
Normal file
32
Player/Sagittarius/Models/megami.gltf.import
Normal file
@@ -0,0 +1,32 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://dbggqsb82lg4l"
|
||||
path="res://.godot/imported/megami.gltf-de2fb44b8131c5dced844b9c5dc0e6fe.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Player/Sagittarius/Models/megami.gltf"
|
||||
dest_files=["res://.godot/imported/megami.gltf-de2fb44b8131c5dced844b9c5dc0e6fe.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="CharacterBody3D"
|
||||
nodes/root_name="Scene Root"
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/embedded_image_handling=1
|
||||
633
Player/Sagittarius/P1Megami.tscn
Normal file
633
Player/Sagittarius/P1Megami.tscn
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user