cirnogodot/Scenes/Weapons/Bullets/Laser_Bullet_3D.tscn

47 lines
1.7 KiB
Text

[gd_scene format=3 uid="uid://bkv1sf54u3agr"]
[ext_resource type="Script" path="res://Scripts/Weapons/LaserBullet3D.cs" id="1_laser_bullet"]
[ext_resource type="Script" uid="uid://5utr3255hbln" path="res://Scripts/Actors/3D/LaserConfig.cs" id="2_l0r7c"]
[ext_resource type="Shader" uid="uid://cd8n7vsgxkfib" path="res://Shaders/minimal_laser.gdshader" id="3_6ff8g"]
[sub_resource type="Resource" id="Resource_awu2v"]
script = ExtResource("2_l0r7c")
MaxLength = 100.0
WarningRadius = 0.025
DamageRadius = 0.05
WarningDuration = 0.5
ExpansionDelay = 0.0
ExpansionDuration = 0.2
ActiveDuration = 1.0
GeometryLayer = 1
Damagelayer = 2
metadata/_custom_type_script = "uid://5utr3255hbln"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fmfkd"]
render_priority = 0
shader = ExtResource("3_6ff8g")
shader_parameter/beam_color = Color(1, 0.2, 0.2, 1)
shader_parameter/glow_radius = 0.2
shader_parameter/noise_speed = 1.0
shader_parameter/flicker_strength = 0.2
[sub_resource type="CylinderMesh" id="CylinderMesh_tqorp"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_tqorp"]
[node name="Laser" type="Area3D"]
script = ExtResource("1_laser_bullet")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(0.06, 0, 0, 0, 1, 0, 0, 0, 0.06, 0, 0, 0)
material_override = SubResource("ShaderMaterial_fmfkd")
mesh = SubResource("CylinderMesh_tqorp")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
shape = SubResource("CapsuleShape3D_tqorp")
[node name="RayCast3D" type="RayCast3D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]