]> purplebirdman git - frog-ninja.git/blob - asset/weapon/sword.tscn
Squashed commit of the following:
[frog-ninja.git] / asset / weapon / sword.tscn
1 [gd_scene load_steps=6 format=3 uid="uid://b3idqb7fb550a"]
2
3 [ext_resource type="Script" uid="uid://bohyp1pxi57tm" path="res://asset/weapon/weapon.gd" id="1_hv1tj"]
4 [ext_resource type="PackedScene" uid="uid://c465xpmcc4rh1" path="res://asset/character/visual/sword/prototype_sword_visual.tscn" id="1_rk2yr"]
5 [ext_resource type="Script" uid="uid://s11x31jrhyjm" path="res://asset/weapon/sword_weapon_model.gd" id="3_2lpj1"]
6 [ext_resource type="Script" uid="uid://bfwn8qkon3k0y" path="res://asset/character/model/hurtbox.gd" id="3_8wgyl"]
7
8 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_uq365"]
9 resource_local_to_scene = true
10 radius = 0.3
11 height = 1.2
12
13 [node name="Sword" type="Node3D"]
14 script = ExtResource("1_hv1tj")
15 weapon_name = "Basic ass sword"
16 input_to_state = {
17 "slash": "Slash1"
18 }
19 base_damage = 10
20 energy_return_on_hit = 10.0
21
22 [node name="Visual" parent="." instance=ExtResource("1_rk2yr")]
23
24 [node name="Model" type="Node3D" parent="."]
25 script = ExtResource("3_2lpj1")
26
27 [node name="Hurtbox" type="Area3D" parent="Model"]
28 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.720478)
29 collision_layer = 2
30 collision_mask = 5
31 script = ExtResource("3_8wgyl")
32
33 [node name="CollisionShape3D" type="CollisionShape3D" parent="Model/Hurtbox"]
34 transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
35 shape = SubResource("CapsuleShape3D_uq365")