120 lines
4.3 KiB
Plaintext
120 lines
4.3 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://tdsbo3e5ic86"]
|
|
|
|
[ext_resource type="Script" path="res://src/ingame/bomb.gd" id="1_lk5fq"]
|
|
[ext_resource type="AudioStream" uid="uid://dtjpv2b74g24m" path="res://assets/sfx/splash-small.wav" id="2_0wk8g"]
|
|
[ext_resource type="PackedScene" uid="uid://ba2mut58elwrh" path="res://assets/water-bomb.glb" id="2_v2imr"]
|
|
[ext_resource type="AudioStream" uid="uid://blgrl2wl05feq" path="res://assets/sfx/splash-small-quiet.wav" id="3_hgy7l"]
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_0ebrr"]
|
|
properties/0/path = NodePath(".:position")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath("SplashSmallSound:playing")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 2
|
|
properties/2/path = NodePath("SplashSmallQuietSound:playing")
|
|
properties/2/spawn = true
|
|
properties/2/replication_mode = 2
|
|
properties/3/path = NodePath(".:is_dead")
|
|
properties/3/spawn = true
|
|
properties/3/replication_mode = 2
|
|
properties/4/path = NodePath("Model:visible")
|
|
properties/4/spawn = true
|
|
properties/4/replication_mode = 2
|
|
properties/5/path = NodePath("SplashParticles:emitting")
|
|
properties/5/spawn = true
|
|
properties/5/replication_mode = 2
|
|
properties/6/path = NodePath(".:rotation")
|
|
properties/6/spawn = true
|
|
properties/6/replication_mode = 1
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v7dnr"]
|
|
albedo_color = Color(0, 1, 1, 1)
|
|
roughness = 0.2
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_rjbgm"]
|
|
direction = Vector3(0, 1, 0)
|
|
initial_velocity_min = 5.0
|
|
initial_velocity_max = 5.0
|
|
gravity = Vector3(0, -8, 0)
|
|
collision_mode = 2
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_bhdh4"]
|
|
radius = 0.1
|
|
height = 0.2
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_6c830"]
|
|
radius = 0.2
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_y6453"]
|
|
radius = 1.5
|
|
|
|
[node name="WaterBomb" type="Node3D" node_paths=PackedStringArray("_splash_small_sound", "_splash_small_quiet_sound", "_model", "_splash_particles", "_picking_area", "body")]
|
|
script = ExtResource("1_lk5fq")
|
|
_splash_small_sound = NodePath("SplashSmallSound")
|
|
_splash_small_quiet_sound = NodePath("SplashSmallQuietSound")
|
|
_model = NodePath("Model")
|
|
_splash_particles = NodePath("SplashParticles")
|
|
_picking_area = NodePath("PickingArea")
|
|
body = NodePath("RigidBody3D")
|
|
item_id = &"water_bomb"
|
|
item_count = 1
|
|
splash_function = "water"
|
|
|
|
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_0ebrr")
|
|
|
|
[node name="Model" parent="." instance=ExtResource("2_v2imr")]
|
|
transform = Transform3D(-0.994881, 0, -0.101056, 0, 1, 0, 0.101056, 0, -0.994881, 0, 0, 0)
|
|
|
|
[node name="SplashParticles" type="GPUParticles3D" parent="."]
|
|
material_override = SubResource("StandardMaterial3D_v7dnr")
|
|
emitting = false
|
|
amount = 32
|
|
lifetime = 2.0
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
randomness = 1.0
|
|
process_material = SubResource("ParticleProcessMaterial_rjbgm")
|
|
draw_pass_1 = SubResource("SphereMesh_bhdh4")
|
|
|
|
[node name="RigidBody3D" type="RigidBody3D" parent="."]
|
|
top_level = true
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
contact_monitor = true
|
|
max_contacts_reported = 1
|
|
linear_damp_mode = 1
|
|
linear_damp = 0.3
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
|
shape = SubResource("SphereShape3D_6c830")
|
|
|
|
[node name="SplashArea" type="Area3D" parent="RigidBody3D"]
|
|
collision_layer = 0
|
|
collision_mask = 8
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D/SplashArea"]
|
|
shape = SubResource("SphereShape3D_y6453")
|
|
|
|
[node name="SplashSmallSound" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource("2_0wk8g")
|
|
bus = &"SoundEffects"
|
|
|
|
[node name="SplashSmallQuietSound" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource("3_hgy7l")
|
|
bus = &"SoundEffects"
|
|
|
|
[node name="PickingArea" type="Area3D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
monitoring = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="PickingArea"]
|
|
shape = SubResource("SphereShape3D_6c830")
|
|
|
|
[connection signal="body_entered" from="RigidBody3D" to="." method="_on_body_entered"]
|
|
[connection signal="area_entered" from="RigidBody3D/SplashArea" to="." method="_on_splash_area_entered"]
|
|
[connection signal="area_exited" from="RigidBody3D/SplashArea" to="." method="_on_splash_area_exited"]
|