rocket launcher shoots and explodes

This commit is contained in:
Derek
2024-07-31 23:27:22 -05:00
parent 30f8c138db
commit 6354dc2774
23 changed files with 2456 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View File

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

BIN
assets/Models/rocket1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

View File

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

View File

@@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://d3dmtkan3612"
path="res://.godot/imported/rocketlauncher.blend-ed28fdfc65f06d3dfc52ef5bd8c9fe98.scn"
[deps]
source_file="res://assets/Models/rocketlauncher.blend"
dest_files=["res://.godot/imported/rocketlauncher.blend-ed28fdfc65f06d3dfc52ef5bd8c9fe98.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

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2hi7c5hl2yk2"
path.s3tc="res://.godot/imported/rocketlauncher1.normal.png-368dfa5a4eb879dd27fe865ae018e8f1.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/Models/rocketlauncher1.normal.png"
dest_files=["res://.godot/imported/rocketlauncher1.normal.png-368dfa5a4eb879dd27fe865ae018e8f1.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/Models/rocketlauncher1.normal.png"
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

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

View File

@@ -232,7 +232,7 @@ tracks/7/keys = {
[sub_resource type="Animation" id="Animation_bsc1a"]
resource_name = "shoot"
length = 0.1
length = 0.08
step = 0.01
tracks/0/type = "value"
tracks/0/imported = false
@@ -241,7 +241,7 @@ tracks/0/path = NodePath("mac10:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.03, 0.1),
"times": PackedFloat32Array(0, 0.03, 0.08),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0, 0.187845, 0.217808), Vector3(0, 0, 0)]
@@ -253,7 +253,7 @@ tracks/1/path = NodePath("mac10:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.03, 0.1),
"times": PackedFloat32Array(0, 0.03, 0.08),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, -1.5708, 0), Vector3(-1.15092e-08, -1.5708, -0.266442), Vector3(0, -1.5708, 0)]
@@ -265,7 +265,7 @@ tracks/2/path = NodePath("mac10/chargerpull:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.04, 0.1),
"times": PackedFloat32Array(0, 0.04, 0.08),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(1, 0, 0), Vector3(0, 0, 0)]
@@ -277,7 +277,7 @@ tracks/3/path = NodePath("mac10/Trigger:rotation")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 0.01, 0.1),
"times": PackedFloat32Array(0, 0.01, 0.08),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0, -0.209061), Vector3(1.82515e-06, 6.88119e-07, 0.336512), Vector3(0, 0, -0.209061)]
@@ -289,7 +289,7 @@ tracks/4/path = NodePath("mac10/SpotLight3D:light_energy")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.03, 0.1),
"times": PackedFloat32Array(0, 0.03, 0.08),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, 10.0, 0.0]
@@ -394,7 +394,7 @@ _data = {
[node name="mac10" node_paths=PackedStringArray("flare_light", "anim_player", "barrel_raycast", "casing_ejector", "mag_ejector", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_nb4p5")]
script = ExtResource("2_6i1l4")
gun_name = "Mac 10"
recoil_amount = 0.7
recoil_amount = 1.5
max_ammo = 30
bullet_damage = 2
bullet_drop = 0.01

75
assets/rocket.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,54 @@
[gd_scene load_steps=8 format=3 uid="uid://6p7d7txcox7i"]
[ext_resource type="Script" path="res://scripts/die_particles.gd" id="1_ssw3i"]
[ext_resource type="AudioStream" uid="uid://wd061pl0d7rl" path="res://assets/Audio/deep-low-explosion-SBA-300054677.wav" id="5_awm3r"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_e1gej"]
albedo_color = Color(0.586219, 0.0370184, 0.140967, 1)
emission_enabled = true
emission = Color(0.941176, 0, 0, 1)
emission_energy_multiplier = 8.0
[sub_resource type="Curve" id="Curve_741s1"]
min_value = -1.0
_data = [Vector2(0, -1), 0.0, 0.0, 0, 0, Vector2(1, 1), 2.8, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_7652j"]
curve = SubResource("Curve_741s1")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_evi0f"]
inherit_velocity_ratio = 1.0
direction = Vector3(0, 1, 0)
spread = 66.739
initial_velocity_min = 10.0
initial_velocity_max = 15.0
scale_min = 0.1
hue_variation_min = 0.1
hue_variation_max = 0.2
hue_variation_curve = SubResource("CurveTexture_7652j")
[sub_resource type="BoxMesh" id="BoxMesh_rsjsy"]
[node name="rocketexplosion" type="Node3D"]
script = ExtResource("1_ssw3i")
[node name="dieParticles" type="GPUParticles3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.17952, 0)
material_override = SubResource("StandardMaterial3D_e1gej")
cast_shadow = 0
emitting = false
amount = 250
lifetime = 5.0
one_shot = true
explosiveness = 1.0
trail_enabled = true
trail_lifetime = 3.2
process_material = SubResource("ParticleProcessMaterial_evi0f")
draw_pass_1 = SubResource("BoxMesh_rsjsy")
[node name="Audio" type="Node3D" parent="."]
[node name="Die" type="AudioStreamPlayer3D" parent="Audio"]
stream = ExtResource("5_awm3r")
volume_db = 10.0

401
assets/rocket_launcher.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
[gd_scene load_steps=2 format=3 uid="uid://di83of3sq2127"]
[ext_resource type="PackedScene" uid="uid://d3dmtkan3612" path="res://assets/Models/rocketlauncher.blend" id="1_v0rrk"]
[node name="rocketlauncher" instance=ExtResource("1_v0rrk")]