fixed revolver setup so that it only populates owned casings

This commit is contained in:
Derek
2025-03-27 08:33:20 -05:00
parent 5eec7838d8
commit 909f84e6dd
5 changed files with 383 additions and 326 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=3 uid="uid://otkecr0hcyon"]
[gd_scene load_steps=17 format=3 uid="uid://otkecr0hcyon"]
[ext_resource type="PackedScene" uid="uid://bj1y0fbjtul4a" path="res://post_processing.tscn" id="1_48lr2"]
[ext_resource type="PackedScene" uid="uid://drwae3loscbw7" path="res://assets/player.tscn" id="1_ibypk"]
@@ -8,6 +8,8 @@
[ext_resource type="PackedScene" uid="uid://c1xw80jkg3reb" path="res://assets/target_1.tscn" id="6_sibpp"]
[ext_resource type="PackedScene" uid="uid://b0y5rqfeh1hb1" path="res://assets/chair_1.tscn" id="7_rgl24"]
[ext_resource type="PackedScene" uid="uid://c0uv33kbndbvy" path="res://assets/trashcan.tscn" id="8_7e18o"]
[ext_resource type="PackedScene" uid="uid://dyu46bns8mesv" path="res://assets/mac10_pickup.tscn" id="9_7e18o"]
[ext_resource type="PackedScene" uid="uid://dugcxo2665me0" path="res://assets/revolver1_pickup.tscn" id="10_20m5p"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_48lr2"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
@@ -26,6 +28,37 @@ sdfgi_enabled = true
sdfgi_use_occlusion = true
glow_enabled = true
[sub_resource type="Animation" id="Animation_v0ka4"]
length = 0.001
tracks/0/type = "position_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Targets/TARGET 1")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, -43.6355, 2.1683, -6.96668)
tracks/1/type = "position_3d"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Targets/TARGET 2")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = PackedFloat32Array(0, 1, -46.0255, 2.1683, -10.0773)
tracks/2/type = "position_3d"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Targets/TARGET 3")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = PackedFloat32Array(0, 1, -48.1931, 4.94289, -5.84218)
tracks/3/type = "position_3d"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Targets/TARGET 4")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = PackedFloat32Array(0, 1, -38.3167, 9.50645, -3.49113)
[sub_resource type="Animation" id="Animation_sibpp"]
resource_name = "movetargets"
length = 2.0
@@ -44,23 +77,20 @@ tracks/1/path = NodePath("Targets/TARGET 2")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = PackedFloat32Array(0, 1, -46.0255, 2.1683, -10.0773, 1, 1, -46.0255, 2.1683, -4.1148, 2, 1, -46.0255, 2.1683, -10.0773)
[sub_resource type="Animation" id="Animation_v0ka4"]
length = 0.001
tracks/0/type = "position_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Targets/TARGET 1")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, -43.6355, 2.1683, -6.96668)
tracks/1/type = "position_3d"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Targets/TARGET 2")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = PackedFloat32Array(0, 1, -46.0255, 2.1683, -10.0773)
tracks/2/type = "position_3d"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Targets/TARGET 3")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = PackedFloat32Array(0, 1, -48.1931, 4.94289, -5.84218, 1, 1, -48.1931, 4.94289, -25.9636)
tracks/3/type = "position_3d"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Targets/TARGET 4")
tracks/3/interp = 2
tracks/3/loop_wrap = true
tracks/3/keys = PackedFloat32Array(0, 1, -38.3167, 9.50645, -3.49113, 0.5, 1, -38.3167, 0.75276, -3.49113, 1.00047, 1, -38.3167, 9.50645, -3.49113, 1.50376, 1, -38.3167, 0.75276, -3.49113)
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rgl24"]
_data = {
@@ -157,7 +187,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -46.0255, 2.1683, -10.0773)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -48.1931, 4.94289, -5.84218)
[node name="TARGET 4" parent="Targets" instance=ExtResource("6_sibpp")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -48.1931, 2.80981, -21.6811)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.3167, 9.50645, -3.49113)
[node name="AnimationPlayer" type="AnimationPlayer" parent="Targets"]
root_node = NodePath("../..")
@@ -186,3 +216,21 @@ transform = Transform3D(-0.155193, 0, -0.987884, 0, 1, 0, 0.987884, 0, -0.155193
[node name="Trashcan" parent="." instance=ExtResource("8_7e18o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.3204, 4.76837e-07, -9.563)
[node name="mac10_pickup" parent="." instance=ExtResource("9_7e18o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -18.5337, 1.63077, -8.33873)
[node name="mac10_pickup2" parent="." instance=ExtResource("9_7e18o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17.9671, 1.63077, -10.3711)
[node name="mac10_pickup3" parent="." instance=ExtResource("9_7e18o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17.703, 1.63077, -11.9555)
[node name="mac10_pickup4" parent="." instance=ExtResource("9_7e18o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17.9727, 1.63077, -13.8135)
[node name="pistol1_pickup" parent="." instance=ExtResource("10_20m5p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.1056, 3.01416, -13.8355)
[node name="pistol1_pickup2" parent="." instance=ExtResource("10_20m5p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.6736, 6.57787, -17.6494)