mtd/Scenes/Weapons/shapecast_weapon.tscn

45 lines
1.7 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://dp4gfr5h0tbcd"]
[ext_resource type="PackedScene" uid="uid://b7nargdyg28fj" path="res://Scenes/Weapons/weapon.tscn" id="1_gfchc"]
[ext_resource type="Script" path="res://Scripts/Weapons/shapecast_weapon.gd" id="2_lg6v5"]
[sub_resource type="BoxShape3D" id="BoxShape3D_uk6ey"]
size = Vector3(2, 2, 3)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vi555"]
vertex_color_use_as_albedo = true
[sub_resource type="BoxMesh" id="BoxMesh_o37rs"]
material = SubResource("StandardMaterial3D_vi555")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sgbeo"]
transparency = 1
cull_mode = 1
shading_mode = 0
albedo_color = Color(1, 0, 0.415686, 0.223529)
[node name="ShapecastWeapon" node_paths=PackedStringArray("shapecast", "range_debug_indicator", "particles") instance=ExtResource("1_gfchc")]
script = ExtResource("2_lg6v5")
shapecast = NodePath("ShapeCast3D")
range_debug_indicator = NodePath("CSGSphere3D")
status_stats = null
particles = NodePath("ShapeCast3D/GPUParticles3D")
[node name="ShapeCast3D" type="ShapeCast3D" parent="." index="2"]
transform = Transform3D(0.984808, 0, 0.173648, 0, 1, 0, -0.173648, 0, 0.984808, 0, 0, 0)
shape = SubResource("BoxShape3D_uk6ey")
target_position = Vector3(0, 0, -1.5)
collision_mask = 4
[node name="GPUParticles3D" type="GPUParticles3D" parent="ShapeCast3D" index="0"]
amount = 36
visibility_aabb = AABB(-1.02851, -1.00566, -3.03983, 2.05703, 2.01132, 6.07966)
draw_pass_1 = SubResource("BoxMesh_o37rs")
[node name="CSGSphere3D" type="CSGSphere3D" parent="." index="3"]
visible = false
radius = 4.104
radial_segments = 16
rings = 16
material = SubResource("StandardMaterial3D_sgbeo")