mtd/Scenes/Weapons/hitscan_weapon.tscn

27 lines
966 B
Plaintext
Raw Normal View History

[gd_scene load_steps=4 format=3 uid="uid://difwo7wlyqr3h"]
[ext_resource type="PackedScene" uid="uid://b7nargdyg28fj" path="res://Scenes/Weapons/weapon.tscn" id="1_s865l"]
[ext_resource type="Script" path="res://Scripts/Weapons/hitscan_weapon.gd" id="2_nyich"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1ucq4"]
transparency = 1
cull_mode = 1
shading_mode = 0
albedo_color = Color(1, 0, 0.415686, 0.223529)
[node name="HitscanWeapon" node_paths=PackedStringArray("raycast", "range_debug_indicator") instance=ExtResource("1_s865l")]
script = ExtResource("2_nyich")
raycast = NodePath("RayCast3D")
range_debug_indicator = NodePath("CSGSphere3D")
[node name="RayCast3D" type="RayCast3D" parent="." index="2"]
target_position = Vector3(0, 0, -1)
collision_mask = 4
[node name="CSGSphere3D" type="CSGSphere3D" parent="." index="3"]
visible = false
radius = 4.104
radial_segments = 16
rings = 16
material = SubResource("StandardMaterial3D_1ucq4")