added breakable objects
This commit is contained in:
BIN
assets/Audio/electric-chair-2-SBA-300021018.wav
Normal file
BIN
assets/Audio/electric-chair-2-SBA-300021018.wav
Normal file
Binary file not shown.
24
assets/Audio/electric-chair-2-SBA-300021018.wav.import
Normal file
24
assets/Audio/electric-chair-2-SBA-300021018.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cpno72fej708i"
|
||||
path="res://.godot/imported/electric-chair-2-SBA-300021018.wav-1eb6dceb6417793ceb81ea9b7676b512.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Audio/electric-chair-2-SBA-300021018.wav"
|
||||
dest_files=["res://.godot/imported/electric-chair-2-SBA-300021018.wav-1eb6dceb6417793ceb81ea9b7676b512.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
BIN
assets/Audio/glass-break-two-thick-glasses-SBA-300121605.wav
Normal file
BIN
assets/Audio/glass-break-two-thick-glasses-SBA-300121605.wav
Normal file
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://bn4y63ws8jscs"
|
||||
path="res://.godot/imported/glass-break-two-thick-glasses-SBA-300121605.wav-d20024f925b04fce74d522560050188e.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Audio/glass-break-two-thick-glasses-SBA-300121605.wav"
|
||||
dest_files=["res://.godot/imported/glass-break-two-thick-glasses-SBA-300121605.wav-d20024f925b04fce74d522560050188e.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
||||
Binary file not shown.
BIN
assets/Models/bottle1.blend
Normal file
BIN
assets/Models/bottle1.blend
Normal file
Binary file not shown.
50
assets/Models/bottle1.blend.import
Normal file
50
assets/Models/bottle1.blend.import
Normal file
@@ -0,0 +1,50 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cklopajsap1s8"
|
||||
path="res://.godot/imported/bottle1.blend-92d087c5b3d44431c89ae3e329fe4160.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Models/bottle1.blend"
|
||||
dest_files=["res://.godot/imported/bottle1.blend-92d087c5b3d44431c89ae3e329fe4160.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
blender/nodes/visible=0
|
||||
blender/nodes/punctual_lights=true
|
||||
blender/nodes/cameras=true
|
||||
blender/nodes/custom_properties=true
|
||||
blender/nodes/modifiers=1
|
||||
blender/meshes/colors=false
|
||||
blender/meshes/uvs=true
|
||||
blender/meshes/normals=true
|
||||
blender/meshes/tangents=true
|
||||
blender/meshes/skins=2
|
||||
blender/meshes/export_bones_deforming_mesh_only=false
|
||||
blender/materials/unpack_enabled=true
|
||||
blender/materials/export_materials=1
|
||||
blender/animation/limit_playback=true
|
||||
blender/animation/always_sample=true
|
||||
blender/animation/group_tracks=true
|
||||
BIN
assets/Models/bottle1.blend1
Normal file
BIN
assets/Models/bottle1.blend1
Normal file
Binary file not shown.
@@ -59,6 +59,8 @@ collision_layer = 4
|
||||
collision_mask = 6
|
||||
script = ExtResource("1_sni3c")
|
||||
collision_shape = NodePath("CollisionShape3D2")
|
||||
despawning = true
|
||||
despawn_time_s = 20
|
||||
pickupType = "ammo"
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bpkmyd3wvqi5p"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bpkmyd3wvqi5p"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://diwsk0cw41ep1" path="res://assets/Audio/Music/Test Songs/easy-walk-SBA-347061820.wav" id="1_0tv5a"]
|
||||
[ext_resource type="Script" path="res://scripts/breakable.gd" id="1_dm2iv"]
|
||||
[ext_resource type="PackedScene" uid="uid://ccnnxudjaptb4" path="res://assets/boombox_broken.tscn" id="2_26e0l"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_1swe3"]
|
||||
size = Vector3(2.04077, 0.734375, 0.581665)
|
||||
@@ -76,10 +78,12 @@ _surfaces = [{
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_nxwjy")
|
||||
|
||||
[node name="Boombox" type="RigidBody3D" groups=["scene_rigidbody"]]
|
||||
[node name="Boombox" type="RigidBody3D" groups=["breakable", "scene_rigidbody"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 7
|
||||
continuous_cd = true
|
||||
script = ExtResource("1_dm2iv")
|
||||
broken_object = ExtResource("2_26e0l")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.433783, 0.16095)
|
||||
|
||||
744
assets/boombox_broken.tscn
Normal file
744
assets/boombox_broken.tscn
Normal file
File diff suppressed because one or more lines are too long
60
assets/bottle_1.tscn
Normal file
60
assets/bottle_1.tscn
Normal file
File diff suppressed because one or more lines are too long
267
assets/bottle_1_pieces.tscn
Normal file
267
assets/bottle_1_pieces.tscn
Normal file
File diff suppressed because one or more lines are too long
@@ -396,7 +396,7 @@ script = ExtResource("2_6i1l4")
|
||||
gun_name = "Mac 10"
|
||||
max_ammo = 30
|
||||
bullet_drop = 0.05
|
||||
random_spread_amt = 1.5
|
||||
random_spread_amt = 0.3
|
||||
fire_pitch_scale_amt = 0.1
|
||||
flare_light = NodePath("mac10/SpotLight3D")
|
||||
bullet = ExtResource("3_pyl20")
|
||||
@@ -462,16 +462,17 @@ libraries = {
|
||||
|
||||
[node name="Fire" type="AudioStreamPlayer3D" parent="Audio" index="0"]
|
||||
stream = ExtResource("4_qynbq")
|
||||
volume_db = 5.0
|
||||
volume_db = 7.0
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="Empty" type="AudioStreamPlayer3D" parent="Audio" index="1"]
|
||||
stream = ExtResource("5_rn7j1")
|
||||
volume_db = 4.0
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="Reload" type="AudioStreamPlayer3D" parent="Audio" index="2"]
|
||||
stream = ExtResource("6_3atx1")
|
||||
volume_db = 3.0
|
||||
volume_db = 4.0
|
||||
bus = &"SFX"
|
||||
|
||||
[connection signal="animation_finished" from="GunAnims" to="." method="_on_gun_anims_animation_finished"]
|
||||
|
||||
@@ -278,7 +278,7 @@ _data = {
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0145504, -0.0460228)
|
||||
script = ExtResource("2_63tea")
|
||||
gun_name = "Dumb Pistol"
|
||||
fire_mode = 1
|
||||
fire_mode = 2
|
||||
flare_light = NodePath("SpotLight3D")
|
||||
bullet = ExtResource("3_4pvsf")
|
||||
bullethole = ExtResource("4_bu1g0")
|
||||
|
||||
@@ -57,7 +57,7 @@ current = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0341401, -0.111267)
|
||||
|
||||
[node name="WeaponSpawner" type="Node3D" parent="Head/Camera3D/WeaponHolder"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.44954, -0.202025, -1.03649)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.45, -0.202, -0.951)
|
||||
|
||||
[node name="AmmoCounter" type="Label" parent="Head/Camera3D"]
|
||||
offset_right = 3840.0
|
||||
|
||||
886
assets/revolver1_pickup.tscn
Normal file
886
assets/revolver1_pickup.tscn
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -55,6 +55,8 @@ collision_layer = 4
|
||||
collision_mask = 6
|
||||
script = ExtResource("1_1udac")
|
||||
collision_shape = NodePath("CollisionShape3D2")
|
||||
despawning = true
|
||||
despawn_time_s = 20
|
||||
pickupType = "stamina"
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
|
||||
Reference in New Issue
Block a user