refactored bullet script, broke shotgun pellets which will need to be fixed

This commit is contained in:
derek
2025-03-25 16:55:22 -05:00
parent 3e3a0d2192
commit 8d0f925be6
24 changed files with 1283 additions and 122 deletions

Binary file not shown.

View File

@@ -0,0 +1,53 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://defxivhf1ui5g"
path="res://.godot/imported/AerialLandscape1.blend-9a74fa80d6522f40d49c9d509ddf7cc4.scn"
[deps]
source_file="res://assets/BlenderDesignFiles/AerialLandscape1.blend"
dest_files=["res://.godot/imported/AerialLandscape1.blend-9a74fa80d6522f40d49c9d509ddf7cc4.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_node_type_suffixes=true
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
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
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/export_geometry_nodes_instances=false
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

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cq3kgfupvt4pa"
path.s3tc="res://.godot/imported/landscape.png-d143f98839a79e559ecc6e73ef498612.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/BlenderDesignFiles/landscape.png"
dest_files=["res://.godot/imported/landscape.png-d143f98839a79e559ecc6e73ef498612.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

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=13 format=4 uid="uid://dqhltdnqyg8ni"]
[ext_resource type="Script" uid="uid://btbe1gyu0llcc" path="res://scripts/bullet.gd" id="1_oj0f5"]
[ext_resource type="Script" uid="uid://ds5mhgyjqkffa" path="res://scripts/projectile.gd" id="1_ev345"]
[ext_resource type="Texture2D" uid="uid://dqytegxsmb5kg" path="res://assets/Models/bullet.transparency.png" id="2_0ks2n"]
[ext_resource type="AudioStream" uid="uid://dqj4cx05f25jj" path="res://assets/Audio/punch-body-hard-SBA-300156881.wav" id="3_6j0l2"]
@@ -82,7 +82,7 @@ margin = 0.001
height = 1.5
radius = 0.055
[node name="Bullet" type="RigidBody3D"]
[node name="Bullet" type="RigidBody3D" node_paths=PackedStringArray("collision_raycast_3d")]
top_level = true
collision_layer = 128
collision_mask = 233
@@ -94,7 +94,8 @@ center_of_mass_mode = 1
continuous_cd = true
contact_monitor = true
max_contacts_reported = 3
script = ExtResource("1_oj0f5")
script = ExtResource("1_ev345")
collision_raycast_3d = NodePath("RayCast3D")
[node name="Cylinder" type="MeshInstance3D" parent="."]
transform = Transform3D(-2, -3.01992e-07, 0, 0, 0, -2, 3.01992e-07, -2, 0, 1.46364e-07, 0, 0.627698)

View File

@@ -35,6 +35,7 @@ ssil_enabled = true
sdfgi_enabled = true
glow_enabled = true
fog_density = 0.0005
volumetric_fog_density = 0.0
[node name="Realtime Day Night Cycle" type="Node3D"]
script = ExtResource("1_idjmm")

View File

@@ -28,9 +28,8 @@ _data = {
}
[node name="ShotgunPellet" type="RigidBody3D" groups=["pellet", "spawned"]]
visible = false
collision_layer = 160
collision_mask = 237
collision_mask = 233
mass = 0.01
physics_material_override = SubResource("PhysicsMaterial_0ewk3")
continuous_cd = true