Created a parent Weapon class

pull/50/head
unfa 2021-06-01 01:03:11 +02:00
parent 33051a5dab
commit 7c9b6711a5
2 changed files with 15 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Assets/Characters/Player.gd" type="Script" id=1]
[ext_resource path="res://Assets/Weapons/Handgun/Handgun.gltf" type="PackedScene" id=2]
[ext_resource path="res://Assets/Weapons/Weapon.tscn" type="PackedScene" id=3]
[sub_resource type="CapsuleMesh" id=1]
radius = 0.4
@ -38,7 +38,7 @@ script = null
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.3, -0.4, -0.6 )
script = null
[node name="Handgun" parent="Head/Camera/Hand" instance=ExtResource( 2 )]
[node name="Weapon" parent="Head/Camera/Hand" instance=ExtResource( 3 )]
[node name="Tween" type="Tween" parent="Head/Camera"]
script = null

View File

@ -0,0 +1,13 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Assets/Weapons/Handgun/Handgun.gltf" type="PackedScene" id=1]
[node name="Weapon" type="Node3D"]
script = null
[node name="Handgun" parent="." instance=ExtResource( 1 )]
[node name="AnimationPlayer" parent="Handgun" index="4"]
blend_times = [ ]
[editable path="Handgun"]