explosive car; dash no longer stuns or gives extra fire rate
This commit is contained in:
parent
d0bfe8d1be
commit
5a7c93a573
7 changed files with 309 additions and 7 deletions
91
enemies/explosive_car/explosion.tscn
Normal file
91
enemies/explosive_car/explosion.tscn
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
[gd_scene format=3 uid="uid://bmp481gbe4vcx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://br3jskryab3if" path="res://player/explosion/hit_area.gd" id="1_0tlud"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_5mksp"]
|
||||
height = 0.5
|
||||
radial_segments = 8
|
||||
rings = 8
|
||||
is_hemisphere = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xpyis"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_color = Color(1, 0, 0, 0.48235294)
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_xpyis"]
|
||||
radius = 4.0949817
|
||||
|
||||
[sub_resource type="Animation" id="Animation_yr3g8"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Container:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xpyis"]
|
||||
resource_name = "explode"
|
||||
length = 0.5
|
||||
step = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Container:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(1, 1, 1), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0.5),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"queue_free"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_120gr"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_yr3g8"),
|
||||
&"explode": SubResource("Animation_xpyis")
|
||||
}
|
||||
|
||||
[node name="Explosion" type="Node3D" unique_id=702514359]
|
||||
|
||||
[node name="Container" type="Node3D" parent="." unique_id=1035655414]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Container" unique_id=509955843]
|
||||
transform = Transform3D(7.6891003, 0, 0, 0, 7.6891003, 0, 0, 0, 7.6891003, 0, 0, 0)
|
||||
mesh = SubResource("SphereMesh_5mksp")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_xpyis")
|
||||
|
||||
[node name="HitArea" type="Area3D" parent="Container" unique_id=468568433]
|
||||
collision_layer = 0
|
||||
collision_mask = 14
|
||||
script = ExtResource("1_0tlud")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Container/HitArea" unique_id=837356976]
|
||||
shape = SubResource("SphereShape3D_xpyis")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=893547695]
|
||||
libraries/ = SubResource("AnimationLibrary_120gr")
|
||||
autoplay = &"explode"
|
||||
Loading…
Add table
Add a link
Reference in a new issue