enemy tweaks

This commit is contained in:
derek
2024-07-18 16:59:14 -05:00
parent acdfae4777
commit 0676e28e89
43 changed files with 1208 additions and 56 deletions

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://0n251thxlnnp"
path="res://.godot/imported/cannon-fire-single-shot-blast-explosion-SBA-300098885.wav-786efd9e79c431cccac5d7ea5111b65e.sample"
[deps]
source_file="res://assets/Audio/cannon-fire-single-shot-blast-explosion-SBA-300098885.wav"
dest_files=["res://.godot/imported/cannon-fire-single-shot-blast-explosion-SBA-300098885.wav-786efd9e79c431cccac5d7ea5111b65e.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

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://bn1w77gvx07ph"
path="res://.godot/imported/cartoon-voice-male-yeouch-ouch-SBA-300115097.wav-be8a7d20de3f90eff8b261870603054a.sample"
[deps]
source_file="res://assets/Audio/cartoon-voice-male-yeouch-ouch-SBA-300115097.wav"
dest_files=["res://.godot/imported/cartoon-voice-male-yeouch-ouch-SBA-300115097.wav-be8a7d20de3f90eff8b261870603054a.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

View File

@@ -18,7 +18,7 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

Binary file not shown.

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://cy150nsjqp7lt"
path="res://.godot/imported/grunt-male-SBA-300282985.wav-987e3357bf2afe268f3cb8cfbe71fad2.sample"
[deps]
source_file="res://assets/Audio/grunt-male-SBA-300282985.wav"
dest_files=["res://.godot/imported/grunt-male-SBA-300282985.wav-987e3357bf2afe268f3cb8cfbe71fad2.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/Models/Lamp.blend Normal file

Binary file not shown.

View File

@@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://caeci2trufwxg"
path="res://.godot/imported/Lamp.blend-75cba093a551ce37d4fa7e8c6ab73b20.scn"
[deps]
source_file="res://assets/Models/Lamp.blend"
dest_files=["res://.godot/imported/Lamp.blend-75cba093a551ce37d4fa7e8c6ab73b20.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/Lamp.blend1 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -43,7 +43,7 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_31808")
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_m626c"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_cymse"]
points = PackedVector3Array(0.202827, -0.297797, 0.00403334, -0.192761, -0.358884, -0.0287528, -0.173827, 0.327577, -0.0768052, -0.0122833, 0.378837, 0.200603, 0.138545, 0.401308, -0.147351, 0.0402858, -0.414367, -0.213567, 0.149043, -0.414367, 0.167233, 0.0765383, 0.746167, 0.0402858, -0.147295, -0.372155, 0.138494, -0.147351, 0.401308, 0.138544, -0.144509, 0.396888, -0.144509, 0.150261, 0.393288, 0.133962, -0.0684716, 0.746167, -0.0684716, -0.213567, -0.414367, 0.0402858, 0.200602, 0.378837, -0.0122833, -0.0289072, 0.396497, -0.193687, -0.143839, -0.359867, -0.143839, -0.0503667, 0.746167, 0.0765383, -0.193691, 0.396501, -0.0289078, 0.138495, -0.372156, -0.147295, 0.00403334, -0.297797, 0.202827, 0.0584333, 0.746167, -0.0684716, 0.167233, -0.414367, 0.149043, -0.190615, 0.392913, 0.036462, 0.036462, 0.392913, -0.190615, -0.0866191, 0.746167, 0.0220957, 0.0402858, 0.746167, 0.0765383, 0.0200816, 0.375335, 0.197369, 0.19737, 0.375336, 0.0200817, 0.133962, 0.393288, 0.15026, 0.0220957, 0.746167, -0.0866191, -0.0455433, -0.362918, 0.185802)
[node name="bottle1" type="RigidBody3D" groups=["breakable", "scene_rigidbody"]]
@@ -57,4 +57,4 @@ mesh = SubResource("ArrayMesh_jc7cp")
skeleton = NodePath("")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("ConvexPolygonShape3D_m626c")
shape = SubResource("ConvexPolygonShape3D_cymse")

View File

@@ -1,9 +1,10 @@
[gd_scene load_steps=12 format=3 uid="uid://h5ojldugfyyu"]
[gd_scene load_steps=13 format=3 uid="uid://h5ojldugfyyu"]
[ext_resource type="Script" path="res://scripts/bullet_enemy.gd" id="1_so2e8"]
[ext_resource type="PackedScene" uid="uid://crvohhc6kgshn" path="res://assets/bullet_hole.tscn" id="2_8iodt"]
[ext_resource type="Texture2D" uid="uid://dqytegxsmb5kg" path="res://assets/Models/bullet.transparency.png" id="2_gihte"]
[ext_resource type="AudioStream" uid="uid://dqj4cx05f25jj" path="res://assets/Audio/punch-body-hard-SBA-300156881.wav" id="3_1ujcu"]
[ext_resource type="AudioStream" uid="uid://bl8yg1d3bsxs3" path="res://assets/Audio/constant-natural-strong-wind-looping-SBA-300062687.wav" id="5_gxgsq"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mfpbf"]
resource_name = "bullet"
@@ -123,4 +124,9 @@ autostart = true
[node name="HitIndicator" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("3_1ujcu")
[node name="movingsound" type="AudioStreamPlayer3D" parent="Audio"]
stream = ExtResource("5_gxgsq")
unit_size = 3.0
doppler_tracking = 2
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]

28
assets/dead_announce.tscn Normal file
View File

@@ -0,0 +1,28 @@
[gd_scene load_steps=4 format=3 uid="uid://dl1r5co5je5hp"]
[ext_resource type="FontFile" uid="uid://d2h2tjhxiv5wo" path="res://assets/fonts/White On Black.ttf" id="1_7a4sr"]
[ext_resource type="Script" path="res://scripts/dead_announce.gd" id="2_d54cv"]
[sub_resource type="LabelSettings" id="LabelSettings_ic2ps"]
font = ExtResource("1_7a4sr")
font_size = 500
[node name="PickupAnnounce" type="Label"]
offset_right = 3440.0
offset_bottom = 1440.0
size_flags_horizontal = 3
size_flags_vertical = 6
text = "DEAD"
label_settings = SubResource("LabelSettings_ic2ps")
horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("2_d54cv")
[node name="ColorRect" type="ColorRect" parent="."]
visible = false
y_sort_enabled = true
layout_mode = 0
offset_top = 1.0
offset_right = 3840.0
offset_bottom = 2161.0
color = Color(0.615686, 0, 0.0980392, 0.356863)

File diff suppressed because one or more lines are too long

10
assets/lamp.tscn Normal file
View File

@@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://d2nm4gad1nupw"]
[ext_resource type="PackedScene" uid="uid://caeci2trufwxg" path="res://assets/Models/Lamp.blend" id="1_4gd4b"]
[node name="Lamp" instance=ExtResource("1_4gd4b")]
[node name="SpotLight3D" type="SpotLight3D" parent="." index="1"]
transform = Transform3D(1, 0, 0, 0, -0.005201, 0.999986, 0, -0.999986, -0.005201, 0, 5.73871, 0.856955)
light_energy = 5.0
spot_range = 8.96177

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://drwae3loscbw7"]
[gd_scene load_steps=18 format=3 uid="uid://drwae3loscbw7"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_x7wms"]
[ext_resource type="PackedScene" uid="uid://dcmno6wafk5hg" path="res://assets/dead_player.tscn" id="2_4hoys"]
@@ -11,6 +11,7 @@
[ext_resource type="Texture2D" uid="uid://dhgyj08g1ge2o" path="res://assets/UI/SVG/hitmarkersvg.svg" id="8_kupqh"]
[ext_resource type="AudioStream" uid="uid://dyd272r7n2ecd" path="res://assets/Audio/footsteps-shoes-jump-land-beach-sand-SBA-300118001.wav" id="10_tn0pn"]
[ext_resource type="AudioStream" uid="uid://bl8yg1d3bsxs3" path="res://assets/Audio/constant-natural-strong-wind-looping-SBA-300062687.wav" id="11_he7p5"]
[ext_resource type="AudioStream" uid="uid://cy150nsjqp7lt" path="res://assets/Audio/grunt-male-SBA-300282985.wav" id="12_f51u4"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_n7uf3"]
@@ -33,7 +34,7 @@ radius = 6.0
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder") groups=["player"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0)
collision_layer = 3
safe_margin = 0.2
safe_margin = 0.5
script = ExtResource("1_x7wms")
dead_player = ExtResource("2_4hoys")
SENSITIVITY = 0.008
@@ -143,6 +144,9 @@ stream = ExtResource("10_tn0pn")
[node name="EarWind" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("11_he7p5")
[node name="Hurt" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("12_f51u4")
[connection signal="tree_entered" from="." to="." method="_on_tree_entered"]
[connection signal="body_entered" from="pick_up_detection" to="." method="_on_pick_up_detection_body_entered"]
[connection signal="body_entered" from="pick_up_magnet" to="." method="_on_pick_up_magnet_body_entered"]

View File

@@ -429,7 +429,7 @@ recoil_amount = 2.0
max_ammo = 6
bullet_damage = 5
bullet_force_mod = 100
bullet_speed = 300
bullet_speed = 200
bullet_drop = 0.0
random_spread_amt = 0.1
chamber = NodePath("revolver1/Chamber")

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1exrcca207of"
path="res://.godot/imported/39_black brick wall DEMO.jpg-bd85294c4e8e5cddaec2e32e7f4c726f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall DEMO.jpg"
dest_files=["res://.godot/imported/39_black brick wall DEMO.jpg-bd85294c4e8e5cddaec2e32e7f4c726f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bph61os78ao4t"
path="res://.godot/imported/39_black brick wall-AO.jpg-c8e3e37e832d9798513c7f1331806b5e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall-AO.jpg"
dest_files=["res://.godot/imported/39_black brick wall-AO.jpg-c8e3e37e832d9798513c7f1331806b5e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cja0x0gof7rga"
path.s3tc="res://.godot/imported/39_black brick wall_DIFF.jpg-edb86a587b74d5730d808cb7750218e5.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall_DIFF.jpg"
dest_files=["res://.godot/imported/39_black brick wall_DIFF.jpg-edb86a587b74d5730d808cb7750218e5.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://tub6f7ji1ula"
path="res://.godot/imported/39_black brick wall_DISPL.jpg-f448bc570dd3ea932446e34f7d009142.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall_DISPL.jpg"
dest_files=["res://.godot/imported/39_black brick wall_DISPL.jpg-f448bc570dd3ea932446e34f7d009142.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://crydypl8x7b1"
path="res://.godot/imported/39_black brick wall_NORM.jpg-ce43de00d53c429d32673ed624e3e4d4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall_NORM.jpg"
dest_files=["res://.godot/imported/39_black brick wall_NORM.jpg-ce43de00d53c429d32673ed624e3e4d4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cqqm1k7qu7cwu"
path="res://.godot/imported/39_black brick wall_SPEC.jpg-676e83fbedc715421ca9362368ff480a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/39_black brick wall PBR texture-seamless_hr/39_black brick wall_SPEC.jpg"
dest_files=["res://.godot/imported/39_black brick wall_SPEC.jpg-676e83fbedc715421ca9362368ff480a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1