long stab03,long技能优化
parent
a1433e906e
commit
497d711912
@ -0,0 +1,18 @@
|
||||
[gd_resource type="Resource" script_class="AttackCfg" load_steps=2 format=3 uid="uid://dmfr73m28vsqj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bm8fn2yciam1g" path="res://script/config/attack_cfg.gd" id="1_rye6c"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_rye6c")
|
||||
damage_rate = 1.0
|
||||
break_level = 2
|
||||
stun_attack = 10.0
|
||||
damage_type = 0
|
||||
is_floating = true
|
||||
is_rebound = false
|
||||
is_throw_check = false
|
||||
is_throw_end = false
|
||||
hit_back_speed = 4.5
|
||||
hit_up_speed = 0.1
|
||||
hit_back_duration = 0.1
|
||||
hit_up_duration = 0.05
|
||||
@ -0,0 +1,32 @@
|
||||
[gd_resource type="Resource" script_class="CharacterCfg" load_steps=10 format=3 uid="uid://rxt1emwats2v"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://tr65aikkpp2e" path="res://scene/ai/bullet_simple_penetrat.tscn" id="1_70j82"]
|
||||
[ext_resource type="Resource" uid="uid://dmfr73m28vsqj" path="res://config/attack/sharp_normal_hit_back_hard.tres" id="2_70j82"]
|
||||
[ext_resource type="Resource" uid="uid://decgfcx2xsj8i" path="res://config/attack_box/circle_mid.tres" id="3_6gt06"]
|
||||
[ext_resource type="Resource" uid="uid://cw7rb4rlfw33q" path="res://config/attack/sharp_heavy_hit_back.tres" id="4_2lpps"]
|
||||
[ext_resource type="Resource" uid="uid://dc2iepk6nb7rs" path="res://config/character_move/fly_normal.tres" id="4_70j82"]
|
||||
[ext_resource type="Resource" uid="uid://dpajmgrlaytah" path="res://config/character_mp/normal.tres" id="5_1lrf8"]
|
||||
[ext_resource type="Script" uid="uid://dt3chi1tgnaef" path="res://script/config/character_cfg.gd" id="6_pyp0d"]
|
||||
[ext_resource type="Resource" uid="uid://h1curvk64vm3" path="res://config/character_shield/none.tres" id="7_iotq2"]
|
||||
[ext_resource type="Resource" uid="uid://5jes0p152akr" path="res://config/character_stun/none.tres" id="8_euuy0"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("6_pyp0d")
|
||||
name = "hero01"
|
||||
type = 2
|
||||
sprite_height = 26
|
||||
sprite_width = 16
|
||||
move = ExtResource("4_70j82")
|
||||
shield = ExtResource("7_iotq2")
|
||||
stun = ExtResource("8_euuy0")
|
||||
mp = ExtResource("5_1lrf8")
|
||||
ai_behavior_tree = ExtResource("1_70j82")
|
||||
hp_max = 100.0
|
||||
attack = 1.0
|
||||
attack1 = ExtResource("2_70j82")
|
||||
attack1_box = ExtResource("3_6gt06")
|
||||
attack2 = ExtResource("4_2lpps")
|
||||
attack2_box = ExtResource("3_6gt06")
|
||||
sub_character_auto_create = false
|
||||
material_on = 0
|
||||
material_off = 0
|
||||
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterMoveCfg" load_steps=2 format=3 uid="uid://dc2iepk6nb7rs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dk6mufc8e8i88" path="res://script/config/character_move_cfg.gd" id="1_33bqv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_33bqv")
|
||||
speed = 5.0
|
||||
gravity_scale = 0.0
|
||||
jump_velocity = 6.0
|
||||
@ -0,0 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="SkillWeaponCfg" load_steps=8 format=3 uid="uid://cahm6vjsskkc5"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://dmfr73m28vsqj" path="res://config/attack/sharp_normal_hit_back_hard.tres" id="1_o1kbx"]
|
||||
[ext_resource type="Animation" uid="uid://dbm6ssy6cqb2d" path="res://resource/skill_animation/hero01_long_stab03.tres" id="2_jcwvc"]
|
||||
[ext_resource type="Resource" uid="uid://diedb7vw7eyxp" path="res://config/attack_box/box_mid.tres" id="2_o1kbx"]
|
||||
[ext_resource type="Script" uid="uid://dgwtu2wj5033u" path="res://script/config/skill_weapon_cfg.gd" id="3_51oqr"]
|
||||
[ext_resource type="Resource" uid="uid://rxt1emwats2v" path="res://config/character/bullet_hero01_long_stab.tres" id="4_hrq33"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://c6w03xigmrd31" path="res://resource/animation/character/hero01_long_skill03.aseprite" id="5_aqnpo"]
|
||||
[ext_resource type="Resource" uid="uid://cy3wwalxeyro0" path="res://config/weapon/long.tres" id="6_cys3s"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_51oqr")
|
||||
weapon = ExtResource("6_cys3s")
|
||||
action = "attack_heavy"
|
||||
name = ""
|
||||
sub_character = ExtResource("4_hrq33")
|
||||
skill_animation = ExtResource("2_jcwvc")
|
||||
stance_from = 30
|
||||
stance_to = 99
|
||||
break_level = 3
|
||||
is_charging = false
|
||||
attack1 = ExtResource("1_o1kbx")
|
||||
attack1_box = ExtResource("2_o1kbx")
|
||||
attack1_with_stop = false
|
||||
attack2_with_stop = false
|
||||
mp_cost = 0
|
||||
mp_sub_cost = false
|
||||
free_lock = false
|
||||
ignore_push = true
|
||||
with_stop = false
|
||||
is_lock_x = true
|
||||
is_lock_x_move = true
|
||||
range = 0.0
|
||||
warn_type = 0
|
||||
sprite_frames = ExtResource("5_aqnpo")
|
||||
animation_name = "long_skill_stab02"
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 30 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,121 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://dbm6ssy6cqb2d"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://c6w03xigmrd31" path="res://resource/animation/character/hero01_long_skill03.aseprite" id="1_uyr8p"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_long_stab03"
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_uyr8p")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_skill_stab02"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Status:break_level")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 3, 4]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("Status:speed_up_rate")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [-0.5, -1.0]
|
||||
}
|
||||
tracks/5/type = "method"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("Battle")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0.2),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"cast_sub_character"
|
||||
}]
|
||||
}
|
||||
tracks/6/type = "method"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("Effect")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0.2),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"cast_attack_particle1"
|
||||
}]
|
||||
}
|
||||
tracks/7/type = "value"
|
||||
tracks/7/imported = false
|
||||
tracks/7/enabled = true
|
||||
tracks/7/path = NodePath("Status:skill_move_speed")
|
||||
tracks/7/interp = 1
|
||||
tracks/7/loop_wrap = true
|
||||
tracks/7/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [2.0, 6.0, 0.0]
|
||||
}
|
||||
tracks/8/type = "method"
|
||||
tracks/8/imported = false
|
||||
tracks/8/enabled = true
|
||||
tracks/8/path = NodePath("Battle")
|
||||
tracks/8/interp = 1
|
||||
tracks/8/loop_wrap = true
|
||||
tracks/8/keys = {
|
||||
"times": PackedFloat32Array(0.2),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"attack1"
|
||||
}]
|
||||
}
|
||||
@ -1,20 +1,49 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://tr65aikkpp2e"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://tr65aikkpp2e"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://mvwcxqcetiqp" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_6wcp2"]
|
||||
[ext_resource type="Script" uid="uid://cugftmuc8v30c" path="res://addons/beehave/nodes/composites/sequence.gd" id="2_0p8p1"]
|
||||
[ext_resource type="Script" uid="uid://cnw25wdsd3c76" path="res://script/ai/action/action_wait.gd" id="3_irjra"]
|
||||
[ext_resource type="Script" uid="uid://dcqq2mursvw5m" path="res://addons/beehave/nodes/decorators/succeeder.gd" id="3_irjra"]
|
||||
[ext_resource type="Script" uid="uid://csd1yh0ruy3yu" path="res://script/ai/action/action_wait_tick.gd" id="4_2fqct"]
|
||||
[ext_resource type="Script" uid="uid://ddcaceywxwt20" path="res://script/ai/action/action_attack1.gd" id="4_klwmg"]
|
||||
[ext_resource type="Script" uid="uid://bhxaiqao7nkth" path="res://script/ai/action/action_check_hit_wall.gd" id="6_7sn8v"]
|
||||
[ext_resource type="Script" uid="uid://ci3tg5fkdn16f" path="res://script/ai/action/action_destroy.gd" id="7_dfpyy"]
|
||||
[ext_resource type="Script" uid="uid://scokoi8g3sm8" path="res://script/ai/action/action_attack2.gd" id="7_klwmg"]
|
||||
|
||||
[node name="BeehaveTree" type="Node" node_paths=PackedStringArray("blackboard")]
|
||||
script = ExtResource("1_6wcp2")
|
||||
blackboard = NodePath("@Node@25116")
|
||||
blackboard = NodePath("@Node@25188")
|
||||
|
||||
[node name="SequenceComposite" type="Node" parent="."]
|
||||
script = ExtResource("2_0p8p1")
|
||||
|
||||
[node name="ActionWait" type="Node" parent="SequenceComposite"]
|
||||
[node name="AlwaysSucceedDecorator" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_irjra")
|
||||
wait_time = 0.05
|
||||
metadata/_custom_type_script = ExtResource("3_irjra")
|
||||
|
||||
[node name="ActionAttack1" type="Node" parent="SequenceComposite"]
|
||||
[node name="保持攻击" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator"]
|
||||
script = ExtResource("2_0p8p1")
|
||||
|
||||
[node name="ActionWaitTick" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator/保持攻击"]
|
||||
script = ExtResource("4_2fqct")
|
||||
metadata/_custom_type_script = ExtResource("4_2fqct")
|
||||
|
||||
[node name="ActionAttack1" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator/保持攻击"]
|
||||
script = ExtResource("4_klwmg")
|
||||
|
||||
[node name="AlwaysSucceedDecorator2" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_irjra")
|
||||
metadata/_custom_type_script = ExtResource("3_irjra")
|
||||
|
||||
[node name="检测命中墙壁并销毁" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator2"]
|
||||
script = ExtResource("2_0p8p1")
|
||||
|
||||
[node name="ActionCheckHitWall" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator2/检测命中墙壁并销毁"]
|
||||
script = ExtResource("6_7sn8v")
|
||||
metadata/_custom_type_script = ExtResource("6_7sn8v")
|
||||
|
||||
[node name="ActionAttack2" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator2/检测命中墙壁并销毁"]
|
||||
script = ExtResource("7_klwmg")
|
||||
metadata/_custom_type_script = ExtResource("7_klwmg")
|
||||
|
||||
[node name="ActionDestroy" type="Node" parent="SequenceComposite/AlwaysSucceedDecorator2/检测命中墙壁并销毁"]
|
||||
script = ExtResource("7_dfpyy")
|
||||
|
||||
@ -0,0 +1,94 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://bh3ydvhkb4771"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dxoik7jm7xm2q" path="res://script/effect/particle.gd" id="1_n7rn2"]
|
||||
[ext_resource type="Shader" uid="uid://b4x52xwsln0sq" path="res://render/shader/effect_slash.gdshader" id="2_eydbp"]
|
||||
[ext_resource type="Texture2D" uid="uid://4cxxxxdbbugc" path="res://render/texture/particle/gradient/gradient1.png" id="3_xand7"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4byf37he3mjt" path="res://render/texture/particle/noise/noise1.png" id="4_f8gw0"]
|
||||
[ext_resource type="Texture2D" uid="uid://vy3c8opc6uju" path="res://render/texture/particle/mask/mask17.png" id="5_nj1by"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd3e7ol8qa5eq" path="res://render/texture/particle/noise/noise2.png" id="6_dq6ln"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://bhqhfenm05vo2" path="res://render/mesh/cone1.obj" id="7_dw3eu"]
|
||||
[ext_resource type="Texture2D" uid="uid://bn6fmxdjlp3wf" path="res://render/texture/particle/mask/mask19.png" id="8_gc3w6"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_n7rn2"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("2_eydbp")
|
||||
shader_parameter/tex_main = ExtResource("4_f8gw0")
|
||||
shader_parameter/tex_noise = ExtResource("6_dq6ln")
|
||||
shader_parameter/tex_mask = ExtResource("5_nj1by")
|
||||
shader_parameter/tex_gradient = ExtResource("3_xand7")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_dq6ln"]
|
||||
_limits = [0.0, 1.1, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1.1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_dw3eu"]
|
||||
curve = SubResource("Curve_dq6ln")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_gc3w6"]
|
||||
particle_flag_rotate_y = true
|
||||
angle_min = 180.0
|
||||
angle_max = 180.0
|
||||
angular_velocity_min = -720.0
|
||||
angular_velocity_max = -720.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_dw3eu")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lhosn"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("2_eydbp")
|
||||
shader_parameter/tex_main = ExtResource("4_f8gw0")
|
||||
shader_parameter/tex_noise = ExtResource("6_dq6ln")
|
||||
shader_parameter/tex_mask = ExtResource("8_gc3w6")
|
||||
shader_parameter/tex_gradient = ExtResource("3_xand7")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_n7rn2"]
|
||||
_limits = [0.0, 1.1, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1.1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_eydbp"]
|
||||
curve = SubResource("Curve_n7rn2")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_xand7"]
|
||||
particle_flag_rotate_y = true
|
||||
angle_min = 180.0
|
||||
angle_max = 180.0
|
||||
angular_velocity_min = -720.0
|
||||
angular_velocity_max = -720.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_eydbp")
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_n7rn2")
|
||||
|
||||
[node name="Slash" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, -1.5, 0, 1, -6.55671e-08, 0, 0, 0, 1, 0, 0, 0)
|
||||
layers = 512
|
||||
material_override = SubResource("ShaderMaterial_n7rn2")
|
||||
cast_shadow = 0
|
||||
gi_mode = 0
|
||||
emitting = false
|
||||
amount = 1
|
||||
lifetime = 5.0
|
||||
one_shot = true
|
||||
seed = 1352074707
|
||||
fixed_fps = 60
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_gc3w6")
|
||||
draw_pass_1 = ExtResource("7_dw3eu")
|
||||
|
||||
[node name="Slash2" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(-2.62268e-08, -0.6, 0, 0.6, -2.62268e-08, 0, 0, 0, 0.6, 0, 0, 0)
|
||||
layers = 512
|
||||
material_override = SubResource("ShaderMaterial_lhosn")
|
||||
cast_shadow = 0
|
||||
gi_mode = 0
|
||||
emitting = false
|
||||
amount = 1
|
||||
lifetime = 5.0
|
||||
one_shot = true
|
||||
fixed_fps = 60
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_xand7")
|
||||
draw_pass_1 = ExtResource("7_dw3eu")
|
||||
@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c8w1be7y1qejq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dxoik7jm7xm2q" path="res://script/effect/particle.gd" id="1_q4l8b"]
|
||||
[ext_resource type="PackedScene" uid="uid://bh3ydvhkb4771" path="res://scene/effect/particle/_particle_stab3.tscn" id="2_iixv7"]
|
||||
|
||||
[node name="Particle" type="Node3D"]
|
||||
script = ExtResource("1_q4l8b")
|
||||
|
||||
[node name="Particle" parent="." instance=ExtResource("2_iixv7")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0.587818, 0, 0)
|
||||
@ -1,7 +1,14 @@
|
||||
extends Action
|
||||
class_name ActionDestroy
|
||||
|
||||
var live_time: float = 0.05
|
||||
|
||||
|
||||
func run(character: Character, blackboard: Blackboard) -> int:
|
||||
live_time -= get_physics_process_delta_time()
|
||||
if live_time > 0:
|
||||
return RUNNING
|
||||
else:
|
||||
Global.character_mgr.destroy_character(character.id())
|
||||
return SUCCESS
|
||||
|
||||
|
||||
Loading…
Reference in New Issue