starting to fix guns under new script workflow
This commit is contained in:
812
assets/blunderbus.tscn
Normal file
812
assets/blunderbus.tscn
Normal file
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=22 format=4 uid="uid://cucqbjb8bcha5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/weapon_pickup.gd" id="1_jhhxn"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqwkal3t4gf2p" path="res://blunderbus.tscn" id="2_lnwhe"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqwkal3t4gf2p" path="res://assets/blunderbus.tscn" id="2_lnwhe"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqgsiuy8wfxmv" path="res://assets/Models/blunderbus.stock.albedo.png" id="3_klngk"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddrqh51fsq8gm" path="res://assets/Models/blunderbus.stock.rough.png" id="4_sicjv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bp3cr7eorynax" path="res://assets/Models/blunderbus.stock.normal.png" id="5_wksjb"]
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
[gd_scene load_steps=51 format=4 uid="uid://brl0bsqjl5dg3"]
|
||||
[gd_scene load_steps=45 format=4 uid="uid://brl0bsqjl5dg3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c33b6ldlxxfro" path="res://assets/Models/mac10.blend" id="1_nb4p5"]
|
||||
[ext_resource type="Script" path="res://scripts/gun.gd" id="2_tskiy"]
|
||||
[ext_resource type="PackedScene" uid="uid://nq5nq2hjc4ec" path="res://assets/bullet_fake.tscn" id="3_heo3y"]
|
||||
[ext_resource type="Texture2D" uid="uid://gx3iw54iemho" path="res://assets/Textures/ObjectTextures/mac10.png" id="3_p1hxc"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqhltdnqyg8ni" path="res://assets/bullet.tscn" id="3_w1kko"]
|
||||
[ext_resource type="PackedScene" uid="uid://crvohhc6kgshn" path="res://assets/bullet_hole.tscn" id="4_eleuq"]
|
||||
[ext_resource type="Resource" uid="uid://i3y4quaxs5mb" path="res://assets/weaponresources/mac10_resource.tres" id="4_ex2eo"]
|
||||
[ext_resource type="PackedScene" uid="uid://cp8563f0oxvff" path="res://assets/mag1.tscn" id="4_ji2hu"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1gdehrsytlkk" path="res://assets/casing.tscn" id="4_kpr3h"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon_uberscript.gd" id="2_rdhyh"]
|
||||
[ext_resource type="Resource" uid="uid://byimj60rup3an" path="res://assets/weaponresources/mac10_uberresource.tres" id="3_h7i0a"]
|
||||
[ext_resource type="AudioStream" uid="uid://t50i483xmj3a" path="res://assets/Audio/Weapons/toy-click-spin-SBA-300071143.wav" id="5_rn7j1"]
|
||||
[ext_resource type="AudioStream" uid="uid://db3iy0f1pa5lg" path="res://assets/Audio/Weapons/gun-m-16-reload-full-clip-magazine-SBA-300121257.wav" id="6_3atx1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtg3nb2ew72c3" path="res://assets/star_05.png" id="7_h63ea"]
|
||||
@@ -589,6 +583,20 @@ tracks/5/keys = {
|
||||
"update": 1,
|
||||
"values": [false, true, false]
|
||||
}
|
||||
tracks/6/type = "method"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath(".")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0.002),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"bullet_fire"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_tikvk"]
|
||||
resource_name = "sprint"
|
||||
@@ -675,26 +683,11 @@ _data = {
|
||||
"swap_out": SubResource("Animation_i5303")
|
||||
}
|
||||
|
||||
[node name="mac10" node_paths=PackedStringArray("r_hand_location", "l_hand_location", "flare_light", "anim_player", "barrel_raycast", "casing_ejector", "mag_ejector", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_nb4p5")]
|
||||
script = ExtResource("2_tskiy")
|
||||
gun_name = "Mac 10"
|
||||
gun_icon = ExtResource("3_p1hxc")
|
||||
gun_info = ExtResource("4_ex2eo")
|
||||
fov_zoom_amt = 15.0
|
||||
recoil_amount = Vector3(0.02, 0.05, 0.05)
|
||||
max_ammo = 20
|
||||
bullet_damage = 2
|
||||
bullet_speed = 600
|
||||
r_hand_location = NodePath("mac10/RHandLocation")
|
||||
l_hand_location = NodePath("mac10/mag/LHandLocation")
|
||||
flare_light = NodePath("mac10/flare")
|
||||
bullet = ExtResource("3_w1kko")
|
||||
bullet_fake = ExtResource("3_heo3y")
|
||||
bullethole = ExtResource("4_eleuq")
|
||||
casing = ExtResource("4_kpr3h")
|
||||
mag = ExtResource("4_ji2hu")
|
||||
[node name="mac10" node_paths=PackedStringArray("anim_player", "barrel_ray", "casing_ejector", "mag_ejector", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_nb4p5")]
|
||||
script = ExtResource("2_rdhyh")
|
||||
weapon_info = ExtResource("3_h7i0a")
|
||||
anim_player = NodePath("GunAnims")
|
||||
barrel_raycast = NodePath("mac10/RayCastBarrel")
|
||||
barrel_ray = NodePath("mac10/RayCastBarrel")
|
||||
casing_ejector = NodePath("mac10/RayCastCasing")
|
||||
mag_ejector = NodePath("mac10/RayCastMag")
|
||||
audio_fire = NodePath("Audio/Fire")
|
||||
@@ -702,7 +695,7 @@ audio_empty = NodePath("Audio/Empty")
|
||||
audio_reload = NodePath("Audio/Reload")
|
||||
|
||||
[node name="mac10" parent="." index="0"]
|
||||
transform = Transform3D(-0.120695, -0.0946481, -0.257826, 0.172433, -0.245315, 0.00933494, -0.213774, -0.144437, 0.153096, 0.948953, -2.62066, 0.655643)
|
||||
transform = Transform3D(-1.08599e-06, -2.96491e-09, -0.3, -0.00082893, 0.299999, 3.58064e-11, 0.299999, 0.00082893, -1.086e-06, 0, 0.00194802, 0.00225875)
|
||||
cast_shadow = 0
|
||||
lod_bias = 10.0
|
||||
mesh = SubResource("ArrayMesh_pcg38")
|
||||
@@ -725,13 +718,12 @@ spot_angle_attenuation = 0.353554
|
||||
transform = Transform3D(2.1023, 0, 2.72848e-12, 0, 2.10229, 0, -5.45697e-12, 0, 2.10229, 0.234, -0.99, 0.006)
|
||||
|
||||
[node name="chargerpull" parent="mac10" index="3"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.277325, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00645833, 0, 0)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("ArrayMesh_4g0pt")
|
||||
|
||||
[node name="flare" parent="mac10" index="4"]
|
||||
transform = Transform3D(0.71471, 9.09495e-13, -6.77626e-20, 0, -1.9745e-08, -0.451714, -1.36424e-12, 0.451713, -1.97451e-08, -2.78547, 0.0225526, 4.16584e-06)
|
||||
visible = false
|
||||
transparency = 1.0
|
||||
cast_shadow = 0
|
||||
|
||||
@@ -758,7 +750,7 @@ transform = Transform3D(-0.00171201, 5.61171e-05, 1.87678, 0.567942, 1.78878, 0.
|
||||
target_position = Vector3(1, 0, 0)
|
||||
|
||||
[node name="Trigger" parent="mac10" index="8"]
|
||||
transform = Transform3D(0.997624, -0.0688948, 3.50648e-07, 0.0688948, 0.997624, -9.30051e-07, -2.85739e-07, 9.51999e-07, 1, -0.13807, -0.230628, 0.00528617)
|
||||
transform = Transform3D(0.985948, 0.167053, 5.19912e-08, -0.167053, 0.985948, -1.379e-07, -7.42973e-08, 1.27277e-07, 1, -0.13807, -0.230628, 0.00528617)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("ArrayMesh_c7rny")
|
||||
|
||||
|
||||
@@ -669,13 +669,13 @@ _data = {
|
||||
"swap_out": SubResource("Animation_i5303")
|
||||
}
|
||||
|
||||
[node name="mac10" node_paths=PackedStringArray("casing_ejector", "mag_ejector", "barrel_ray", "anim_player", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_iysoo")]
|
||||
[node name="mac10" node_paths=PackedStringArray("anim_player", "barrel_ray", "casing_ejector", "mag_ejector", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_iysoo")]
|
||||
script = ExtResource("2_dlpd0")
|
||||
weapon_info = ExtResource("3_a3njr")
|
||||
anim_player = NodePath("GunAnims")
|
||||
barrel_ray = NodePath("mac10/RayCastBarrel")
|
||||
casing_ejector = NodePath("mac10/RayCastCasing")
|
||||
mag_ejector = NodePath("mac10/RayCastMag")
|
||||
barrel_ray = NodePath("mac10/RayCastBarrel")
|
||||
anim_player = NodePath("GunAnims")
|
||||
audio_fire = NodePath("Audio/Fire")
|
||||
audio_empty = NodePath("Audio/Empty")
|
||||
audio_reload = NodePath("Audio/Reload")
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=26 format=4 uid="uid://bshuvj6xeaiiq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/melee_weapon.gd" id="1_afuhq"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon_uberscript.gd" id="1_3j502"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtjnn8f8165dg" path="res://assets/Models/SubstancePainterTest/machete.blade_BaseColor.png" id="1_n1eld"]
|
||||
[ext_resource type="Texture2D" uid="uid://1upy05l2sd3o" path="res://assets/Textures/ObjectTextures/Machete.png" id="2_0vbjw"]
|
||||
[ext_resource type="Texture2D" uid="uid://rglx87b6ctrf" path="res://assets/Models/SubstancePainterTest/machete.blade_Metallic.png" id="2_ktp8c"]
|
||||
[ext_resource type="Resource" uid="uid://cn6axgvd75xt7" path="res://assets/weaponresources/machete.tres" id="2_vu874"]
|
||||
[ext_resource type="Shader" path="res://assets/viewmodel_shader.gdshader" id="3_8w0n7"]
|
||||
[ext_resource type="Texture2D" uid="uid://mcronh7q6ba3" path="res://assets/Models/SubstancePainterTest/machete.blade_Normal.png" id="3_lthmb"]
|
||||
[ext_resource type="Texture2D" uid="uid://b42jj71wsavpb" path="res://assets/Models/SubstancePainterTest/machete.blade_Roughness.png" id="4_nqv4m"]
|
||||
@@ -112,7 +112,7 @@ shadow_mesh = SubResource("ArrayMesh_g3fr5")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_idjup"]
|
||||
margin = 0.0
|
||||
size = Vector3(0.15332, 0.0371094, 0.991211)
|
||||
size = Vector3(0.153, 0.142, 1.336)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bmneo"]
|
||||
length = 0.001
|
||||
@@ -178,14 +178,14 @@ tracks/2/path = NodePath(".")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0.1, 0.266667),
|
||||
"times": PackedFloat32Array(0, 0.8),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"collider_enable"
|
||||
"method": &"melee_collider_enable"
|
||||
}, {
|
||||
"args": [],
|
||||
"method": &"collider_disable"
|
||||
"method": &"melee_collider_disable"
|
||||
}]
|
||||
}
|
||||
tracks/3/type = "audio"
|
||||
@@ -263,15 +263,12 @@ _data = {
|
||||
"swap_out": SubResource("Animation_u7d31")
|
||||
}
|
||||
|
||||
[node name="Machete" type="Node3D" node_paths=PackedStringArray("collision_shape", "anim_player", "audio_fire")]
|
||||
script = ExtResource("1_afuhq")
|
||||
gun_name = "Machete"
|
||||
gun_icon = ExtResource("2_0vbjw")
|
||||
ammo_type = 5
|
||||
collision_shape = NodePath("MacheteHandle/Area3D/CollisionShape3D")
|
||||
bullet_damage = 5
|
||||
[node name="Machete" type="Node3D" node_paths=PackedStringArray("anim_player", "audio_fire", "melee_collision_shape")]
|
||||
script = ExtResource("1_3j502")
|
||||
weapon_info = ExtResource("2_vu874")
|
||||
anim_player = NodePath("AnimationPlayer")
|
||||
audio_fire = NodePath("Audio/Swing")
|
||||
melee_collision_shape = NodePath("MacheteHandle/Area3D/CollisionShape3D")
|
||||
|
||||
[node name="MacheteHandle" type="Node3D" parent="."]
|
||||
|
||||
@@ -285,6 +282,7 @@ skeleton = NodePath("")
|
||||
transform = Transform3D(-4.37114e-08, -1, 4.37114e-08, 0.314307, -5.5235e-08, -0.949321, 0.949321, -2.77573e-08, 0.314307, 0, 0.415, -0.0427188)
|
||||
collision_layer = 128
|
||||
collision_mask = 232
|
||||
gravity_scale = 0.0
|
||||
script = ExtResource("12_u0mbp")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MacheteHandle/Area3D"]
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
[gd_scene load_steps=83 format=4 uid="uid://b5eclfg0cmmal"]
|
||||
[gd_scene load_steps=80 format=4 uid="uid://b5eclfg0cmmal"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dgogd08c0ubt6" path="res://assets/Models/revolver1.blend" id="1_i5f84"]
|
||||
[ext_resource type="Script" path="res://scripts/revolver_1.gd" id="2_7rsti"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqhltdnqyg8ni" path="res://assets/bullet.tscn" id="3_32prk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bho7c8s2yno12" path="res://assets/Textures/ObjectTextures/revolver1.png" id="3_nl201"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon_uberscript.gd" id="2_boy4r"]
|
||||
[ext_resource type="Resource" uid="uid://cqphw4ll1bjjx" path="res://assets/weaponresources/revolver1.tres" id="3_oxh61"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtg3nb2ew72c3" path="res://assets/star_05.png" id="3_q41fl"]
|
||||
[ext_resource type="PackedScene" uid="uid://crvohhc6kgshn" path="res://assets/bullet_hole.tscn" id="4_ubqgq"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1gdehrsytlkk" path="res://assets/casing.tscn" id="5_m3vsl"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctxjj0wthl8hq" path="res://assets/Models/SubstancePainterTest/revolver1_revolver1_BaseColor.png" id="7_h6kyj"]
|
||||
[ext_resource type="AudioStream" uid="uid://dywuxr61pit5t" path="res://assets/Audio/Weapons/38 SPL Revolver/Gunshots/38 SPL Revolver - Gunshot B 001.wav" id="7_ve411"]
|
||||
[ext_resource type="Shader" path="res://assets/viewmodel_shader.gdshader" id="7_xmiit"]
|
||||
@@ -1143,7 +1140,7 @@ tracks/3/keys = {
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"spawn_casings"
|
||||
"method": &"spawn_revolver_casings"
|
||||
}, {
|
||||
"args": [],
|
||||
"method": &"reload_finished"
|
||||
@@ -1264,6 +1261,20 @@ tracks/7/keys = {
|
||||
"update": 0,
|
||||
"values": [0.0, 20.0, 0.0]
|
||||
}
|
||||
tracks/8/type = "method"
|
||||
tracks/8/imported = false
|
||||
tracks/8/enabled = true
|
||||
tracks/8/path = NodePath("Audio/HammerBack")
|
||||
tracks/8/interp = 1
|
||||
tracks/8/loop_wrap = true
|
||||
tracks/8/keys = {
|
||||
"times": PackedFloat32Array(0.01),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [0.0],
|
||||
"method": &"play"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_w02ee"]
|
||||
resource_name = "swap_in"
|
||||
@@ -1346,50 +1357,17 @@ _data = {
|
||||
"swap_out": SubResource("Animation_nvmxj")
|
||||
}
|
||||
|
||||
[node name="revolver1" node_paths=PackedStringArray("r_hand_location", "chamber", "casing0", "casing1", "casing2", "casing3", "casing4", "casing5", "casing_spawn0", "casing_spawn1", "casing_spawn2", "casing_spawn3", "casing_spawn4", "casing_spawn5", "bullet0", "bullet1", "bullet2", "bullet3", "bullet4", "bullet5", "anim_player", "barrel_raycast", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_i5f84")]
|
||||
[node name="revolver1" node_paths=PackedStringArray("anim_player", "barrel_ray", "audio_fire", "audio_empty", "audio_reload", "casing_array", "chamber") instance=ExtResource("1_i5f84")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0718293, 0)
|
||||
script = ExtResource("2_7rsti")
|
||||
gun_name = ".44 Galore"
|
||||
gun_icon = ExtResource("3_nl201")
|
||||
ammo_type = 1
|
||||
fire_mode = 1
|
||||
fov_zoom_amt = 20
|
||||
recoil_amount = Vector3(0.125, 0.1, 0.1)
|
||||
max_ammo = 6
|
||||
bullet_damage = 5
|
||||
kick_amount = 2
|
||||
bullet_force_mod = 10
|
||||
bullet_speed = 1500
|
||||
bullet_drop = 0.0
|
||||
random_spread_amt = 0.1
|
||||
r_hand_location = NodePath("revolver1/RHandLocation")
|
||||
chamber = NodePath("revolver1/Chamber")
|
||||
bullet = ExtResource("3_32prk")
|
||||
bullethole = ExtResource("4_ubqgq")
|
||||
spawn_casing = ExtResource("5_m3vsl")
|
||||
casing0 = NodePath("revolver1/Chamber/casing_001")
|
||||
casing1 = NodePath("revolver1/Chamber/casing")
|
||||
casing2 = NodePath("revolver1/Chamber/casing_005")
|
||||
casing3 = NodePath("revolver1/Chamber/casing_004")
|
||||
casing4 = NodePath("revolver1/Chamber/casing_003")
|
||||
casing5 = NodePath("revolver1/Chamber/casing_002")
|
||||
casing_spawn0 = NodePath("revolver1/Chamber/RayCastCasing1")
|
||||
casing_spawn1 = NodePath("revolver1/Chamber/RayCastCasing2")
|
||||
casing_spawn2 = NodePath("revolver1/Chamber/RayCastCasing3")
|
||||
casing_spawn3 = NodePath("revolver1/Chamber/RayCastCasing4")
|
||||
casing_spawn4 = NodePath("revolver1/Chamber/RayCastCasing5")
|
||||
casing_spawn5 = NodePath("revolver1/Chamber/RayCastCasing6")
|
||||
bullet0 = NodePath("revolver1/Chamber/bullet")
|
||||
bullet1 = NodePath("revolver1/Chamber/bullet_005")
|
||||
bullet2 = NodePath("revolver1/Chamber/bullet_004")
|
||||
bullet3 = NodePath("revolver1/Chamber/bullet_003")
|
||||
bullet4 = NodePath("revolver1/Chamber/bullet_002")
|
||||
bullet5 = NodePath("revolver1/Chamber/bullet_001")
|
||||
script = ExtResource("2_boy4r")
|
||||
weapon_info = ExtResource("3_oxh61")
|
||||
anim_player = NodePath("AnimationPlayer")
|
||||
barrel_raycast = NodePath("revolver1/RayCastBarrel")
|
||||
barrel_ray = NodePath("revolver1/RayCastBarrel")
|
||||
audio_fire = NodePath("Audio/Fire")
|
||||
audio_empty = NodePath("Audio/Empty")
|
||||
audio_reload = NodePath("Audio/Reload")
|
||||
casing_array = [NodePath("revolver1/Chamber/RayCastCasing1"), NodePath("revolver1/Chamber/RayCastCasing2"), NodePath("revolver1/Chamber/RayCastCasing3"), NodePath("revolver1/Chamber/RayCastCasing4"), NodePath("revolver1/Chamber/RayCastCasing5"), NodePath("revolver1/Chamber/RayCastCasing6")]
|
||||
chamber = NodePath("revolver1/Chamber")
|
||||
|
||||
[node name="revolver1" parent="." index="0"]
|
||||
transform = Transform3D(-0.0315539, 0.291099, 0.0653139, -0.27013, -9.77868e-07, -0.130499, -0.126626, -0.0725366, 0.262115, 0.0258306, 0, -0.0631607)
|
||||
@@ -1398,7 +1376,7 @@ lod_bias = 10.0
|
||||
mesh = SubResource("ArrayMesh_a1hah")
|
||||
|
||||
[node name="Chamber" parent="revolver1" index="0"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -0.0143475, 0, -0.0849619)
|
||||
transform = Transform3D(1, 0, 0, 0, -3.61999e-06, -1, 0, 1, -3.61999e-06, -0.0143475, 0, -0.0849619)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("ArrayMesh_x43wl")
|
||||
|
||||
@@ -1474,7 +1452,7 @@ cast_shadow = 0
|
||||
mesh = SubResource("ArrayMesh_0w43n")
|
||||
|
||||
[node name="Trigger" parent="revolver1" index="2"]
|
||||
transform = Transform3D(0.207537, -0.978227, 4.27597e-08, 0, -4.37114e-08, -1, 0.978227, 0.207537, -9.07173e-09, 0.226752, 0, -0.00209358)
|
||||
transform = Transform3D(0.207537, -0.978227, 3.54117e-06, 0, -3.61999e-06, -1, 0.978227, 0.207537, -7.51281e-07, 0.226752, 0, -0.00209358)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("ArrayMesh_ahftj")
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://cwutm86yp0rk6" path="res://assets/crown.tscn" id="3_gog5n"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5eclfg0cmmal" path="res://assets/revolver_1.tscn" id="3_yqo0y"]
|
||||
[ext_resource type="PackedScene" uid="uid://dslxb3psx30vp" path="res://assets/pistol1.tscn" id="5_v3dls"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqwkal3t4gf2p" path="res://blunderbus.tscn" id="7_do5lr"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqwkal3t4gf2p" path="res://assets/blunderbus.tscn" id="7_do5lr"]
|
||||
[ext_resource type="PackedScene" uid="uid://djr7vnr1hcx82" path="res://assets/spider2.tscn" id="8_6tvxc"]
|
||||
[ext_resource type="PackedScene" uid="uid://bcmd7elfjhppe" path="res://assets/tree_1.tscn" id="9_0lt7q"]
|
||||
[ext_resource type="PackedScene" uid="uid://bycbdb5u5ewgl" path="res://assets/tree_2.tscn" id="10_g2f5o"]
|
||||
|
||||
@@ -10,11 +10,12 @@
|
||||
script = ExtResource("3_10fhq")
|
||||
gun_name = "Mac 10"
|
||||
gun_icon = ExtResource("2_a3oyj")
|
||||
path = "res://assets/mac_10_uber.tscn"
|
||||
bullet = ExtResource("1_y4ehq")
|
||||
fire_mode = 0
|
||||
fov_zoom_amt = 0.98
|
||||
ads = false
|
||||
recoil_amount = Vector3(0.1, 0.05, 0.05)
|
||||
recoil_amount = Vector3(0.05, 0.05, 0.05)
|
||||
kick_amount = 0.1
|
||||
max_ammo = 20
|
||||
start_mags = 3
|
||||
@@ -23,5 +24,4 @@ smoke_enabled = false
|
||||
bullet_force_mod = 5.0
|
||||
bullet_speed = 600
|
||||
casing = ExtResource("2_7wxcs")
|
||||
casing_array = Array[NodePath]([])
|
||||
mag = ExtResource("4_fiujt")
|
||||
|
||||
22
assets/weaponresources/machete.tres
Normal file
22
assets/weaponresources/machete.tres
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_resource type="Resource" script_class="weapon_resource" load_steps=3 format=3 uid="uid://cn6axgvd75xt7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://1upy05l2sd3o" path="res://assets/Textures/ObjectTextures/Machete.png" id="1_c6dni"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon_resource.gd" id="2_nfg5p"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_nfg5p")
|
||||
gun_name = "machete"
|
||||
gun_icon = ExtResource("1_c6dni")
|
||||
path = "res://assets/machete.tscn"
|
||||
weapon_type = 1
|
||||
fire_mode = 1
|
||||
fov_zoom_amt = 0.98
|
||||
ads = false
|
||||
recoil_amount = Vector3(0, 0.05, 0.05)
|
||||
kick_amount = 0.1
|
||||
max_ammo = 0
|
||||
start_mags = 0
|
||||
bullet_damage = 5
|
||||
smoke_enabled = false
|
||||
bullet_force_mod = 5.0
|
||||
bullet_speed = 600
|
||||
11
assets/weaponresources/medium_ammo.tres
Normal file
11
assets/weaponresources/medium_ammo.tres
Normal file
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="bullet_resource" load_steps=4 format=3 uid="uid://b4sqlnsf0jla2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dqhltdnqyg8ni" path="res://assets/bullet.tscn" id="1_i1dgo"]
|
||||
[ext_resource type="PackedScene" uid="uid://crvohhc6kgshn" path="res://assets/bullet_hole.tscn" id="2_v06eh"]
|
||||
[ext_resource type="Script" path="res://scripts/bullet_resource.gd" id="3_cliab"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_cliab")
|
||||
asset = ExtResource("1_i1dgo")
|
||||
ammo_type = 1
|
||||
bullet_hole = ExtResource("2_v06eh")
|
||||
24
assets/weaponresources/revolver1.tres
Normal file
24
assets/weaponresources/revolver1.tres
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="weapon_resource" load_steps=4 format=3 uid="uid://cqphw4ll1bjjx"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://b4sqlnsf0jla2" path="res://assets/weaponresources/medium_ammo.tres" id="1_53e42"]
|
||||
[ext_resource type="Texture2D" uid="uid://bho7c8s2yno12" path="res://assets/Textures/ObjectTextures/revolver1.png" id="2_n6mhi"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon_resource.gd" id="3_1a2hk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_1a2hk")
|
||||
gun_name = "revolver"
|
||||
gun_icon = ExtResource("2_n6mhi")
|
||||
path = "res://assets/revolver_1.tscn"
|
||||
weapon_type = 0
|
||||
bullet = ExtResource("1_53e42")
|
||||
fire_mode = 1
|
||||
fov_zoom_amt = 0.98
|
||||
ads = false
|
||||
recoil_amount = Vector3(0.05, 0.05, 0.05)
|
||||
kick_amount = 0.1
|
||||
max_ammo = 15
|
||||
start_mags = 3
|
||||
bullet_damage = 1
|
||||
smoke_enabled = false
|
||||
bullet_force_mod = 5.0
|
||||
bullet_speed = 1200
|
||||
Reference in New Issue
Block a user