27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
[gd_scene 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" uid="uid://bp3o5klntwmhd" 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" unique_id=373618795 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" unique_id=1750005362]
|
|
target_position = Vector3(0, 0, -1)
|
|
collision_mask = 4
|
|
|
|
[node name="CSGSphere3D" type="CSGSphere3D" parent="." index="3" unique_id=2125239824]
|
|
visible = false
|
|
radius = 4.104
|
|
radial_segments = 16
|
|
rings = 16
|
|
material = SubResource("StandardMaterial3D_1ucq4")
|