78 lines
3.4 KiB
Plaintext
78 lines
3.4 KiB
Plaintext
[gd_scene load_steps=16 format=3 uid="uid://cejn8wfgw14xs"]
|
|
|
|
[ext_resource type="Script" uid="uid://bbd22tc1scoom" path="res://scripts/projectiles/projectile.gd" id="1_kv6x5"]
|
|
[ext_resource type="Material" uid="uid://cux40v5s5sok3" path="res://resources/materials/debug/debug_projectile.tres" id="2_b024o"]
|
|
[ext_resource type="PackedScene" uid="uid://c8gqrealje3o" path="res://scenes/effects/shadow_decal.tscn" id="3_2dqcj"]
|
|
[ext_resource type="PackedScene" uid="uid://jmtp1qxxnyr2" path="res://scenes/projectiles/projectile_hit_particles.tscn" id="3_a8d2p"]
|
|
[ext_resource type="PackedScene" uid="uid://bl3flu6un3op1" path="res://assets/models/projectiles/projectile.glb" id="3_oc4rm"]
|
|
[ext_resource type="Material" uid="uid://dnyl326cg2rvh" path="res://resources/materials/projectiles/projectile_mat.tres" id="4_u2n0m"]
|
|
[ext_resource type="PackedScene" uid="uid://biq8bu0rbjfgd" path="res://scenes/projectiles/projectile_destroy_particles.tscn" id="4_wq63x"]
|
|
[ext_resource type="Material" uid="uid://d3f5sarakjtlg" path="res://resources/materials/projectiles/projectile_glow_mat.tres" id="5_fdcqu"]
|
|
[ext_resource type="Material" uid="uid://btoktsgqj62ei" path="res://resources/materials/projectiles/projectile_trail_mat.tres" id="7_j3t3l"]
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_u2n0m"]
|
|
size = Vector2(2.5, 2.5)
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_vc8th"]
|
|
radius = 0.28
|
|
|
|
[sub_resource type="Curve" id="Curve_j3t3l"]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.15, 1), 0.0, 0.0, 0, 0, Vector2(0.75, 1), 0.0, 0.0, 0, 0, Vector2(0.99999, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 4
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_a8d2p"]
|
|
curve = SubResource("Curve_j3t3l")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fdcqu"]
|
|
gravity = Vector3(0, 0, 0)
|
|
scale_curve = SubResource("CurveTexture_a8d2p")
|
|
color = Color(0.964706, 0.788235, 0.215686, 0.109804)
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_fdcqu"]
|
|
material = ExtResource("7_j3t3l")
|
|
size = Vector2(0.4, 0.4)
|
|
orientation = 1
|
|
|
|
[node name="Projectile" type="Area3D" node_paths=PackedStringArray("_model_base", "_model_mesh")]
|
|
collision_layer = 32
|
|
collision_mask = 49
|
|
script = ExtResource("1_kv6x5")
|
|
_collision_debug_material = ExtResource("2_b024o")
|
|
_hit_particles_scene = ExtResource("3_a8d2p")
|
|
_destroy_particles_scene = ExtResource("4_wq63x")
|
|
_model_base = NodePath("Model")
|
|
_model_mesh = NodePath("Model/ProjectileMesh")
|
|
|
|
[node name="Model" parent="." instance=ExtResource("3_oc4rm")]
|
|
|
|
[node name="ProjectileMesh" parent="Model" index="0"]
|
|
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
|
layers = 64
|
|
cast_shadow = 0
|
|
surface_material_override/0 = ExtResource("4_u2n0m")
|
|
|
|
[node name="ProjectileGlow" type="MeshInstance3D" parent="Model/ProjectileMesh" index="0"]
|
|
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0)
|
|
material_override = ExtResource("5_fdcqu")
|
|
mesh = SubResource("QuadMesh_u2n0m")
|
|
skeleton = NodePath("../..")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("SphereShape3D_vc8th")
|
|
debug_color = Color(0, 0.6, 0.7, 0.42)
|
|
|
|
[node name="ShadowDecal" parent="." instance=ExtResource("3_2dqcj")]
|
|
|
|
[node name="TrailParticles" type="GPUParticles3D" parent="."]
|
|
layers = 64
|
|
extra_cull_margin = 100.0
|
|
amount = 5
|
|
lifetime = 0.4
|
|
fixed_fps = 60
|
|
interpolate = false
|
|
visibility_aabb = AABB(-0.4, -0.4, -0.4, 0.8, 0.8, 0.8)
|
|
process_material = SubResource("ParticleProcessMaterial_fdcqu")
|
|
draw_pass_1 = SubResource("QuadMesh_fdcqu")
|
|
|
|
[editable path="Model"]
|