Add more guns (#19)
Co-authored-by: Jacklull <rodion.n.rodionov@gmail.com> Reviewed-on: #19
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=55 format=4 uid="uid://dtvo21mk1webd"]
|
||||
[gd_scene load_steps=58 format=4 uid="uid://dtvo21mk1webd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dab7jttp7ywfh" path="res://scenes/weapon/guns/ak/gun.tscn" id="1_aaafm"]
|
||||
[ext_resource type="Script" path="res://scenes/weapon/generic_weapon_controller.gd" id="1_h1xyo"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjyltbtx45cqs" path="res://scenes/weapon/misc/bullet_trace_distance.tscn" id="3_5ff4y"]
|
||||
[ext_resource type="PackedScene" uid="uid://dab7jttp7ywfh" path="res://scenes/weapon/guns/ak/gun.tscn" id="3_q7t3c"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tg27p"]
|
||||
|
||||
@ -552,15 +552,98 @@ _surfaces = [{
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_he3sr")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7sa0w"]
|
||||
resource_name = "shot"
|
||||
length = 0.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Gun:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.0333333, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1.66932, -0.0888077, -1.97802), Vector3(1.669, -0.089, -1.778), Vector3(1.66932, -0.0888077, -1.97802)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("HandsMount/RightHand:position")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.0333333, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.408733, -0.544357, 1.64689), Vector3(0.409, -0.544, 1.847), Vector3(0.408733, -0.544357, 1.64689)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("HandsMount/LeftHand:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.0333333, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.0862075, -0.344845, -1.49729), Vector3(-0.086, -0.345, -1.297), Vector3(-0.0862075, -0.344845, -1.49729)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_plxf0"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Gun:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1.66932, -0.0888077, -1.97802)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("HandsMount/RightHand:position")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0.408733, -0.544357, 1.64689)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("HandsMount/LeftHand:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(-0.0862075, -0.344845, -1.49729)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_g403t"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_plxf0"),
|
||||
"shot": SubResource("Animation_7sa0w")
|
||||
}
|
||||
|
||||
[node name="WithHands" type="Node3D"]
|
||||
script = ExtResource("1_h1xyo")
|
||||
damage = 50
|
||||
cooldown = 0.2
|
||||
bullet_speed = 200
|
||||
|
||||
[node name="Gun" parent="." instance=ExtResource("1_aaafm")]
|
||||
|
||||
[node name="HandsMount" type="Node3D" parent="."]
|
||||
transform = Transform3D(0.998923, -0.000723437, -0.0463964, -0.000899076, 0.999389, -0.0349403, 0.0463934, 0.0349443, 0.998312, 1.66932, -0.0888077, -1.97802)
|
||||
|
||||
[node name="RightHand" type="Node3D" parent="HandsMount"]
|
||||
transform = Transform3D(-0.0937107, -0.388868, 0, 0.388868, -0.0937107, 0, 0, 0, 0.4, 0.408733, -0.544357, 1.64689)
|
||||
@ -659,7 +742,7 @@ mesh = SubResource("ArrayMesh_10vpp")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="arm_lower" type="MeshInstance3D" parent="HandsMount/LeftHand/hand"]
|
||||
transform = Transform3D(0.961026, 0.0494308, -0.272003, -0.077176, 0.992739, -0.0922641, 0.265467, 0.10966, 0.957863, -2.38419e-07, -0.118854, 0.00119257)
|
||||
transform = Transform3D(0.908992, 0.219435, -0.354375, -0.195894, 0.97536, 0.101481, 0.367911, -0.0228259, 0.92958, 9.53674e-07, -0.118854, 0.00119209)
|
||||
mesh = SubResource("ArrayMesh_6kcxh")
|
||||
skeleton = NodePath("")
|
||||
|
||||
@ -738,5 +821,13 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.286444, 0, -0.397435)
|
||||
mesh = SubResource("ArrayMesh_kj4i3")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="Gun" parent="." instance=ExtResource("3_q7t3c")]
|
||||
transform = Transform3D(0.998923, -0.000723437, -0.0463964, -0.000899076, 0.999389, -0.0349403, 0.0463934, 0.0349443, 0.998312, 1.66932, -0.0888077, -1.97802)
|
||||
|
||||
[node name="BulletTraceDistance" parent="." instance=ExtResource("3_5ff4y")]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -3.86167e-07, 0.200684, -4.41724)
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 1.86762, 0.235416, -6.36432)
|
||||
|
||||
[node name="ShotAnimation" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_g403t")
|
||||
}
|
||||
|
Reference in New Issue
Block a user