tweaked item holder and added crouch

This commit is contained in:
derek
2024-12-05 16:55:29 -06:00
parent f6812b167f
commit 5d9bac5292
17 changed files with 133 additions and 89 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=19 format=4 uid="uid://bdy5isxqwbjq8"]
[gd_scene load_steps=20 format=4 uid="uid://bdy5isxqwbjq8"]
[ext_resource type="Script" path="res://scripts/broken_object_spawn.gd" id="1_3nyc3"]
[ext_resource type="AudioStream" uid="uid://bn4y63ws8jscs" path="res://assets/Audio/glass-break-two-thick-glasses-SBA-300121605.wav" id="1_vmlqu"]
@@ -46,6 +46,11 @@ shadow_mesh = SubResource("ArrayMesh_tfdks")
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_0sbf2"]
points = PackedVector3Array(0.0974093, 0.152932, -0.0713481, -0.132998, -0.283936, 0.0526213, -0.102607, -0.282655, -0.0206982, 0.259721, -0.217894, 0.0291036, -0.0957838, 0.0756587, 0.191345, 0.0433577, -0.248832, 0.260882, 0.073675, -0.263854, -0.133599, -0.0807777, 0.0768671, -0.0722225, 0.221051, -0.00931318, -0.0636392, 0.0808388, 0.0771109, -0.131298, -0.0416929, 0.176124, 0.0831446, -0.0803236, -0.279771, 0.191345, -0.132561, 0.0770819, 0.0526381, -0.057153, -0.295216, -0.0713875, 0.206117, -0.22472, -0.0799446, 0.035608, -0.210244, 0.260882, 0.0124374, 0.199316, -0.0095589, 0.16696, 0.0834055, -0.102262, -0.0737514, -0.283533, -0.0798702, 0.0514377, 0.0771098, -0.131296, 0.251972, -0.187004, 0.0291036, -0.0811622, -0.261582, 0.207278, -0.133033, -0.28398, 0.0820919, 0.205591, -0.241134, -0.0636392, -0.0648634, -0.00166329, 0.22222, -0.0882645, 0.14316, 0.0599786, -0.132638, 0.0771321, 0.0820464, -0.0441972, 0.143265, -0.042977, 0.00472699, 0.199316, 0.0136465, 0.0124374, -0.19475, 0.260882, 0.0514207, -0.26178, -0.13174, 0.0587786, 0.143141, -0.0870212)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_f7avk"]
random_pitch = 2.0
streams_count = 1
stream_0/stream = ExtResource("1_vmlqu")
[sub_resource type="ArrayMesh" id="ArrayMesh_g1uxi"]
_surfaces = [{
"aabb": AABB(-0.184698, -0.0943551, -0.0695819, 0.376365, 0.480613, 0.166746),
@@ -213,7 +218,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.066139, 0.324223, -0.06741
shape = SubResource("ConvexPolygonShape3D_0sbf2")
[node name="BrokenSound" type="AudioStreamPlayer3D" parent="Piece 1"]
stream = ExtResource("1_vmlqu")
stream = SubResource("AudioStreamRandomizer_f7avk")
[node name="Piece 2" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
collision_layer = 32