oh fuck im gonna have to learn to clean up previous commits

This commit is contained in:
2025-07-18 23:14:51 +10:00
parent a6c503b8ff
commit 4a26cf0ddb
54 changed files with 1066 additions and 163 deletions

View File

@@ -0,0 +1,41 @@
[gd_scene load_steps=6 format=3 uid="uid://bn3t6sjupdxgi"]
[ext_resource type="Script" uid="uid://bp3o5klntwmhd" path="res://Scripts/Weapons/hitscan_weapon.gd" id="1_yvp43"]
[ext_resource type="Resource" uid="uid://smctw4ogm4rx" path="res://Weapons/Assault/weapon_stats.tres" id="2_2k4c7"]
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="2_5wfsb"]
[ext_resource type="PackedScene" uid="uid://ccltaimvldxfu" path="res://Gun Thing.glb" id="3_2k4c7"]
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_1hdrg"]
random_pitch = 1.1
streams_count = 1
stream_0/stream = ExtResource("2_5wfsb")
[node name="Rifle" type="Node3D" node_paths=PackedStringArray("raycast", "audio_player", "recharge_timer")]
script = ExtResource("1_yvp43")
raycast = NodePath("RayCast3D")
stats = ExtResource("2_2k4c7")
audio_player = NodePath("AudioStreamPlayer3D")
recharge_timer = NodePath("Timer")
metadata/_custom_type_script = "uid://bp3o5klntwmhd"
[node name="RayCast3D" type="RayCast3D" parent="."]
target_position = Vector3(0, 0, -1)
collision_mask = 4
[node name="Timer" type="Timer" parent="."]
wait_time = 4.0
one_shot = true
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = SubResource("AudioStreamRandomizer_1hdrg")
bus = &"SFX"
[node name="Gun Thing" parent="." instance=ExtResource("3_2k4c7")]
transform = Transform3D(-0.175, 0, -2.64243e-08, 0, 0.175, 0, 2.64243e-08, 0, -0.175, 0, 0.156021, 0)
[node name="Cube" parent="Gun Thing" index="0"]
layers = 2
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[editable path="Gun Thing"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

View File

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

@@ -0,0 +1,13 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://bjdi4f801k0xt"]
[ext_resource type="Shader" uid="uid://c5bffujq0l70k" path="res://Shaders/jitter.gdshader" id="1_r6w0r"]
[ext_resource type="Texture2D" uid="uid://u8p3xcl3gvie" path="res://Weapons/Assault/rifle_tex.png" id="2_kbuty"]
[resource]
render_priority = 0
shader = ExtResource("1_r6w0r")
shader_parameter/affine_mapping = true
shader_parameter/albedo = ExtResource("2_kbuty")
shader_parameter/alpha_scissor = 0.5
shader_parameter/jitter = 0.25
shader_parameter/resolution = Vector2i(320, 240)