Chelimbalo/weapons/molikman/molik/molikman_molotov_fire.tscn
2025-12-20 15:07:21 +05:00

261 lines
9.1 KiB
Text

[gd_scene load_steps=31 format=3 uid="uid://l4t1mflutm3t"]
[ext_resource type="Script" uid="uid://bo0ij4miuksua" path="res://weapons/molikman/molik/molikman_molotov_fire.gd" id="1_qokq0"]
[ext_resource type="Texture2D" uid="uid://d0520jd5y300q" path="res://assets/textures/players/molikman/molotov/frame0000.png" id="2_fm7jn"]
[ext_resource type="Texture2D" uid="uid://boebtrdgircn1" path="res://assets/textures/players/molikman/molotov/frame0001.png" id="3_18xly"]
[ext_resource type="Script" uid="uid://fdikw4xjemdk" path="res://weapons/molikman/molik/molotov_animation.gd" id="4_6lhod"]
[ext_resource type="Texture2D" uid="uid://iub2i15vj7a7" path="res://assets/textures/players/molikman/molotov/frame0002.png" id="4_wpp30"]
[ext_resource type="Texture2D" uid="uid://diy4n17p8qqkh" path="res://assets/textures/players/molikman/molotov/frame0003.png" id="5_66mwf"]
[ext_resource type="AudioStream" uid="uid://b7sxkxs7vn4d" path="res://audio/molik_land.ogg" id="5_cq8ds"]
[ext_resource type="Script" uid="uid://da0xv360va3b3" path="res://audio/audio_system/multiplayer_audio_3d.gd" id="6_apqju"]
[ext_resource type="Texture2D" uid="uid://d07fcg5pnao3q" path="res://assets/textures/players/molikman/molotov/frame0004.png" id="6_bt4sy"]
[ext_resource type="Texture2D" uid="uid://va158xyrsvb4" path="res://assets/textures/players/molikman/molotov/fire_particle.png" id="7_18xly"]
[ext_resource type="AudioStream" uid="uid://blnblkd6eoldv" path="res://audio/molik_idle.ogg" id="7_apqju"]
[sub_resource type="Animation" id="Animation_bwl5g"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Decal:texture_albedo")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_fm7jn")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Decal:texture_emission")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_fm7jn")]
}
[sub_resource type="Animation" id="Animation_m625o"]
resource_name = "main"
loop_mode = 1
step = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Decal:texture_albedo")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("2_fm7jn"), ExtResource("3_18xly"), ExtResource("4_wpp30"), ExtResource("5_66mwf"), ExtResource("6_bt4sy")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Decal:texture_emission")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("2_fm7jn"), ExtResource("3_18xly"), ExtResource("4_wpp30"), ExtResource("5_66mwf"), ExtResource("6_bt4sy")]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_oujc3"]
_data = {
&"RESET": SubResource("Animation_bwl5g"),
&"main": SubResource("Animation_m625o")
}
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fm7jn"]
height = 1.0615234
radius = 3.5
[sub_resource type="Gradient" id="Gradient_18xly"]
colors = PackedColorArray(1, 1, 1, 1, 0.3511727, 0.057953462, 7.219613e-08, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_wpp30"]
gradient = SubResource("Gradient_18xly")
[sub_resource type="Curve" id="Curve_wpp30"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_66mwf"]
curve = SubResource("Curve_wpp30")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_hr7p8"]
resource_local_to_scene = true
emission_shape = 6
emission_ring_axis = Vector3(0, 1, 0)
emission_ring_height = 0.0
emission_ring_radius = 3.5
emission_ring_inner_radius = 1.0
emission_ring_cone_angle = 90.0
direction = Vector3(0, 1, 0)
spread = 0.0
initial_velocity_min = 1.0
initial_velocity_max = 4.0
orbit_velocity_min = -0.46899992
orbit_velocity_max = 0.4130001
gravity = Vector3(0, 0, 0)
linear_accel_min = -2.2351742e-06
linear_accel_max = 4.9999976
scale_curve = SubResource("CurveTexture_66mwf")
color_ramp = SubResource("GradientTexture1D_wpp30")
turbulence_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bt4sy"]
transparency = 1
shading_mode = 0
vertex_color_use_as_albedo = true
vertex_color_is_srgb = true
albedo_texture = ExtResource("7_18xly")
texture_filter = 0
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_m625o"]
material = SubResource("StandardMaterial3D_bt4sy")
size = Vector2(0.25, 0.25)
[sub_resource type="Gradient" id="Gradient_wpp30"]
colors = PackedColorArray(1, 1, 1, 1, 1, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_66mwf"]
gradient = SubResource("Gradient_wpp30")
[sub_resource type="Curve" id="Curve_bt4sy"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.47435898, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_m625o"]
curve = SubResource("Curve_bt4sy")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_18xly"]
direction = Vector3(0, 1, 0)
initial_velocity_min = 10.0
initial_velocity_max = 15.0
scale_curve = SubResource("CurveTexture_m625o")
color_ramp = SubResource("GradientTexture1D_66mwf")
collision_mode = 1
collision_friction = 0.53
collision_bounce = 0.53
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wpp30"]
transparency = 1
shading_mode = 0
vertex_color_use_as_albedo = true
vertex_color_is_srgb = true
albedo_texture = ExtResource("7_18xly")
texture_filter = 0
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_66mwf"]
material = SubResource("StandardMaterial3D_wpp30")
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ykxjp"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath("Decal:size")
properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath(".:rotation")
properties/2/spawn = true
properties/2/replication_mode = 1
[node name="MolikmanMolotovFire" type="Area3D" node_paths=PackedStringArray("damage_timer")]
collision_layer = 8
collision_mask = 2
script = ExtResource("1_qokq0")
dps = 33.333
damage_timer = NodePath("DamageTimer")
[node name="Decal" type="Decal" parent="."]
size = Vector3(7.5, 3.2404785, 7.5)
texture_albedo = ExtResource("2_fm7jn")
texture_emission = ExtResource("2_fm7jn")
emission_energy = 0.25
normal_fade = 0.75
cull_mask = 1048572
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_oujc3")
}
autoplay = "main"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.46923828, 0)
shape = SubResource("CylinderShape3D_fm7jn")
[node name="IdleParticles" type="GPUParticles3D" parent="."]
amount = 32
lifetime = 2.0
process_material = SubResource("ParticleProcessMaterial_hr7p8")
draw_pass_1 = SubResource("QuadMesh_m625o")
[node name="InitialParticles" type="GPUParticles3D" parent="."]
emitting = false
amount = 16
lifetime = 4.0
one_shot = true
explosiveness = 1.0
collision_base_size = 0.25
process_material = SubResource("ParticleProcessMaterial_18xly")
draw_pass_1 = SubResource("QuadMesh_66mwf")
[node name="DieTimer" type="Timer" parent="."]
wait_time = 15.0
one_shot = true
autostart = true
[node name="DamageTimer" type="Timer" parent="."]
wait_time = 0.25
autostart = true
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_ykxjp")
[node name="MolotovAnimation" type="Node" parent="." node_paths=PackedStringArray("die_timer", "decal", "gpu_particles", "collision_shape")]
script = ExtResource("4_6lhod")
die_timer = NodePath("../DieTimer")
decal = NodePath("../Decal")
gpu_particles = NodePath("../IdleParticles")
collision_shape = NodePath("../CollisionShape3D")
expansion_mult = 1.333
[node name="MultiplayerAudio3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("5_cq8ds")
unit_size = 20.0
max_distance = 60.0
bus = &"GameplayMain"
attenuation_filter_cutoff_hz = 20500.0
script = ExtResource("6_apqju")
metadata/_custom_type_script = "uid://da0xv360va3b3"
[node name="Idle" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("7_apqju")
unit_size = 15.0
max_distance = 60.0
bus = &"GameplayMain"
script = ExtResource("6_apqju")
metadata/_custom_type_script = "uid://da0xv360va3b3"
[connection signal="timeout" from="DieTimer" to="MolotovAnimation" method="die"]
[connection signal="timeout" from="DamageTimer" to="." method="damage"]