89 lines
2.5 KiB
Text
89 lines
2.5 KiB
Text
[gd_scene format=3 uid="uid://dplnyssh3gglv"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_itny3"]
|
|
resource_name = "SmokeBomb"
|
|
script/source = "extends Node3D
|
|
|
|
var ttl : float = 5
|
|
|
|
func _process(delta : float):
|
|
position.y += delta
|
|
ttl -= delta
|
|
if ttl < 0:
|
|
queue_free()
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_g3kfb"]
|
|
resource_name = "BlindingArea"
|
|
script/source = "extends Area3D
|
|
|
|
func _body_entered(node : Node3D):
|
|
if node.has_method(\"set_blinded\"):
|
|
node.set_blinded(true)
|
|
|
|
func _body_exited(node : Node3D):
|
|
if node.has_method(\"set_blinded\"):
|
|
node.set_blinded(false)
|
|
|
|
func _ready():
|
|
body_entered.connect(_body_entered)
|
|
body_exited.connect(_body_exited)
|
|
"
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_g3kfb"]
|
|
radius = 4.8821044
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_g3kfb"]
|
|
transparency = 3
|
|
alpha_hash_scale = 0.1
|
|
alpha_antialiasing_mode = 0
|
|
cull_mode = 2
|
|
shading_mode = 0
|
|
diffuse_mode = 3
|
|
specular_mode = 2
|
|
disable_specular_occlusion = true
|
|
albedo_color = Color(0, 0, 0, 0.7137255)
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_g3kfb"]
|
|
radius = 5.0
|
|
height = 10.0
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_itny3"]
|
|
radius = 4.5
|
|
height = 9.0
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_qhsiq"]
|
|
radius = 3.0
|
|
height = 6.0
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_ej7fq"]
|
|
radius = 1.0
|
|
height = 2.0
|
|
|
|
[node name="Smokebomb" type="Node3D" unique_id=1624127579]
|
|
script = SubResource("GDScript_itny3")
|
|
|
|
[node name="BlindingArea" type="Area3D" parent="." unique_id=1563830988]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = SubResource("GDScript_g3kfb")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlindingArea" unique_id=1316931580]
|
|
shape = SubResource("SphereShape3D_g3kfb")
|
|
debug_color = Color(1, 1, 1, 0.41960785)
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=454136629]
|
|
material_override = SubResource("StandardMaterial3D_g3kfb")
|
|
mesh = SubResource("SphereMesh_g3kfb")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=1574435532]
|
|
material_override = SubResource("StandardMaterial3D_g3kfb")
|
|
mesh = SubResource("SphereMesh_itny3")
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="." unique_id=1913531178]
|
|
material_override = SubResource("StandardMaterial3D_g3kfb")
|
|
mesh = SubResource("SphereMesh_qhsiq")
|
|
|
|
[node name="MeshInstance3D4" type="MeshInstance3D" parent="." unique_id=1108186863]
|
|
material_override = SubResource("StandardMaterial3D_g3kfb")
|
|
mesh = SubResource("SphereMesh_ej7fq")
|