diff --git a/components/Bullets/Volcano.tscn b/components/Bullets/Volcano.tscn index c8e6256..f6caf80 100644 --- a/components/Bullets/Volcano.tscn +++ b/components/Bullets/Volcano.tscn @@ -67,6 +67,18 @@ tracks/4/keys = { "update": 1, "values": [0] } +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("%hitbox:disabled") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} [sub_resource type="Animation" id="Animation_oinqg"] resource_name = "destroy" @@ -175,6 +187,18 @@ tracks/6/keys = { "update": 1, "values": [6, 0, 6] } +tracks/7/type = "value" +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/path = NodePath("%hitbox:disabled") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/keys = { +"times": PackedFloat32Array(0, 0.05, 0.2, 0.7, 0.9, 1.2, 1.35, 1.65, 1.8), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1), +"update": 1, +"values": [true, false, true, false, true, false, true, false, true] +} [sub_resource type="AnimationLibrary" id="AnimationLibrary_w1utg"] _data = { diff --git a/scripts/Contents/Bullets/Volcano.gd b/scripts/Contents/Bullets/Volcano.gd index 3a49bf2..8ff8462 100644 --- a/scripts/Contents/Bullets/Volcano.gd +++ b/scripts/Contents/Bullets/Volcano.gd @@ -9,6 +9,8 @@ var count: int = 0 var dmg5: float = 0 var splitAngle: float = 10 +func spawn(): + setupCuttable(0.2) func ai(): PresetBulletAI.lockLauncher(self , launcher, true) rotation = lerp_angle( @@ -17,7 +19,7 @@ func ai(): rotates ) func succeedToHit(_dmg: float, entity: EntityBase): - entity.impluse((entity.getTrackingAnchor() - position).normalized() * 500) + entity.impluse((entity.getTrackingAnchor() - position).normalized() * 400) ParryEntityEffect.createEffectEntity(entity, self ) func generateShadow():